csharp: Remove test about conflicting events.
authorLauro Moura <lauromoura@expertisesolutions.com.br>
Wed, 20 Mar 2019 17:29:25 +0000 (17:29 +0000)
committerYeongjong Lee <yj34.lee@samsung.com>
Tue, 2 Apr 2019 03:45:17 +0000 (12:45 +0900)
Conflictings events won't be allowed anymore on eolian-based classes.

For manually subclassed C# classes that eventually have conflicts, this
should be dealt with in T7744.

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D8426

src/Makefile_Efl_Mono.am
src/tests/efl_mono/Events.cs
src/tests/efl_mono/dummy_another_iface.eo [deleted file]
src/tests/efl_mono/dummy_test_iface.eo
src/tests/efl_mono/dummy_test_object.eo
src/tests/efl_mono/libefl_mono_native_test.c
src/tests/efl_mono/meson.build

index 91bb1cd5041800982d504f05db7c189ac68f0a6f..28a3f349901731aa02211b0ec4cfd0bce256cce9 100644 (file)
@@ -65,7 +65,6 @@ lib_efl_mono_libefl_mono_dll_sources = \
 efl_mono_test_files = \
        tests/efl_mono/dummy_test_object.eo \
        tests/efl_mono/dummy_test_iface.eo \
-       tests/efl_mono/dummy_another_iface.eo \
        tests/efl_mono/dummy_child.eo \
        tests/efl_mono/dummy_part_holder.eo \
        tests/efl_mono/dummy_numberwrapper.eo \
@@ -407,8 +406,6 @@ tests/efl_mono/libefl_mono_native_test.c: \
        tests/efl_mono/dummy_test_object.eo.c \
        tests/efl_mono/dummy_test_iface.eo.h \
        tests/efl_mono/dummy_test_iface.eo.c \
-       tests/efl_mono/dummy_another_iface.eo.h \
-       tests/efl_mono/dummy_another_iface.eo.c \
        tests/efl_mono/dummy_child.eo.h \
        tests/efl_mono/dummy_child.eo.c \
        tests/efl_mono/dummy_part_holder.eo.h \
@@ -423,7 +420,6 @@ tests/efl_mono/libefl_mono_native_test.c: \
 # Intermediate C Sharp test DLL
 efl_mono_test_eolian_mono_files = tests/efl_mono/dummy_test_object.eo.cs \
 tests/efl_mono/dummy_test_iface.eo.cs \
-tests/efl_mono/dummy_another_iface.eo.cs \
 tests/efl_mono/dummy_child.eo.cs \
 tests/efl_mono/dummy_part_holder.eo.cs \
 tests/efl_mono/dummy_numberwrapper.eo.cs \
index 2d6dedb8e94335e866050d640bb3b8fb52742da3..529b6de25e0d7ffb2f19572328de56aa4040a97c 100644 (file)
@@ -225,33 +225,6 @@ class TestInterfaceEvents
         obj.EmitNonconflicted();
         Test.Assert(called);
     }
-
-    public static void test_conflicting_events()
-    {
-        var obj = new Dummy.TestObject();
-        var test_called = false;
-        var another_called = false;
-
-        EventHandler cb = (object sender, EventArgs e) => {
-            test_called = true;
-        };
-
-        EventHandler another_cb = (object sender, EventArgs e) => {
-            another_called = true;
-        };
-
-        ((Dummy.TestIface)obj).ConflictedEvt += cb;
-        ((Dummy.AnotherIface)obj).ConflictedEvt += another_cb;
-
-        obj.EmitTestConflicted();
-        Test.Assert(test_called);
-        Test.Assert(!another_called);
-        test_called = false;
-
-        obj.EmitAnotherConflicted();
-        Test.Assert(!test_called);
-        Test.Assert(another_called);
-    }
 }
 
 class TestEventNaming
diff --git a/src/tests/efl_mono/dummy_another_iface.eo b/src/tests/efl_mono/dummy_another_iface.eo
deleted file mode 100644 (file)
index 84c9187..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-interface Dummy.Another_Iface
-{
-   methods {
-      emit_another_conflicted {
-      }
-   }
-   events {
-      conflicted: void;
-   }
-}
index d9d29ac74937394305ff782946d7a1bc45ad50d8..3ab37f5407f63efeb0535aaac08ea6631fb215b1 100644 (file)
@@ -1,8 +1,6 @@
 interface Dummy.Test_Iface
 {
    methods {
-      emit_test_conflicted {
-      }
       emit_nonconflicted {
       }
       @property iface_prop {
@@ -14,7 +12,6 @@ interface Dummy.Test_Iface
       }
    }
    events {
-      conflicted: void;
       nonconflicted: void;
    }
 }
index 0d6ced8e625099e3d418d35607d0c4a129f412a7..d44190e90ba8646089310a899173b65fff7b0858 100644 (file)
@@ -101,7 +101,7 @@ function Dummy.FormatCb {
    }
 };
 
-class Dummy.Test_Object extends Efl.Object implements Dummy.Test_Iface, Dummy.Another_Iface {
+class Dummy.Test_Object extends Efl.Object implements Dummy.Test_Iface {
    methods {
       return_object {
          return: Dummy.Test_Object;
@@ -1394,10 +1394,8 @@ class Dummy.Test_Object extends Efl.Object implements Dummy.Test_Iface, Dummy.An
       class.destructor;
       Efl.Object.constructor;
       Efl.Object.provider_find;
-      Dummy.Test_Iface.emit_test_conflicted;
       Dummy.Test_Iface.emit_nonconflicted;
       Dummy.Test_Iface.iface_prop { get; set; }
-      Dummy.Another_Iface.emit_another_conflicted;
    }
    events {
       evt,with,string @hot: string;
index b02abdefd416f0c7ebe6ee037a796bb4c84dbcc0..629f289c7e68d9e99343a9375a0e92936dddf30c 100644 (file)
@@ -49,7 +49,6 @@
 #include "dummy_test_object.eo.h"
 #include "dummy_child.eo.h"
 #include "dummy_test_iface.eo.h"
-#include "dummy_another_iface.eo.h"
 #include "dummy_inherit_iface.eo.h"
 #include "dummy_inherit_helper.eo.h"
 #include "dummy_part_holder.eo.h"
@@ -3895,21 +3894,11 @@ Eina_Accessor *_dummy_test_object_clone_accessor(Eo *obj EINA_UNUSED, Dummy_Test
    return eina_list_accessor_new(pd->list_for_accessor);
 }
 
-void _dummy_test_object_dummy_test_iface_emit_test_conflicted(Eo *obj, Dummy_Test_Object_Data *pd EINA_UNUSED)
-{
-    efl_event_callback_legacy_call(obj, DUMMY_TEST_IFACE_EVENT_CONFLICTED, NULL);
-}
-
 void _dummy_test_object_dummy_test_iface_emit_nonconflicted(Eo *obj, Dummy_Test_Object_Data *pd EINA_UNUSED)
 {
     efl_event_callback_legacy_call(obj, DUMMY_TEST_IFACE_EVENT_NONCONFLICTED, NULL);
 }
 
-void _dummy_test_object_dummy_another_iface_emit_another_conflicted(Eo *obj, Dummy_Test_Object_Data *pd EINA_UNUSED)
-{
-    efl_event_callback_legacy_call(obj, DUMMY_ANOTHER_IFACE_EVENT_CONFLICTED, NULL);
-}
-
 void _dummy_test_object_setter_only_set(EINA_UNUSED Eo *obj, Dummy_Test_Object_Data *pd, int value)
 {
     pd->setter_only = value;
@@ -4057,7 +4046,6 @@ Efl_Object *_dummy_part_holder_efl_part_part_get(EINA_UNUSED const Eo *obj, Dumm
 #include "dummy_numberwrapper.eo.c"
 #include "dummy_child.eo.c"
 #include "dummy_test_iface.eo.c"
-#include "dummy_another_iface.eo.c"
 #include "dummy_inherit_helper.eo.c"
 #include "dummy_inherit_iface.eo.c"
 #include "dummy_part_holder.eo.c"
index f9fcbcf88c661ba42760b5ba9781efbf8dfc7cc1..f13b9a3b483beff70e86f42bd6114064e4c83d30 100644 (file)
@@ -1,4 +1,4 @@
-eo_files = ['dummy_child.eo', 'dummy_numberwrapper.eo', 'dummy_test_object.eo', 'dummy_test_iface.eo', 'dummy_another_iface.eo', 'dummy_inherit_helper.eo', 'dummy_inherit_iface.eo', 'dummy_part_holder.eo']
+eo_files = ['dummy_child.eo', 'dummy_numberwrapper.eo', 'dummy_test_object.eo', 'dummy_test_iface.eo', 'dummy_inherit_helper.eo', 'dummy_inherit_iface.eo', 'dummy_part_holder.eo']
 
 eo_file_targets = []