[UTC][capi-ui-inputmethod][ACR-645][Add negative tc for new api]
authorsungwook79.park <sungwook79.park@samsung.com>
Thu, 14 Jul 2016 02:46:59 +0000 (11:46 +0900)
committersungwook79.park <sungwook79.park@samsung.com>
Thu, 14 Jul 2016 04:23:07 +0000 (13:23 +0900)
Change-Id: Ifa692815ffcc4f2102031518388d475ee82ab8ea
Signed-off-by: sungwook79.park <sungwook79.park@samsung.com>
src/utc/capi-ui-inputmethod/public.list
src/utc/capi-ui-inputmethod/tct-capi-ui-inputmethod-core_wearable.h
src/utc/capi-ui-inputmethod/utc-capi-ui-inputmethod.c

index 2d974ce..71d2d35 100755 (executable)
@@ -45,3 +45,6 @@ ime_context_get_language
 ime_device_info_get_name
 ime_device_info_get_class
 ime_device_info_get_subclass
+ime_event_set_process_input_device_event_cb
+ime_event_unset_process_input_device_event_cb
+ime_input_device_rotary_get_direction
index a984fb3..641acb5 100755 (executable)
@@ -125,6 +125,9 @@ extern int utc_ime_device_info_get_class_n(void);
 extern int utc_ime_device_info_get_class_n2(void);
 extern int utc_ime_device_info_get_subclass_n(void);
 extern int utc_ime_device_info_get_subclass_n2(void);
+extern int utc_ime_event_set_process_input_device_event_cb_n(void);
+extern int utc_ime_event_unset_process_input_device_event_cb_n(void);
+extern int utc_ime_input_device_rotary_get_direction_n(void);
 
 testcase tc_array[] = {
     {"utc_ime_run_p", utc_ime_run_p, utc_capi_ui_inputmethod_startup, utc_capi_ui_inputmethod_cleanup},
@@ -230,6 +233,9 @@ testcase tc_array[] = {
     {"utc_ime_device_info_get_class_n2", utc_ime_device_info_get_class_n2, utc_capi_ui_inputmethod_startup, utc_capi_ui_inputmethod_cleanup},
     {"utc_ime_device_info_get_subclass_n", utc_ime_device_info_get_subclass_n, utc_capi_ui_inputmethod_startup, utc_capi_ui_inputmethod_cleanup},
     {"utc_ime_device_info_get_subclass_n2", utc_ime_device_info_get_subclass_n2, utc_capi_ui_inputmethod_startup, utc_capi_ui_inputmethod_cleanup},
+    {"utc_ime_event_set_process_input_device_event_cb_n", utc_ime_event_set_process_input_device_event_cb_n, utc_capi_ui_inputmethod_startup, utc_capi_ui_inputmethod_cleanup},
+    {"utc_ime_event_unset_process_input_device_event_cb_n", utc_ime_event_unset_process_input_device_event_cb_n, utc_capi_ui_inputmethod_startup, utc_capi_ui_inputmethod_cleanup},
+    {"utc_ime_input_device_rotary_get_direction_n", utc_ime_input_device_rotary_get_direction_n, utc_capi_ui_inputmethod_startup, utc_capi_ui_inputmethod_cleanup},
     {NULL, NULL}
 };
 
index 5ffba4e..810b0d6 100755 (executable)
@@ -1533,3 +1533,41 @@ int utc_ime_device_info_get_subclass_n2(void)
     assert_eq(ret, IME_ERROR_NOT_RUNNING);
     return 0;
 }
+
+#ifdef WEARABLE
+/**
+ * @testcase           utc_ime_event_set_process_input_device_event_cb_n
+ * @since_tizen                3.0
+ * @description                Negative UTC of the function that called when the input event is received from an unconventional input device that does not generate key events.
+ */
+int utc_ime_event_set_process_input_device_event_cb_n(void)
+{
+    int ret = ime_event_set_process_input_device_event_cb(NULL, NULL);
+    assert_eq(ret, IME_ERROR_INVALID_PARAMETER);
+    return 0;
+}
+
+/**
+ * @testcase           utc_ime_event_unset_process_input_device_event_cb_n
+ * @since_tizen                3.0
+ * @description                Negative UTC of the function to reset a function for Rotary input device event.
+ */
+int utc_ime_event_unset_process_input_device_event_cb_n(void)
+{
+    int ret = ime_event_unset_process_input_device_event_cb();
+    assert_eq(ret, IME_ERROR_OPERATION_FAILED);
+    return 0;
+}
+
+/**
+ * @testcase           utc_ime_input_device_rotary_get_direction_n
+ * @since_tizen                3.0
+ * @description                Negative UTC of the function for Rotary input device event.
+ */
+int utc_ime_input_device_rotary_get_direction_n(void)
+{
+    int ret = ime_input_device_rotary_get_direction(NULL, NULL);
+    assert_eq(ret, IME_ERROR_INVALID_PARAMETER);
+    return 0;
+}
+#endif