[UTC][voice-control][ACR-1267][Add TCs for voice-control-engine]
authorsooyeon.kim <sooyeon.kim@samsung.com>
Tue, 14 Aug 2018 04:33:24 +0000 (13:33 +0900)
committersooyeon.kim <sooyeon.kim@samsung.com>
Tue, 14 Aug 2018 04:33:53 +0000 (13:33 +0900)
Change-Id: Iac715b678a198b47d298b8fcff744798179a2b15
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
src/utc/voice-control/tct-voice-control-core_wearable.h
src/utc/voice-control/utc-voice-control-engine.c

index f44b4a8ceb49339583a41c4a680ad79443d93f7d..4fb6c7145d6f987121b8ac23a618f082cf4f3a2a 100644 (file)
@@ -137,6 +137,41 @@ extern int utc_vc_cmd_set_format_n(void);
 extern int utc_vc_cmd_get_format_p(void);
 extern int utc_vc_cmd_get_format_n(void);
 
+extern int utc_vce_main_p(void);
+extern int utc_vce_main_n(void);
+extern int utc_vce_send_result_p(void);
+extern int utc_vce_send_result_n(void);
+
+extern int utc_vce_send_asr_result_n1(void);
+extern int utc_vce_send_asr_result_n2(void);
+extern int utc_vce_send_nlg_result_n(void);
+extern int utc_vce_send_specific_engine_result_p(void);
+extern int utc_vce_send_specific_engine_result_n(void);
+extern int utc_vce_send_error_p(void);
+extern int utc_vce_set_private_data_set_cb_p(void);
+extern int utc_vce_set_private_data_set_cb_n(void);
+extern int utc_vce_set_private_data_requested_cb_p(void);
+extern int utc_vce_set_private_data_requested_cb_n(void);
+extern int utc_vce_set_nlu_base_info_requested_cb_p(void);
+extern int utc_vce_set_nlu_base_info_requested_cb_n(void);
+extern int utc_vce_set_specific_engine_request_cb_p(void);
+extern int utc_vce_set_specific_engine_request_cb_n(void);
+extern int utc_vce_unset_specific_engine_request_cb_p(void);
+extern int utc_vce_get_foreach_command_n(void);
+extern int utc_vce_get_command_count_p(void);
+extern int utc_vce_get_command_count_n(void);
+extern int utc_vce_get_audio_type_p(void);
+extern int utc_vce_get_audio_type_n(void);
+extern int utc_vce_set_private_data_p(void);
+extern int utc_vce_set_private_data_n(void);
+extern int utc_vce_get_private_data_p(void);
+extern int utc_vce_get_private_data_n(void);
+extern int utc_vce_start_recording_p(void);
+extern int utc_vce_stop_recording_p(void);
+extern int utc_vce_send_feedback_audio_format_p(void);
+extern int utc_vce_send_feedback_audio_format_n(void);
+extern int utc_vce_send_feedback_streaming_p(void);
+extern int utc_vce_send_feedback_streaming_n(void);
 
 testcase tc_array[] = {
        {"utc_vc_initialize_p",utc_vc_initialize_p,utc_voice_control_startup,utc_voice_control_cleanup},
@@ -250,6 +285,40 @@ testcase tc_array[] = {
        {"utc_vc_cmd_set_format_n",utc_vc_cmd_set_format_n,utc_voice_control_startup,utc_voice_control_cleanup},
        {"utc_vc_cmd_get_format_p",utc_vc_cmd_get_format_p,utc_voice_control_startup,utc_voice_control_cleanup},
        {"utc_vc_cmd_get_format_n",utc_vc_cmd_get_format_n,utc_voice_control_startup,utc_voice_control_cleanup},
+       {"utc_vce_main_p",utc_vce_main_p,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_main_n",utc_vce_main_n,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_send_result_p",utc_vce_send_result_n,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_send_result_n",utc_vce_send_result_n,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_send_asr_result_n1",utc_vce_send_asr_result_n1,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_send_asr_result_n2",utc_vce_send_asr_result_n2,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_send_nlg_result_n",utc_vce_send_nlg_result_n,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_send_specific_engine_result_p",utc_vce_send_specific_engine_result_p,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_send_specific_engine_result_n",utc_vce_send_specific_engine_result_n,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_send_error_p",utc_vce_send_error_p,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_set_private_data_set_cb_p",utc_vce_set_private_data_set_cb_p,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_set_private_data_set_cb_n",utc_vce_set_private_data_set_cb_n,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_set_private_data_requested_cb_p",utc_vce_set_private_data_requested_cb_p,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_set_private_data_requested_cb_n",utc_vce_set_private_data_requested_cb_n,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_set_nlu_base_info_requested_cb_p",utc_vce_set_nlu_base_info_requested_cb_p,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_set_nlu_base_info_requested_cb_n",utc_vce_set_nlu_base_info_requested_cb_n,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_set_specific_engine_request_cb_p",utc_vce_set_specific_engine_request_cb_p,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_set_specific_engine_request_cb_n",utc_vce_set_specific_engine_request_cb_n,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_unset_specific_engine_request_cb_p",utc_vce_unset_specific_engine_request_cb_p,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_get_foreach_command_n",utc_vce_get_foreach_command_n,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_get_command_count_p",utc_vce_get_command_count_p,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_get_command_count_n",utc_vce_get_command_count_n,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_get_audio_type_p",utc_vce_get_audio_type_p,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_get_audio_type_n",utc_vce_get_audio_type_n,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_set_private_data_p",utc_vce_set_private_data_p,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_set_private_data_n",utc_vce_set_private_data_n,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_get_private_data_p",utc_vce_get_private_data_p,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_get_private_data_n",utc_vce_get_private_data_n,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_start_recording_p",utc_vce_start_recording_p,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_stop_recording_p",utc_vce_stop_recording_p,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_send_feedback_audio_format_p",utc_vce_send_feedback_audio_format_p,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_send_feedback_audio_format_n",utc_vce_send_feedback_audio_format_n,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_send_feedback_streaming_p",utc_vce_send_feedback_streaming_p,utc_vce_startup,utc_vce_cleanup},
+       {"utc_vce_send_feedback_streaming_n",utc_vce_send_feedback_streaming_n,utc_vce_startup,utc_vce_cleanup},
        {NULL, NULL}
 };
 
index cb01fcca81800224c179d15e5f32c9ef6c5dfb60..70fbcad418959fdc12d504b854541eef1914c3bc 100644 (file)
@@ -14,8 +14,6 @@
 // limitations under the License.
 //
 
-#ifndef WEARABLE
-
 #include <vce.h>
 #include <stdlib.h>
 #include <system_info.h>
@@ -1067,4 +1065,3 @@ int utc_vce_send_feedback_streaming_n(void)
 
        return 0;
 }
-#endif //no WEARABLE
\ No newline at end of file