summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-08-05 13:57:48 -0400
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-08-06 09:26:38 +0200
commite9e8078cec9100993f8124f9ad7bf1158c8e0cea (patch)
treefca521b057f40c73d69f82830f1e73672a071b5f
parentf8dcb7dc2b8dad636989e988d53f81e705a1718c (diff)
tests/elm: add helper callback for automatically quitting main loop when triggered
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9506
-rw-r--r--src/tests/elementary/suite_helpers.c6
-rw-r--r--src/tests/elementary/suite_helpers.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/tests/elementary/suite_helpers.c b/src/tests/elementary/suite_helpers.c
index ff5530a93f..44c34e58ae 100644
--- a/src/tests/elementary/suite_helpers.c
+++ b/src/tests/elementary/suite_helpers.c
@@ -467,6 +467,12 @@ event_callback_that_is_called_exactly_one_time_and_sets_a_single_int_data_pointe
467} 467}
468 468
469void 469void
470event_callback_that_quits_the_main_loop_when_called()
471{
472 ecore_main_loop_quit();
473}
474
475void
470click_object_at(Eo *obj, int x, int y) 476click_object_at(Eo *obj, int x, int y)
471{ 477{
472 Evas *e = evas_object_evas_get(obj); 478 Evas *e = evas_object_evas_get(obj);
diff --git a/src/tests/elementary/suite_helpers.h b/src/tests/elementary/suite_helpers.h
index 0dc3944173..a063869f2b 100644
--- a/src/tests/elementary/suite_helpers.h
+++ b/src/tests/elementary/suite_helpers.h
@@ -15,4 +15,5 @@ void click_object(Eo *obj);
15void click_part(Eo *obj, const char *part); 15void click_part(Eo *obj, const char *part);
16void click_object_at(Eo *obj, int x, int y); 16void click_object_at(Eo *obj, int x, int y);
17void event_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); 17void event_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);
18void event_callback_that_quits_the_main_loop_when_called();
18#endif 19#endif