summaryrefslogtreecommitdiff
path: root/src/tests/eo/suite/eo_test_class_simple.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-04-06 10:16:24 +0100
committerTom Hacohen <tom@stosb.com>2016-04-06 11:15:24 +0100
commitc6159e042bb08dffecf60de3497126d0c60d0b68 (patch)
tree7d83447f1f30a499ed725d09a4e1ca29fffd02d0 /src/tests/eo/suite/eo_test_class_simple.c
parentb67413bc33bc217167c176a51eb4fad3991c4f54 (diff)
Eo tests: Also test function calls in reinit test.
Since we cache ops we also need to check function calls work when we reinit eo, not just class_get functions. This commit essentially verifies that 5284b62e930f0bef0ed3125b3a485e0599451ef8 was done correctly.
Diffstat (limited to 'src/tests/eo/suite/eo_test_class_simple.c')
-rw-r--r--src/tests/eo/suite/eo_test_class_simple.c27
1 files changed, 26 insertions, 1 deletions
diff --git a/src/tests/eo/suite/eo_test_class_simple.c b/src/tests/eo/suite/eo_test_class_simple.c
index 224e80a290..8566ed9929 100644
--- a/src/tests/eo/suite/eo_test_class_simple.c
+++ b/src/tests/eo/suite/eo_test_class_simple.c
@@ -89,7 +89,6 @@ EO_VOID_FUNC_BODY(simple_pure_virtual);
89EO_VOID_FUNC_BODY(simple_no_implementation); 89EO_VOID_FUNC_BODY(simple_no_implementation);
90 90
91static Eo_Op_Description op_descs[] = { 91static Eo_Op_Description op_descs[] = {
92 EO_OP_FUNC_OVERRIDE(eo_dbg_info_get, _dbg_info_get),
93 EO_OP_FUNC(simple_a_set, _a_set), 92 EO_OP_FUNC(simple_a_set, _a_set),
94 EO_OP_FUNC(simple_a_get, _a_get), 93 EO_OP_FUNC(simple_a_get, _a_get),
95 EO_OP_FUNC(simple_a_print, _a_print), 94 EO_OP_FUNC(simple_a_print, _a_print),
@@ -97,6 +96,7 @@ static Eo_Op_Description op_descs[] = {
97 EO_OP_FUNC(simple_recursive, _recursive), 96 EO_OP_FUNC(simple_recursive, _recursive),
98 EO_OP_FUNC(simple_part_get, _part_get), 97 EO_OP_FUNC(simple_part_get, _part_get),
99 EO_OP_FUNC(simple_pure_virtual, NULL), 98 EO_OP_FUNC(simple_pure_virtual, NULL),
99 EO_OP_FUNC_OVERRIDE(eo_dbg_info_get, _dbg_info_get),
100}; 100};
101 101
102static const Eo_Class_Description class_desc = { 102static const Eo_Class_Description class_desc = {
@@ -112,3 +112,28 @@ static const Eo_Class_Description class_desc = {
112 112
113EO_DEFINE_CLASS(simple_class_get, &class_desc, EO_CLASS, NULL) 113EO_DEFINE_CLASS(simple_class_get, &class_desc, EO_CLASS, NULL)
114 114
115
116static int
117_beef_get(Eo *obj EINA_UNUSED, void *class_data EINA_UNUSED)
118{
119 return 0xBEEF;
120}
121
122EO_FUNC_BODY_CONST(simple2_class_beef_get, int, 0);
123
124static Eo_Op_Description op_descs2[] = {
125 EO_OP_CLASS_FUNC(simple2_class_beef_get, _beef_get),
126};
127
128static const Eo_Class_Description class_desc2 = {
129 EO_VERSION,
130 "Simple2",
131 EO_CLASS_TYPE_REGULAR,
132 EO_CLASS_DESCRIPTION_OPS(op_descs2),
133 NULL,
134 0,
135 NULL,
136 NULL
137};
138
139EO_DEFINE_CLASS(simple2_class_get, &class_desc2, EO_CLASS, NULL)