ASSERT_EQ(name, nullptr);
}
+TEST_F(etTestInput, input_find_by_name)
+{
+ Ecore_Wl2_Input *input;
+ Ecore_Wl2_Display *display = NULL;
+
+ display = ecore_wl2_connected_display_get(NULL);
+ EINA_SAFETY_ON_NULL_RETURN(display);
+
+ /* NB: Enlightenment uses "seat0" here, but Weston uses "default" */
+ if (getenv("E_START"))
+ input = ecore_wl2_display_input_find_by_name(display, "seat0");
+ else
+ input = ecore_wl2_display_input_find_by_name(display, "default");
+
+ ASSERT_NE(input, nullptr);
+}
+
+TEST_F(etTestInput, input_find_by_name_null_display)
+{
+ Ecore_Wl2_Input *input;
+ Ecore_Wl2_Display *display = NULL;
+
+ display = ecore_wl2_connected_display_get(NULL);
+ EINA_SAFETY_ON_NULL_RETURN(display);
+
+ input = ecore_wl2_display_input_find_by_name(NULL, "seat0");
+ ASSERT_EQ(input, nullptr);
+}
+
+TEST_F(etTestInput, input_find_by_name_null_input)
+{
+ Ecore_Wl2_Input *input;
+ Ecore_Wl2_Display *display = NULL;
+
+ display = ecore_wl2_connected_display_get(NULL);
+ EINA_SAFETY_ON_NULL_RETURN(display);
+
+ input = ecore_wl2_display_input_find_by_name(display, NULL);
+ ASSERT_EQ(input, nullptr);
+}
TEST_F(etTestInput, input_keyboard_repeat_set)
{