From: sooyeon.kim Date: Tue, 14 Aug 2018 04:33:24 +0000 (+0900) Subject: [UTC][voice-control][ACR-1267][Add TCs for voice-control-engine] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5107d50db79dbdd9a83b4b9ec19be16ea6b9669;p=test%2Ftct%2Fnative%2Fapi.git [UTC][voice-control][ACR-1267][Add TCs for voice-control-engine] Change-Id: Iac715b678a198b47d298b8fcff744798179a2b15 Signed-off-by: sooyeon.kim --- diff --git a/src/utc/voice-control/tct-voice-control-core_wearable.h b/src/utc/voice-control/tct-voice-control-core_wearable.h index f44b4a8ce..4fb6c7145 100644 --- a/src/utc/voice-control/tct-voice-control-core_wearable.h +++ b/src/utc/voice-control/tct-voice-control-core_wearable.h @@ -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} }; diff --git a/src/utc/voice-control/utc-voice-control-engine.c b/src/utc/voice-control/utc-voice-control-engine.c index cb01fcca8..70fbcad41 100644 --- a/src/utc/voice-control/utc-voice-control-engine.c +++ b/src/utc/voice-control/utc-voice-control-engine.c @@ -14,8 +14,6 @@ // limitations under the License. // -#ifndef WEARABLE - #include #include #include @@ -1067,4 +1065,3 @@ int utc_vce_send_feedback_streaming_n(void) return 0; } -#endif //no WEARABLE \ No newline at end of file