summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-08-01 09:04:09 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-08-01 09:04:09 -0400
commitadaea4170af0268f7d2b69cba4c62bbc9a7396a9 (patch)
tree344a0adbe49b91a89deacaa0aafc293b23549e6b /src/tests
parent2c4b26ef4eb1afef114d461361e6ef767286e70e (diff)
tests/ecore_wl2: Add test for ecore_wl2_input_name_get
ref T8016
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/ecore_wl2/ecore_wl2_test_input.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/tests/ecore_wl2/ecore_wl2_test_input.c b/src/tests/ecore_wl2/ecore_wl2_test_input.c
index fd422e09e5..73056a77fa 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_input.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_input.c
@@ -109,6 +109,27 @@ EFL_START_TEST(wl2_input_keymap_get)
109} 109}
110EFL_END_TEST 110EFL_END_TEST
111 111
112EFL_START_TEST(wl2_input_name_get)
113{
114 Ecore_Wl2_Display *disp;
115 Ecore_Wl2_Input *input;
116 Eina_Iterator *itr;
117
118 disp = _display_connect();
119 ck_assert(disp != NULL);
120
121 itr = ecore_wl2_display_inputs_get(disp);
122 ck_assert(itr != NULL);
123
124 EINA_ITERATOR_FOREACH(itr, input)
125 {
126 printf("Input: <%s>\n", ecore_wl2_input_name_get(input));
127 }
128
129 eina_iterator_free(itr);
130}
131EFL_END_TEST
132
112void 133void
113ecore_wl2_test_input(TCase *tc) 134ecore_wl2_test_input(TCase *tc)
114{ 135{
@@ -118,5 +139,6 @@ ecore_wl2_test_input(TCase *tc)
118 tcase_add_test(tc, wl2_input_seat_id_get); 139 tcase_add_test(tc, wl2_input_seat_id_get);
119 tcase_add_test(tc, wl2_input_display_get); 140 tcase_add_test(tc, wl2_input_display_get);
120 tcase_add_test(tc, wl2_input_keymap_get); 141 tcase_add_test(tc, wl2_input_keymap_get);
142 tcase_add_test(tc, wl2_input_name_get);
121 } 143 }
122} 144}