summaryrefslogtreecommitdiff
path: root/src/tests/elementary/suite_helpers.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-07-16 13:38:28 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-07-16 13:38:28 -0400
commitab0c71803b9c9d0d5d8066f67637a6674e89e939 (patch)
treedc44c84cc37a2dc04e4dce37d592e37a15629443 /src/tests/elementary/suite_helpers.c
parent4b1a1e85b2d77bccdc03ca6ece389aea4881d3ec (diff)
tests/elm: break out event callback function
Summary: now we have a function we can reuse which verifies that it is called exactly one time Reviewers: bu5hm4n Reviewed By: bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9330
Diffstat (limited to 'src/tests/elementary/suite_helpers.c')
-rw-r--r--src/tests/elementary/suite_helpers.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tests/elementary/suite_helpers.c b/src/tests/elementary/suite_helpers.c
index 727db9be98..b9c8d3e71d 100644
--- a/src/tests/elementary/suite_helpers.c
+++ b/src/tests/elementary/suite_helpers.c
@@ -456,3 +456,12 @@ click_part(Eo *obj, const char *part)
456 edje_object_message_signal_process(obj); 456 edje_object_message_signal_process(obj);
457 efl_unref(part_obj); 457 efl_unref(part_obj);
458} 458}
459
460void
461event_callback_that_is_called_exactly_one_time_and_sets_a_single_int_data_pointer_when_called(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
462{
463 int *called = data;
464
465 ck_assert_int_eq(*called, 0);
466 *called = 1;
467}