summaryrefslogtreecommitdiff
path: root/src/tests/eo/suite/eo_test_class_simple.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-04-24 16:45:34 +0100
committerTom Hacohen <tom@stosb.com>2013-04-24 16:45:41 +0100
commita26ed054a963572a01a8d4b73aae78f99f78bf8e (patch)
tree312a592f043fff6df4424fceccba74a5aef6fd8c /src/tests/eo/suite/eo_test_class_simple.c
parentb9e8a0e123b9c950d8dc611f1a01a182078ed8d2 (diff)
Eo: Added test to the special eina value type.
Diffstat (limited to 'src/tests/eo/suite/eo_test_class_simple.c')
-rw-r--r--src/tests/eo/suite/eo_test_class_simple.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tests/eo/suite/eo_test_class_simple.c b/src/tests/eo/suite/eo_test_class_simple.c
index e21c54f74f..f691bda293 100644
--- a/src/tests/eo/suite/eo_test_class_simple.c
+++ b/src/tests/eo/suite/eo_test_class_simple.c
@@ -40,9 +40,19 @@ _class_hi_print(const Eo_Class *klass, va_list *list)
40} 40}
41 41
42static void 42static void
43_dbg_info_get(Eo *eo_obj, void *_pd EINA_UNUSED, va_list *list)
44{
45 Eo_Dbg_Info *root = (Eo_Dbg_Info *) va_arg(*list, Eo_Dbg_Info *);
46 eo_do_super(eo_obj, MY_CLASS, eo_dbg_info_get(root));
47 Eo_Dbg_Info *group = EO_DBG_INFO_LIST_APPEND(root, "Test list");
48 EO_DBG_INFO_APPEND(group, "Test", EINA_VALUE_TYPE_INT, 8);
49}
50
51static void
43_class_constructor(Eo_Class *klass) 52_class_constructor(Eo_Class *klass)
44{ 53{
45 const Eo_Op_Func_Description func_desc[] = { 54 const Eo_Op_Func_Description func_desc[] = {
55 EO_OP_FUNC(EO_BASE_ID(EO_BASE_SUB_ID_DBG_INFO_GET), _dbg_info_get),
46 EO_OP_FUNC(SIMPLE_ID(SIMPLE_SUB_ID_A_SET), _a_set), 56 EO_OP_FUNC(SIMPLE_ID(SIMPLE_SUB_ID_A_SET), _a_set),
47 EO_OP_FUNC(SIMPLE_ID(SIMPLE_SUB_ID_A_PRINT), _a_print), 57 EO_OP_FUNC(SIMPLE_ID(SIMPLE_SUB_ID_A_PRINT), _a_print),
48 EO_OP_FUNC_CLASS(SIMPLE_ID(SIMPLE_SUB_ID_CLASS_HI_PRINT), _class_hi_print), 58 EO_OP_FUNC_CLASS(SIMPLE_ID(SIMPLE_SUB_ID_CLASS_HI_PRINT), _class_hi_print),