return 0;
}
+//& type: auto
+//& purpose: Set and get audio id.
+/**
+* @testcase ITc_stt_get_set_audio_id_p
+* @since_tizen 8.0
+* @author SRID(tarun1.kumar)
+* @reviewer SRID(shobhit.v)
+* @type auto
+* @scenario create a stt handler\n
+* @apicovered stt_set_audio_id, stt_get_audio_id
+* @passcase if stt_set_audio_id, stt_get_audio_id and precondition API are successful
+* @failcase if stt_set_audio_id, stt_get_audio_id and precondition API are successful
+* @precondition NA
+* @postcondition NA
+*/
+int ITc_stt_set_get_audio_id_p(void)
+{
+ START_TEST;
+ const char *audio_id = "test";
+ char *get_id = NULL;
+
+ if ( false==g_bFeatureSupported ){
+ int nRet=stt_set_audio_id(g_hStt, audio_id);
+ PRINT_RESULT(STT_ERROR_NOT_SUPPORTED, nRet, "stt_set_audio_id", SttGetError(nRet));
+
+ nRet=stt_get_audio_id(g_hStt, &get_id);
+ PRINT_RESULT(STT_ERROR_NOT_SUPPORTED, nRet, "stt_get_audio_id", SttGetError(nRet));
+ return 0;
+ }
+
+ int nRet=stt_set_audio_id(g_hStt, audio_id);
+ PRINT_RESULT(STT_ERROR_NONE, nRet, "stt_set_audio_id", SttGetError(nRet));
+ nRet=stt_get_audio_id(g_hStt, &get_id);
+ PRINT_RESULT(STT_ERROR_NONE, nRet, "stt_get_audio_id", SttGetError(nRet));
+ nRet=strncmp(get_id, audio_id, strlen(get_id));
+ PRINT_RESULT(0, nRet, "strncmp","audio_id_mismatch_error");
+
+ return 0;
+}
+
+
/** @} */
/** @} */
extern int ITc_stt_start_stop_audio_streaming_p(void);
extern int ITc_stt_get_audio_format_p(void);
extern int ITc_stt_send_audio_streaming_p(void);
+extern int ITc_stt_set_get_audio_id_p(void);
testcase tc_array[] = {
{"ITc_stt_create_destroy_p",ITc_stt_create_destroy_p,ITs_stt_startup,ITs_stt_cleanup},
{"ITc_stt_start_stop_audio_streaming_p",ITc_stt_start_stop_audio_streaming_p,ITs_stt_startup,ITs_stt_cleanup},
{"ITc_stt_get_audio_format_p",ITc_stt_get_audio_format_p,ITs_stt_startup,ITs_stt_cleanup},
{"ITc_stt_send_audio_streaming_p",ITc_stt_send_audio_streaming_p,ITs_stt_startup,ITs_stt_cleanup},
+ {"ITc_stt_set_get_audio_id_p",ITc_stt_set_get_audio_id_p,ITs_stt_startup, ITs_stt_cleanup},
{NULL, NULL}
};
extern int ITc_stt_start_stop_audio_streaming_p(void);
extern int ITc_stt_get_audio_format_p(void);
extern int ITc_stt_send_audio_streaming_p(void);
+extern int ITc_stt_set_get_audio_id_p(void);
testcase tc_array[] = {
{"ITc_stt_create_destroy_p",ITc_stt_create_destroy_p,ITs_stt_startup,ITs_stt_cleanup},
{"ITc_stt_start_stop_audio_streaming_p",ITc_stt_start_stop_audio_streaming_p,ITs_stt_startup,ITs_stt_cleanup},
{"ITc_stt_get_audio_format_p",ITc_stt_get_audio_format_p,ITs_stt_startup,ITs_stt_cleanup},
{"ITc_stt_send_audio_streaming_p",ITc_stt_send_audio_streaming_p,ITs_stt_startup,ITs_stt_cleanup},
+ {"ITc_stt_set_get_audio_id_p",ITc_stt_set_get_audio_id_p,ITs_stt_startup, ITs_stt_cleanup},
{NULL, NULL}
};
extern int ITc_stt_start_stop_audio_streaming_p(void);
extern int ITc_stt_get_audio_format_p(void);
extern int ITc_stt_send_audio_streaming_p(void);
+extern int ITc_stt_set_get_audio_id_p(void);
testcase tc_array[] = {
{"ITc_stt_create_destroy_p",ITc_stt_create_destroy_p,ITs_stt_startup,ITs_stt_cleanup},
{"ITc_stt_start_stop_audio_streaming_p",ITc_stt_start_stop_audio_streaming_p,ITs_stt_startup,ITs_stt_cleanup},
{"ITc_stt_get_audio_format_p",ITc_stt_get_audio_format_p,ITs_stt_startup,ITs_stt_cleanup},
{"ITc_stt_send_audio_streaming_p",ITc_stt_send_audio_streaming_p,ITs_stt_startup,ITs_stt_cleanup},
+ {"ITc_stt_set_get_audio_id_p",ITc_stt_set_get_audio_id_p,ITs_stt_startup, ITs_stt_cleanup},
{NULL, NULL}
};
extern int ITc_stt_start_stop_audio_streaming_p(void);
extern int ITc_stt_get_audio_format_p(void);
extern int ITc_stt_send_audio_streaming_p(void);
+extern int ITc_stt_set_get_audio_id_p(void);
testcase tc_array[] = {
{"ITc_stt_create_destroy_p",ITc_stt_create_destroy_p,ITs_stt_startup,ITs_stt_cleanup},
{"ITc_stt_start_stop_audio_streaming_p",ITc_stt_start_stop_audio_streaming_p,ITs_stt_startup,ITs_stt_cleanup},
{"ITc_stt_get_audio_format_p",ITc_stt_get_audio_format_p,ITs_stt_startup,ITs_stt_cleanup},
{"ITc_stt_send_audio_streaming_p",ITc_stt_send_audio_streaming_p,ITs_stt_startup,ITs_stt_cleanup},
+ {"ITc_stt_set_get_audio_id_p",ITc_stt_set_get_audio_id_p,ITs_stt_startup, ITs_stt_cleanup},
{NULL, NULL}
};