summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-08-20 17:32:15 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-08-26 14:42:49 +0200
commit1c1c3685fee081f314d4a77169435e9589436109 (patch)
tree837ea0983f64225e420fb048a93d8d1923b2612f /src/tests
parent35f9fc26e3d3c08d1404184ad15ef4035dc3d896 (diff)
suite_helpers: punsh some sanity into function names
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9661
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/elementary/efl_ui_test_popup.c4
-rw-r--r--src/tests/elementary/elm_test_actionslider.c2
-rw-r--r--src/tests/elementary/elm_test_bubble.c2
-rw-r--r--src/tests/elementary/suite_helpers.c2
-rw-r--r--src/tests/elementary/suite_helpers.h2
5 files changed, 6 insertions, 6 deletions
diff --git a/src/tests/elementary/efl_ui_test_popup.c b/src/tests/elementary/efl_ui_test_popup.c
index a1d6d4f17f..eea9967cc4 100644
--- a/src/tests/elementary/efl_ui_test_popup.c
+++ b/src/tests/elementary/efl_ui_test_popup.c
@@ -177,7 +177,7 @@ EFL_START_TEST(efl_ui_test_popup_events)
177 popup = efl_add(EFL_UI_POPUP_CLASS, win); 177 popup = efl_add(EFL_UI_POPUP_CLASS, win);
178 178
179 efl_event_callback_add(popup, EFL_UI_POPUP_EVENT_BACKWALL_CLICKED, 179 efl_event_callback_add(popup, EFL_UI_POPUP_EVENT_BACKWALL_CLICKED,
180 (void*)event_callback_that_is_called_exactly_one_time_and_sets_a_single_int_data_pointer_when_called, &called); 180 (void*)event_callback_single_call_int_data, &called);
181 efl_event_callback_add(popup, EFL_UI_POPUP_EVENT_TIMEOUT, event_callback_that_quits_the_main_loop_when_called, NULL); 181 efl_event_callback_add(popup, EFL_UI_POPUP_EVENT_TIMEOUT, event_callback_that_quits_the_main_loop_when_called, NULL);
182 efl_gfx_hint_size_min_set(popup, EINA_SIZE2D(POPUP_SIZE, POPUP_SIZE)); 182 efl_gfx_hint_size_min_set(popup, EINA_SIZE2D(POPUP_SIZE, POPUP_SIZE));
183 183
@@ -199,7 +199,7 @@ EFL_START_TEST(efl_ui_test_popup_events)
199 efl_gfx_entity_size_set(repeat_test_btn, EINA_SIZE2D(100, 100)); 199 efl_gfx_entity_size_set(repeat_test_btn, EINA_SIZE2D(100, 100));
200 efl_text_set(repeat_test_btn, "Repeat Event Test"); 200 efl_text_set(repeat_test_btn, "Repeat Event Test");
201 efl_event_callback_add(repeat_test_btn, EFL_INPUT_EVENT_CLICKED, 201 efl_event_callback_add(repeat_test_btn, EFL_INPUT_EVENT_CLICKED,
202 (void*)event_callback_that_is_called_exactly_one_time_and_sets_a_single_int_data_pointer_when_called, &called); 202 (void*)event_callback_single_call_int_data, &called);
203 efl_ui_popup_part_backwall_repeat_events_set(efl_part(popup, "backwall"), EINA_TRUE); 203 efl_ui_popup_part_backwall_repeat_events_set(efl_part(popup, "backwall"), EINA_TRUE);
204 click_object(repeat_test_btn); 204 click_object(repeat_test_btn);
205 205
diff --git a/src/tests/elementary/elm_test_actionslider.c b/src/tests/elementary/elm_test_actionslider.c
index 4210ec6c13..4b89f131fe 100644
--- a/src/tests/elementary/elm_test_actionslider.c
+++ b/src/tests/elementary/elm_test_actionslider.c
@@ -72,7 +72,7 @@ EFL_START_TEST(elm_actionslider_test_callbacks)
72 elm_actionslider_enabled_pos_set(as, ELM_ACTIONSLIDER_LEFT | 72 elm_actionslider_enabled_pos_set(as, ELM_ACTIONSLIDER_LEFT |
73 ELM_ACTIONSLIDER_CENTER | ELM_ACTIONSLIDER_RIGHT); 73 ELM_ACTIONSLIDER_CENTER | ELM_ACTIONSLIDER_RIGHT);
74 evas_object_smart_callback_add(as, "pos_changed", 74 evas_object_smart_callback_add(as, "pos_changed",
75 event_callback_that_is_called_exactly_one_time_and_sets_a_single_int_data_pointer_when_called, &called); 75 event_callback_single_call_int_data, &called);
76 evas_object_smart_callback_add(as, "selected", test_selected_cb, &called); 76 evas_object_smart_callback_add(as, "selected", test_selected_cb, &called);
77 77
78 get_me_to_those_events(as); 78 get_me_to_those_events(as);
diff --git a/src/tests/elementary/elm_test_bubble.c b/src/tests/elementary/elm_test_bubble.c
index b91a402ae9..57a383ef1c 100644
--- a/src/tests/elementary/elm_test_bubble.c
+++ b/src/tests/elementary/elm_test_bubble.c
@@ -58,7 +58,7 @@ EFL_START_TEST(elm_bubble_test_callbacks)
58 elm_object_part_text_set(bb, "info", "Corner: bottom_right"); 58 elm_object_part_text_set(bb, "info", "Corner: bottom_right");
59 elm_object_part_content_set(bb, "icon", ic); 59 elm_object_part_content_set(bb, "icon", ic);
60 elm_bubble_pos_set(bb, ELM_BUBBLE_POS_BOTTOM_RIGHT); 60 elm_bubble_pos_set(bb, ELM_BUBBLE_POS_BOTTOM_RIGHT);
61 evas_object_smart_callback_add(bb, "clicked", event_callback_that_is_called_exactly_one_time_and_sets_a_single_int_data_pointer_when_called, &called); 61 evas_object_smart_callback_add(bb, "clicked", event_callback_single_call_int_data, &called);
62 evas_object_show(ic); 62 evas_object_show(ic);
63 evas_object_size_hint_weight_set(bb, EVAS_HINT_EXPAND, 0.0); 63 evas_object_size_hint_weight_set(bb, EVAS_HINT_EXPAND, 0.0);
64 evas_object_size_hint_align_set(bb, EVAS_HINT_FILL, EVAS_HINT_FILL); 64 evas_object_size_hint_align_set(bb, EVAS_HINT_FILL, EVAS_HINT_FILL);
diff --git a/src/tests/elementary/suite_helpers.c b/src/tests/elementary/suite_helpers.c
index 5c89446a47..81da3813f6 100644
--- a/src/tests/elementary/suite_helpers.c
+++ b/src/tests/elementary/suite_helpers.c
@@ -506,7 +506,7 @@ wheel_part(Eo *obj, const char *part, Eina_Bool horiz, Eina_Bool down)
506} 506}
507 507
508void 508void
509event_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) 509event_callback_single_call_int_data(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
510{ 510{
511 int *called = data; 511 int *called = data;
512 512
diff --git a/src/tests/elementary/suite_helpers.h b/src/tests/elementary/suite_helpers.h
index 26cadf1c79..d0ada37fb8 100644
--- a/src/tests/elementary/suite_helpers.h
+++ b/src/tests/elementary/suite_helpers.h
@@ -17,6 +17,6 @@ void click_object_at(Eo *obj, int x, int y);
17void wheel_object(Eo *obj, Eina_Bool horiz, Eina_Bool down); 17void wheel_object(Eo *obj, Eina_Bool horiz, Eina_Bool down);
18void wheel_part(Eo *obj, const char *part, Eina_Bool horiz, Eina_Bool down); 18void wheel_part(Eo *obj, const char *part, Eina_Bool horiz, Eina_Bool down);
19void wheel_object_at(Eo *obj, int x, int y, Eina_Bool horiz, Eina_Bool down); 19void wheel_object_at(Eo *obj, int x, int y, Eina_Bool horiz, Eina_Bool down);
20void 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); 20void event_callback_single_call_int_data(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED);
21void event_callback_that_quits_the_main_loop_when_called(); 21void event_callback_that_quits_the_main_loop_when_called();
22#endif 22#endif