summaryrefslogtreecommitdiff
path: root/src/tests/eo
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-12-05 14:31:22 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-12-05 15:06:34 +0900
commit207a0cf3e3ce169b2e6400ca4bc1df512ea15a27 (patch)
tree25ef8280e607308de2e7cbf131c7064a6397291c /src/tests/eo
parent8cdb3184f8a1f3e5396d953b238ce2e217f0cb1c (diff)
eo: Move hacky API auto_unref to C only
This API is meant to be used by parts only, and by bindings dealing with part objects. This patch fixes make check which got broken in the after the previous one (cxx).
Diffstat (limited to 'src/tests/eo')
-rw-r--r--src/tests/eo/suite/eo_test_general.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/tests/eo/suite/eo_test_general.c b/src/tests/eo/suite/eo_test_general.c
index 2a26bf8dd1..46c351fdd9 100644
--- a/src/tests/eo/suite/eo_test_general.c
+++ b/src/tests/eo/suite/eo_test_general.c
@@ -9,9 +9,6 @@
9# include <unistd.h> 9# include <unistd.h>
10#endif 10#endif
11 11
12#define EFL_OBJECT_BETA
13#define EFL_OBJECT_PROTECTED
14
15#include <Eo.h> 12#include <Eo.h>
16 13
17#include "eo_suite.h" 14#include "eo_suite.h"
@@ -1740,7 +1737,7 @@ START_TEST(efl_object_auto_unref_test)
1740 obj = efl_add(SIMPLE_CLASS, NULL); 1737 obj = efl_add(SIMPLE_CLASS, NULL);
1741 fail_if(efl_ref_count(obj) != 1); 1738 fail_if(efl_ref_count(obj) != 1);
1742 efl_event_callback_add(obj, EFL_EVENT_DEL, _auto_unref_del_cb, &_auto_unref_del); 1739 efl_event_callback_add(obj, EFL_EVENT_DEL, _auto_unref_del_cb, &_auto_unref_del);
1743 efl_auto_unref_set(obj, 1); 1740 ___efl_auto_unref_set(obj, 1);
1744 fail_if(_auto_unref_del); 1741 fail_if(_auto_unref_del);
1745 fail_if(efl_ref_count(obj) != 1); 1742 fail_if(efl_ref_count(obj) != 1);
1746 efl_name_set(obj, "name"); 1743 efl_name_set(obj, "name");
@@ -1751,7 +1748,7 @@ START_TEST(efl_object_auto_unref_test)
1751 obj = efl_add(SIMPLE_CLASS, NULL); 1748 obj = efl_add(SIMPLE_CLASS, NULL);
1752 fail_if(efl_ref_count(obj) != 1); 1749 fail_if(efl_ref_count(obj) != 1);
1753 efl_event_callback_add(obj, EFL_EVENT_DEL, _auto_unref_del_cb, &_auto_unref_del); 1750 efl_event_callback_add(obj, EFL_EVENT_DEL, _auto_unref_del_cb, &_auto_unref_del);
1754 efl_auto_unref_set(obj, 1); 1751 ___efl_auto_unref_set(obj, 1);
1755 fail_if(_auto_unref_del); 1752 fail_if(_auto_unref_del);
1756 fail_if(efl_ref_count(obj) != 1); 1753 fail_if(efl_ref_count(obj) != 1);
1757 simple_no_implementation(obj); 1754 simple_no_implementation(obj);
@@ -1764,7 +1761,7 @@ START_TEST(efl_object_auto_unref_test)
1764 fail_if(efl_ref_count(obj) != 1); 1761 fail_if(efl_ref_count(obj) != 1);
1765 efl_allow_parent_unref_set(obj, 1); 1762 efl_allow_parent_unref_set(obj, 1);
1766 efl_event_callback_add(obj, EFL_EVENT_DEL, _auto_unref_del_cb, &_auto_unref_del); 1763 efl_event_callback_add(obj, EFL_EVENT_DEL, _auto_unref_del_cb, &_auto_unref_del);
1767 efl_auto_unref_set(obj, 1); 1764 ___efl_auto_unref_set(obj, 1);
1768 fail_if(_auto_unref_del); 1765 fail_if(_auto_unref_del);
1769 fail_if(efl_ref_count(obj) != 1); 1766 fail_if(efl_ref_count(obj) != 1);
1770 efl_name_set(obj, "name"); 1767 efl_name_set(obj, "name");