summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousasilva@gmail.com>2017-06-30 19:26:52 -0300
committerVitor Sousa <vitorsousasilva@gmail.com>2017-06-30 19:26:52 -0300
commita6593819c08843f461a75df317653bb0a2a878a8 (patch)
tree5414860173462e313bb0e1027d9ddc3a7be65e0a
parentcddabc22eb5cadd8f0ab31451b99e99a77b9ae86 (diff)
downloadefl-a6593819c08843f461a75df317653bb0a2a878a8.tar.gz
efl_mono: move test code to a better place
-rw-r--r--src/tests/efl_mono/libefl_mono_native_test.c84
1 files changed, 44 insertions, 40 deletions
diff --git a/src/tests/efl_mono/libefl_mono_native_test.c b/src/tests/efl_mono/libefl_mono_native_test.c
index cc34499d3a..d23c74e46d 100644
--- a/src/tests/efl_mono/libefl_mono_native_test.c
+++ b/src/tests/efl_mono/libefl_mono_native_test.c
@@ -3037,46 +3037,9 @@ Eina_Iterator *_test_testing_eina_iterator_obj_return_own(EINA_UNUSED Eo *obj, E
return eina_array_iterator_new(arr);
}
-// //
-// Class constructor
-// //
-EOLIAN static void
-_test_testing_class_constructor(Efl_Class *klass)
-{
- (void)klass;
- modified_seq_obj[0] = base_seq_obj[0] = _new_obj(0x0);
- modified_seq_obj[1] = base_seq_obj[1] = _new_obj(0x2A);
- modified_seq_obj[2] = base_seq_obj[2] = _new_obj(0x42);
- modified_seq_obj[3] = _new_obj(42);
- modified_seq_obj[4] = _new_obj(43);
- modified_seq_obj[5] = _new_obj(33);
-}
-
-EOLIAN static void
-_test_testing_class_destructor(Efl_Class *klass)
-{
- (void)klass;
- for (unsigned i = 0; i < base_seq_obj_size; ++i)
- efl_unref(base_seq_obj[i]);
- for (unsigned i = 0; i < modified_seq_obj_size; ++i)
- efl_unref(modified_seq_obj[i]);
-}
-
-
-// ################## //
-// Test.Numberwrapper //
-// ################## //
-
-
-void _test_numberwrapper_number_set(EINA_UNUSED Eo *obj, Test_Numberwrapper_Data *pd, int n)
-{
- pd->number = n;
-}
-
-int _test_numberwrapper_number_get(EINA_UNUSED Eo *obj, Test_Numberwrapper_Data *pd)
-{
- return pd->number;
-}
+// //
+// Callbacks and Function Pointers //
+// //
void _test_testing_set_callback(EINA_UNUSED Eo *obj, Test_Testing_Data *pd, SimpleCb cb, void *cb_data, Eina_Free_Cb cb_free_cb)
{
@@ -3153,6 +3116,47 @@ Eina_Error _test_testing_returns_error(EINA_UNUSED Eo *obj, Test_Testing_Data *p
return pd->error_code;
}
+// //
+// Class constructor
+// //
+EOLIAN static void
+_test_testing_class_constructor(Efl_Class *klass)
+{
+ (void)klass;
+ modified_seq_obj[0] = base_seq_obj[0] = _new_obj(0x0);
+ modified_seq_obj[1] = base_seq_obj[1] = _new_obj(0x2A);
+ modified_seq_obj[2] = base_seq_obj[2] = _new_obj(0x42);
+ modified_seq_obj[3] = _new_obj(42);
+ modified_seq_obj[4] = _new_obj(43);
+ modified_seq_obj[5] = _new_obj(33);
+}
+
+EOLIAN static void
+_test_testing_class_destructor(Efl_Class *klass)
+{
+ (void)klass;
+ for (unsigned i = 0; i < base_seq_obj_size; ++i)
+ efl_unref(base_seq_obj[i]);
+ for (unsigned i = 0; i < modified_seq_obj_size; ++i)
+ efl_unref(modified_seq_obj[i]);
+}
+
+
+// ################## //
+// Test.Numberwrapper //
+// ################## //
+
+
+void _test_numberwrapper_number_set(EINA_UNUSED Eo *obj, Test_Numberwrapper_Data *pd, int n)
+{
+ pd->number = n;
+}
+
+int _test_numberwrapper_number_get(EINA_UNUSED Eo *obj, Test_Numberwrapper_Data *pd)
+{
+ return pd->number;
+}
+
#include "test_testing.eo.c"
#include "test_numberwrapper.eo.c"