Summary: Event payload checking is more strict now.
Test Plan: Check that master can be built
Reviewers: lauromoura, q66
Reviewed By: q66
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D8437
Test.AssertEquals(sent_struct.Fobj, received_struct.Fobj);
}
- public static void event_with_list_payload()
+ public static void event_with_array_payload()
{
var obj = new Dummy.TestObject();
- Eina.List<string> received = null;
- Eina.List<string> sent = new Eina.List<string>();
+ Eina.Array<string> received = null;
+ Eina.Array<string> sent = new Eina.Array<string>();
sent.Append("Abc");
sent.Append("Def");
sent.Append("Ghi");
- obj.EvtWithListEvt += (object sender, Dummy.TestObjectEvtWithListEvt_Args e) => {
+ obj.EvtWithArrayEvt += (object sender, Dummy.TestObjectEvtWithArrayEvt_Args e) => {
received = e.arg;
};
- obj.EmitEventWithList(sent);
+ obj.EmitEventWithArray(sent);
Test.AssertEquals(sent.Length, received.Length);
var pairs = sent.Zip(received, (string sentItem, string receivedItem) => new { Sent = sentItem, Received = receivedItem } );
}
}
- emit_event_with_list {
+ emit_event_with_array {
params {
- @in data: list<string>;
+ @in data: array<string>;
}
}
Dummy.Test_Iface.iface_prop { get; set; }
}
events {
- evt,with,string @hot: string;
+ evt,with,string @hot: const(string);
evt,with,bool: bool;
evt,with,int @hot: int;
evt,with,uint @hot: uint;
evt,with,error @hot: Eina.Error;
evt,with,struct @hot: Dummy.StructSimple;
evt,with,struct,complex @hot: Dummy.StructComplex;
- evt,with,list @hot: list<string>;
+ evt,with,array @hot: const(array<string>);
evt_with,under @hot: void;
}
}
return obj;
}
-Efl_Object *_dummy_test_object_return_null_object(Eo *obj, EINA_UNUSED Dummy_Test_Object_Data *pd)
+Efl_Object *_dummy_test_object_return_null_object(Eo *obj EINA_UNUSED, EINA_UNUSED Dummy_Test_Object_Data *pd)
{
return NULL;
}
efl_event_callback_legacy_call(obj, DUMMY_TEST_OBJECT_EVENT_EVT_WITH_STRUCT_COMPLEX, &data);
}
-void _dummy_test_object_emit_event_with_list(Eo *obj, EINA_UNUSED Dummy_Test_Object_Data *pd, Eina_List *data)
+void _dummy_test_object_emit_event_with_array(Eo *obj, EINA_UNUSED Dummy_Test_Object_Data *pd, Eina_Array *data)
{
- efl_event_callback_legacy_call(obj, DUMMY_TEST_OBJECT_EVENT_EVT_WITH_LIST, data);
+ efl_event_callback_legacy_call(obj, DUMMY_TEST_OBJECT_EVENT_EVT_WITH_ARRAY, data);
}
void _dummy_test_object_emit_event_with_under(Eo *obj, EINA_UNUSED Dummy_Test_Object_Data *pd)