summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-03-21 15:55:43 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2019-03-21 16:00:18 +0100
commit3f083b3ccba9cdc0f9cfe875fec030e228be69d0 (patch)
treed9fc3d0275130dddb620fd578a15c42b13276c77 /src/tests
parent1066e5be60eb135700f3ec41c6b184ecbe142f6e (diff)
eolian: add event type call convention checks for non-beta classes
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/eolian_cxx/callback.eo2
-rw-r--r--src/tests/eolian_cxx/eolian_cxx_test_binding.cc2
-rw-r--r--src/tests/eolian_cxx/generic.c6
-rw-r--r--src/tests/eolian_cxx/generic.eo2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/tests/eolian_cxx/callback.eo b/src/tests/eolian_cxx/callback.eo
index 3f4cd9effe..a62ec0031b 100644
--- a/src/tests/eolian_cxx/callback.eo
+++ b/src/tests/eolian_cxx/callback.eo
@@ -11,7 +11,7 @@ class Callback extends Efl.Object
11 prefix,event1: void; 11 prefix,event1: void;
12 prefix,event2: Callback; 12 prefix,event2: Callback;
13 prefix,event3: int; 13 prefix,event3: int;
14 prefix,event4: list<int*>; 14 prefix,event4: const(array<ptr(int)>);
15 prefix,event5: Callback_Event; 15 prefix,event5: Callback_Event;
16 } 16 }
17} 17}
diff --git a/src/tests/eolian_cxx/eolian_cxx_test_binding.cc b/src/tests/eolian_cxx/eolian_cxx_test_binding.cc
index 9d1734c94d..069e876ba5 100644
--- a/src/tests/eolian_cxx/eolian_cxx_test_binding.cc
+++ b/src/tests/eolian_cxx/eolian_cxx_test_binding.cc
@@ -203,7 +203,7 @@ EFL_START_TEST(eolian_cxx_test_type_callback)
203 event3 = true; 203 event3 = true;
204 ck_assert(v == 42); 204 ck_assert(v == 42);
205 }); 205 });
206 efl::eolian::event_add(g.prefix_event4_event, g, [&] (nonamespace::Generic, efl::eina::range_list<const int &> e) 206 efl::eolian::event_add(g.prefix_event4_event, g, [&] (nonamespace::Generic, efl::eina::range_array<const int &> e)
207 { 207 {
208 event4 = true; 208 event4 = true;
209 ck_assert(e.size() == 1); 209 ck_assert(e.size() == 1);
diff --git a/src/tests/eolian_cxx/generic.c b/src/tests/eolian_cxx/generic.c
index ee3a0c3e87..65f8025b57 100644
--- a/src/tests/eolian_cxx/generic.c
+++ b/src/tests/eolian_cxx/generic.c
@@ -115,10 +115,10 @@ static void _generic_call_event3(Eo *obj, Generic_Data* pd EINA_UNUSED)
115static void _generic_call_event4(Eo *obj, Generic_Data* pd EINA_UNUSED) 115static void _generic_call_event4(Eo *obj, Generic_Data* pd EINA_UNUSED)
116{ 116{
117 int i = 42; 117 int i = 42;
118 Eina_List* p = eina_list_append(NULL, &i); 118 Eina_Array* p = eina_array_new(1);
119 ck_assert(p != NULL); 119 ck_assert(eina_array_push(p, &i));
120 efl_event_callback_call(obj, GENERIC_EVENT_PREFIX_EVENT4, p); 120 efl_event_callback_call(obj, GENERIC_EVENT_PREFIX_EVENT4, p);
121 eina_list_free(p); 121 eina_array_free(p);
122} 122}
123static void _generic_call_event5(Eo *obj, Generic_Data* pd EINA_UNUSED) 123static void _generic_call_event5(Eo *obj, Generic_Data* pd EINA_UNUSED)
124{ 124{
diff --git a/src/tests/eolian_cxx/generic.eo b/src/tests/eolian_cxx/generic.eo
index 7f367a975b..192765d7df 100644
--- a/src/tests/eolian_cxx/generic.eo
+++ b/src/tests/eolian_cxx/generic.eo
@@ -108,7 +108,7 @@ class Generic extends Efl.Object implements Generic_Interface
108 prefix,event1: void; 108 prefix,event1: void;
109 prefix,event2: Generic; 109 prefix,event2: Generic;
110 prefix,event3: int; 110 prefix,event3: int;
111 prefix,event4: list<ptr(int)>; 111 prefix,event4: const(array<ptr(int)>);
112 prefix,event5: Generic.Event; 112 prefix,event5: Generic.Event;
113 protected,event1 @protected: void; 113 protected,event1 @protected: void;
114 beta,event1 @beta: void; 114 beta,event1 @beta: void;