[UTC][capi-ui-inputmethod][ACR-1029][Add new API for intelligent reply suggestion...
authorInHong Han <inhong1.han@samsung.com>
Thu, 27 Jul 2017 08:14:23 +0000 (17:14 +0900)
committerJihun Park <jihun87.park@samsung.com>
Thu, 24 Aug 2017 22:36:08 +0000 (22:36 +0000)
Change-Id: Iec58ac560875533a90d149c904f2eec0f968cb40

src/utc/capi-ui-inputmethod/public.list
src/utc/capi-ui-inputmethod/tct-capi-ui-inputmethod-core_mobile.h
src/utc/capi-ui-inputmethod/tct-capi-ui-inputmethod-core_wearable.h
src/utc/capi-ui-inputmethod/utc-capi-ui-inputmethod.c

index 392dafd563f19358306707cbce1141853b269de3..dc8482d5ff6b195629ce5455bd912642ae132f14 100755 (executable)
@@ -47,3 +47,4 @@ ime_device_info_get_class
 ime_device_info_get_subclass
 ime_event_set_process_input_device_event_cb
 ime_input_device_rotary_get_direction
+ime_event_set_prediction_hint_set_cb
\ No newline at end of file
index 9735d95a708fa18c0a30bdde1240cd742414f698..75d3b9b5af4ed9653eec375e4992777f6f013dc3 100755 (executable)
@@ -55,6 +55,7 @@ extern int utc_ime_get_main_window_p(void);
 extern int utc_ime_set_size_p(void);
 extern int utc_ime_create_option_window_p(void);
 extern int utc_ime_destroy_option_window_p(void);
+extern int utc_ime_event_set_prediction_hint_set_cb_p(void);
 extern int utc_ime_run_n(void);
 extern int utc_ime_run_n2(void);
 extern int utc_ime_event_set_focus_in_cb_n(void);
@@ -125,6 +126,7 @@ 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_prediction_hint_set_cb_n(void);
 
 testcase tc_array[] = {
        {"utc_ime_run_p",utc_ime_run_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup},
@@ -160,6 +162,7 @@ testcase tc_array[] = {
        {"utc_ime_set_size_p",utc_ime_set_size_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup},
        {"utc_ime_create_option_window_p",utc_ime_create_option_window_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup},
        {"utc_ime_destroy_option_window_p",utc_ime_destroy_option_window_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup},
+       {"utc_ime_event_set_prediction_hint_set_cb_p",utc_ime_event_set_prediction_hint_set_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup},
        {"utc_ime_run_n",utc_ime_run_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup},
        {"utc_ime_run_n2",utc_ime_run_n2,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup},
        {"utc_ime_event_set_focus_in_cb_n",utc_ime_event_set_focus_in_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup},
@@ -230,6 +233,7 @@ 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_prediction_hint_set_cb_n",utc_ime_event_set_prediction_hint_set_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup},
        {NULL, NULL}
 };
 
index 0dec2671d03300f4843fa1550ea11a3f23df88e3..0078328cd79fcdef0af0b9e1f1e57c6ac4ec8eec 100755 (executable)
@@ -55,6 +55,7 @@ extern int utc_ime_get_main_window_p(void);
 extern int utc_ime_set_size_p(void);
 extern int utc_ime_create_option_window_p(void);
 extern int utc_ime_destroy_option_window_p(void);
+extern int utc_ime_event_set_prediction_hint_set_cb_p(void);
 extern int utc_ime_run_n(void);
 extern int utc_ime_run_n2(void);
 extern int utc_ime_event_set_focus_in_cb_n(void);
@@ -127,6 +128,7 @@ 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_input_device_rotary_get_direction_n(void);
+extern int utc_ime_event_set_prediction_hint_set_cb_n(void);
 
 testcase tc_array[] = {
        {"utc_ime_run_p",utc_ime_run_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup},
@@ -162,6 +164,7 @@ testcase tc_array[] = {
        {"utc_ime_set_size_p",utc_ime_set_size_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup},
        {"utc_ime_create_option_window_p",utc_ime_create_option_window_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup},
        {"utc_ime_destroy_option_window_p",utc_ime_destroy_option_window_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup},
+       {"utc_ime_event_set_prediction_hint_set_cb_p",utc_ime_event_set_prediction_hint_set_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup},
        {"utc_ime_run_n",utc_ime_run_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup},
        {"utc_ime_run_n2",utc_ime_run_n2,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup},
        {"utc_ime_event_set_focus_in_cb_n",utc_ime_event_set_focus_in_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup},
@@ -234,6 +237,7 @@ testcase tc_array[] = {
        {"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_input_device_rotary_get_direction_n",utc_ime_input_device_rotary_get_direction_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup},
+       {"utc_ime_event_set_prediction_hint_set_cb_n",utc_ime_event_set_prediction_hint_set_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup},
        {NULL, NULL}
 };
 
index 07aa0b0154a78178e0228ece8e03a0979e44dd06..0f4e82f794f1321b69cdabb1313251d72d183dc5 100755 (executable)
@@ -83,6 +83,9 @@ static void _option_window_created_cb(Evas_Object *window, ime_option_window_typ
 static void _option_window_destroyed_cb(Evas_Object *window, void *user_data)
 {
 }
+static void _prediction_hint_set_cb(const char *prediction_hint, void *user_data)
+{
+}
 
 static int g_ret = 0;
 
@@ -658,6 +661,17 @@ int utc_ime_destroy_option_window_p(void)
     return 0;
 }
 
+/**
+ * @testcase        utc_ime_event_set_prediction_hint_set_cb_p
+ * @since_tizen     4.0
+ * @description     Positive UTC of the function that sets @c prediction_hint event callback function.
+ */
+int utc_ime_event_set_prediction_hint_set_cb_p(void)
+{
+    int ret = ime_event_set_prediction_hint_set_cb(_prediction_hint_set_cb, NULL);
+    assert_eq(ret, IME_ERROR_NONE);
+    return 0;
+}
 
 
 
@@ -1534,6 +1548,18 @@ int utc_ime_device_info_get_subclass_n2(void)
     return 0;
 }
 
+/**
+ * @testcase        utc_ime_event_set_prediction_hint_set_cb_n
+ * @since_tizen     4.0
+ * @description     Negative UTC of the function that sets @c prediction_hint event callback function.
+ */
+int utc_ime_event_set_prediction_hint_set_cb_n(void)
+{
+    int ret = ime_event_set_prediction_hint_set_cb(NULL, NULL);
+    assert_eq(ret, IME_ERROR_INVALID_PARAMETER);
+    return 0;
+}
+
 #ifdef WEARABLE
 /**
  * @testcase           utc_ime_event_set_process_input_device_event_cb_n