ttse_set_private_data_requested_cb
ttse_get_activated_mode
ttse_set_activated_mode_changed_cb
+tts_set_synthesized_pcm_cb
+tts_unset_synthesized_pcm_cb
+tts_set_playing_mode
\ No newline at end of file
extern int utc_tts_unset_service_state_changed_cb_n(void);
extern int utc_tts_unset_service_state_changed_cb_n2(void);
extern int utc_tts_unset_service_state_changed_cb_n3(void);
+extern int utc_tts_set_synthesized_pcm_cb_p(void);
+extern int utc_tts_set_synthesized_pcm_cb_n(void);
+extern int utc_tts_set_synthesized_pcm_cb_n1(void);
+extern int utc_tts_set_synthesized_pcm_cb_n2(void);
+extern int utc_tts_unset_synthesized_pcm_cb_p(void);
+extern int utc_tts_unset_synthesized_pcm_cb_n(void);
+extern int utc_tts_unset_synthesized_pcm_cb_n1(void);
+extern int utc_tts_set_playing_mode_p(void);
+extern int utc_tts_set_playing_mode_p1(void);
+extern int utc_tts_set_playing_mode_n(void);
+extern int utc_tts_set_playing_mode_n1(void);
extern int utc_ttse_main_p(void);
extern int utc_ttse_main_n(void);
extern int utc_ttse_main_n1(void);
{"utc_tts_unset_service_state_changed_cb_n",utc_tts_unset_service_state_changed_cb_n,utc_tts_startup,utc_tts_cleanup},
{"utc_tts_unset_service_state_changed_cb_n2",utc_tts_unset_service_state_changed_cb_n2,utc_tts_startup,utc_tts_cleanup},
{"utc_tts_unset_service_state_changed_cb_n3",utc_tts_unset_service_state_changed_cb_n3,utc_tts_startup,utc_tts_cleanup},
+ {"utc_tts_set_synthesized_pcm_cb_p", utc_tts_set_synthesized_pcm_cb_p, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_synthesized_pcm_cb_n", utc_tts_set_synthesized_pcm_cb_n, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_synthesized_pcm_cb_n1", utc_tts_set_synthesized_pcm_cb_n1, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_synthesized_pcm_cb_n2", utc_tts_set_synthesized_pcm_cb_n2, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_unset_synthesized_pcm_cb_p", utc_tts_unset_synthesized_pcm_cb_p, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_unset_synthesized_pcm_cb_n", utc_tts_unset_synthesized_pcm_cb_n, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_unset_synthesized_pcm_cb_n1", utc_tts_unset_synthesized_pcm_cb_n1, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_playing_mode_p", utc_tts_set_playing_mode_p, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_playing_mode_p1", utc_tts_set_playing_mode_p1, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_playing_mode_n", utc_tts_set_playing_mode_n, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_playing_mode_n1", utc_tts_set_playing_mode_n1, utc_tts_startup, utc_tts_cleanup},
{"utc_ttse_main_p",utc_ttse_main_p,utc_ttse_startup,utc_ttse_cleanup},
{"utc_ttse_main_n",utc_ttse_main_n,utc_ttse_startup,utc_ttse_cleanup},
{"utc_ttse_main_n1",utc_ttse_main_n1,utc_ttse_startup,utc_ttse_cleanup},
extern int utc_tts_unset_service_state_changed_cb_n(void);
extern int utc_tts_unset_service_state_changed_cb_n2(void);
extern int utc_tts_unset_service_state_changed_cb_n3(void);
+extern int utc_tts_set_synthesized_pcm_cb_p(void);
+extern int utc_tts_set_synthesized_pcm_cb_n(void);
+extern int utc_tts_set_synthesized_pcm_cb_n1(void);
+extern int utc_tts_set_synthesized_pcm_cb_n2(void);
+extern int utc_tts_unset_synthesized_pcm_cb_p(void);
+extern int utc_tts_unset_synthesized_pcm_cb_n(void);
+extern int utc_tts_unset_synthesized_pcm_cb_n1(void);
+extern int utc_tts_set_playing_mode_p(void);
+extern int utc_tts_set_playing_mode_p1(void);
+extern int utc_tts_set_playing_mode_n(void);
+extern int utc_tts_set_playing_mode_n1(void);
extern int utc_ttse_main_p(void);
extern int utc_ttse_main_n(void);
extern int utc_ttse_main_n1(void);
{"utc_tts_unset_service_state_changed_cb_n",utc_tts_unset_service_state_changed_cb_n,utc_tts_startup,utc_tts_cleanup},
{"utc_tts_unset_service_state_changed_cb_n2",utc_tts_unset_service_state_changed_cb_n2,utc_tts_startup,utc_tts_cleanup},
{"utc_tts_unset_service_state_changed_cb_n3",utc_tts_unset_service_state_changed_cb_n3,utc_tts_startup,utc_tts_cleanup},
+ {"utc_tts_set_synthesized_pcm_cb_p", utc_tts_set_synthesized_pcm_cb_p, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_synthesized_pcm_cb_n", utc_tts_set_synthesized_pcm_cb_n, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_synthesized_pcm_cb_n1", utc_tts_set_synthesized_pcm_cb_n1, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_synthesized_pcm_cb_n2", utc_tts_set_synthesized_pcm_cb_n2, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_unset_synthesized_pcm_cb_p", utc_tts_unset_synthesized_pcm_cb_p, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_unset_synthesized_pcm_cb_n", utc_tts_unset_synthesized_pcm_cb_n, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_unset_synthesized_pcm_cb_n1", utc_tts_unset_synthesized_pcm_cb_n1, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_playing_mode_p", utc_tts_set_playing_mode_p, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_playing_mode_p1", utc_tts_set_playing_mode_p1, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_playing_mode_n", utc_tts_set_playing_mode_n, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_playing_mode_n1", utc_tts_set_playing_mode_n1, utc_tts_startup, utc_tts_cleanup},
{"utc_ttse_main_p",utc_ttse_main_p,utc_ttse_startup,utc_ttse_cleanup},
{"utc_ttse_main_n",utc_ttse_main_n,utc_ttse_startup,utc_ttse_cleanup},
{"utc_ttse_main_n1",utc_ttse_main_n1,utc_ttse_startup,utc_ttse_cleanup},
extern int utc_tts_unset_service_state_changed_cb_n(void);
extern int utc_tts_unset_service_state_changed_cb_n2(void);
extern int utc_tts_unset_service_state_changed_cb_n3(void);
+extern int utc_tts_set_synthesized_pcm_cb_p(void);
+extern int utc_tts_set_synthesized_pcm_cb_n(void);
+extern int utc_tts_set_synthesized_pcm_cb_n1(void);
+extern int utc_tts_set_synthesized_pcm_cb_n2(void);
+extern int utc_tts_unset_synthesized_pcm_cb_p(void);
+extern int utc_tts_unset_synthesized_pcm_cb_n(void);
+extern int utc_tts_unset_synthesized_pcm_cb_n1(void);
+extern int utc_tts_set_playing_mode_p(void);
+extern int utc_tts_set_playing_mode_p1(void);
+extern int utc_tts_set_playing_mode_n(void);
+extern int utc_tts_set_playing_mode_n1(void);
testcase tc_array[] = {
{"utc_tts_create_p",utc_tts_create_p,utc_tts_startup,utc_tts_cleanup},
{"utc_tts_unset_service_state_changed_cb_n",utc_tts_unset_service_state_changed_cb_n,utc_tts_startup,utc_tts_cleanup},
{"utc_tts_unset_service_state_changed_cb_n2",utc_tts_unset_service_state_changed_cb_n2,utc_tts_startup,utc_tts_cleanup},
{"utc_tts_unset_service_state_changed_cb_n3",utc_tts_unset_service_state_changed_cb_n3,utc_tts_startup,utc_tts_cleanup},
+ {"utc_tts_set_synthesized_pcm_cb_p", utc_tts_set_synthesized_pcm_cb_p, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_synthesized_pcm_cb_n", utc_tts_set_synthesized_pcm_cb_n, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_synthesized_pcm_cb_n1", utc_tts_set_synthesized_pcm_cb_n1, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_synthesized_pcm_cb_n2", utc_tts_set_synthesized_pcm_cb_n2, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_unset_synthesized_pcm_cb_p", utc_tts_unset_synthesized_pcm_cb_p, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_unset_synthesized_pcm_cb_n", utc_tts_unset_synthesized_pcm_cb_n, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_unset_synthesized_pcm_cb_n1", utc_tts_unset_synthesized_pcm_cb_n1, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_playing_mode_p", utc_tts_set_playing_mode_p, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_playing_mode_p1", utc_tts_set_playing_mode_p1, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_playing_mode_n", utc_tts_set_playing_mode_n, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_playing_mode_n1", utc_tts_set_playing_mode_n1, utc_tts_startup, utc_tts_cleanup},
{NULL, NULL}
};
extern int utc_tts_unset_service_state_changed_cb_n(void);
extern int utc_tts_unset_service_state_changed_cb_n2(void);
extern int utc_tts_unset_service_state_changed_cb_n3(void);
+extern int utc_tts_set_synthesized_pcm_cb_p(void);
+extern int utc_tts_set_synthesized_pcm_cb_n(void);
+extern int utc_tts_set_synthesized_pcm_cb_n1(void);
+extern int utc_tts_set_synthesized_pcm_cb_n2(void);
+extern int utc_tts_unset_synthesized_pcm_cb_p(void);
+extern int utc_tts_unset_synthesized_pcm_cb_n(void);
+extern int utc_tts_unset_synthesized_pcm_cb_n1(void);
+extern int utc_tts_set_playing_mode_p(void);
+extern int utc_tts_set_playing_mode_p1(void);
+extern int utc_tts_set_playing_mode_n(void);
+extern int utc_tts_set_playing_mode_n1(void);
extern int utc_ttse_main_p(void);
extern int utc_ttse_main_n(void);
extern int utc_ttse_terminate_p(void);
{"utc_tts_unset_service_state_changed_cb_n",utc_tts_unset_service_state_changed_cb_n,utc_tts_startup,utc_tts_cleanup},
{"utc_tts_unset_service_state_changed_cb_n2",utc_tts_unset_service_state_changed_cb_n2,utc_tts_startup,utc_tts_cleanup},
{"utc_tts_unset_service_state_changed_cb_n3",utc_tts_unset_service_state_changed_cb_n3,utc_tts_startup,utc_tts_cleanup},
+ {"utc_tts_set_synthesized_pcm_cb_p", utc_tts_set_synthesized_pcm_cb_p, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_synthesized_pcm_cb_n", utc_tts_set_synthesized_pcm_cb_n, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_synthesized_pcm_cb_n1", utc_tts_set_synthesized_pcm_cb_n1, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_synthesized_pcm_cb_n2", utc_tts_set_synthesized_pcm_cb_n2, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_unset_synthesized_pcm_cb_p", utc_tts_unset_synthesized_pcm_cb_p, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_unset_synthesized_pcm_cb_n", utc_tts_unset_synthesized_pcm_cb_n, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_unset_synthesized_pcm_cb_n1", utc_tts_unset_synthesized_pcm_cb_n1, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_playing_mode_p", utc_tts_set_playing_mode_p, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_playing_mode_p1", utc_tts_set_playing_mode_p1, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_playing_mode_n", utc_tts_set_playing_mode_n, utc_tts_startup, utc_tts_cleanup},
+ {"utc_tts_set_playing_mode_n1", utc_tts_set_playing_mode_n1, utc_tts_startup, utc_tts_cleanup},
{"utc_ttse_main_p",utc_ttse_main_p,utc_ttse_startup,utc_ttse_cleanup},
{"utc_ttse_main_n",utc_ttse_main_n,utc_ttse_startup,utc_ttse_cleanup},
{"utc_ttse_main_n1",utc_ttse_main_n1,utc_ttse_startup,utc_ttse_cleanup},
{
}
+static void __tts_synthesized_pcm_cb(tts_h tts, int utt_id, tts_synthesized_pcm_event_e event, const char* pcm_data, int pcm_data_size, tts_audio_type_e audio_type, int sample_rate, void *user_data)
+{
+}
+
static void __tts_service_state_changed_cb(tts_h tts, tts_service_state_e previous, tts_service_state_e current, void* user_data)
{
g_current_service_state = current;
return 0;
}
+/**
+ * @testcase utc_tts_set_synthesized_pcm_cb_p
+ * @since_tizen 8.0
+ * @description Positive UTC for set synthesized pcm callback
+ */
+int utc_tts_set_synthesized_pcm_cb_p(void) {
+ int ret = TTS_ERROR_NONE;
+
+ if (g_supported == false) {
+ ret = tts_set_synthesized_pcm_cb(NULL, __tts_synthesized_pcm_cb, NULL);
+ assert_eq(ret, TTS_ERROR_NOT_SUPPORTED);
+ }
+ else {
+ assert_eq(is_created_hndl, TTS_ERROR_NONE);
+ ret = tts_set_synthesized_pcm_cb(g_tts, __tts_synthesized_pcm_cb, NULL);
+ assert_eq(ret, TTS_ERROR_NONE);
+ ret = tts_unset_synthesized_pcm_cb(g_tts);
+ assert_eq(ret, TTS_ERROR_NONE);
+ }
+ return 0;
+}
+
+/**
+ * @testcase utc_tts_set_synthesized_pcm_cb_n
+ * @since_tizen 8.0
+ * @description Negative UTC for set synthesized pcm callback (Invalid handle)
+ */
+int utc_tts_set_synthesized_pcm_cb_n(void) {
+ int ret = TTS_ERROR_NONE;
+
+ if (g_supported == false) {
+ ret = tts_set_synthesized_pcm_cb(NULL, __tts_synthesized_pcm_cb, NULL);
+ assert_eq(ret, TTS_ERROR_NOT_SUPPORTED);
+ }
+ else {
+ ret = tts_set_synthesized_pcm_cb(NULL, __tts_synthesized_pcm_cb, NULL);
+ assert_eq(ret, TTS_ERROR_INVALID_PARAMETER);
+ }
+ return 0;
+}
+
+/**
+ * @testcase utc_tts_set_synthesized_pcm_cb_n1
+ * @since_tizen 8.0
+ * @description Negative UTC for set synthesized pcm callback (Invalid parameter)
+ */
+int utc_tts_set_synthesized_pcm_cb_n1(void) {
+ int ret = TTS_ERROR_NONE;
+
+ if (g_supported == false) {
+ ret = tts_set_synthesized_pcm_cb(g_tts, NULL, NULL);
+ assert_eq(ret, TTS_ERROR_NOT_SUPPORTED);
+ }
+ else {
+ assert_eq(is_created_hndl, TTS_ERROR_NONE);
+ ret = tts_set_synthesized_pcm_cb(g_tts, NULL, NULL);
+ assert_eq(ret, TTS_ERROR_INVALID_PARAMETER);
+ }
+ return 0;
+}
+
+/**
+ * @testcase utc_tts_set_synthesized_pcm_cb_n2
+ * @since_tizen 8.0
+ * @description Negative UTC for set synthesized pcm callback (Invalid state)
+ */
+ int utc_tts_set_synthesized_pcm_cb_n2(void) {
+ int ret = TTS_ERROR_NONE;
+
+ if (g_supported == false) {
+ ret = tts_set_synthesized_pcm_cb(NULL, __tts_synthesized_pcm_cb, NULL);
+ assert_eq(ret, TTS_ERROR_NOT_SUPPORTED);
+ }
+ else {
+ assert_eq(is_created_hndl, TTS_ERROR_NONE);
+
+ ret = tts_prepare(g_tts);
+ assert_eq(ret, TTS_ERROR_NONE);
+
+ while (TTS_STATE_READY != g_current_state) {
+ ecore_main_loop_iterate();
+ }
+
+ ret = tts_set_synthesized_pcm_cb(g_tts, __tts_synthesized_pcm_cb, NULL);
+ assert_eq(ret, TTS_ERROR_INVALID_STATE);
+
+ ret = tts_unprepare(g_tts);
+ assert_eq(ret, TTS_ERROR_NONE);
+ }
+}
+
+/**
+ * @testcase utc_tts_unset_synthesized_pcm_cb_p
+ * @since_tizen 8.0
+ * @description Positive UTC for unset synthesized pcm callback
+ */
+ int utc_tts_unset_synthesized_pcm_cb_p(void) {
+ int ret = TTS_ERROR_NONE;
+
+ if (g_supported == false) {
+ ret = tts_unset_synthesized_pcm_cb(g_tts);
+ assert_eq(ret, TTS_ERROR_NOT_SUPPORTED);
+ }
+ else {
+ assert_eq(is_created_hndl, TTS_ERROR_NONE);
+ ret = tts_set_synthesized_pcm_cb(g_tts, __tts_synthesized_pcm_cb, NULL);
+ assert_eq(ret, TTS_ERROR_NONE);
+ ret = tts_unset_synthesized_pcm_cb(g_tts);
+ assert_eq(ret, TTS_ERROR_NONE);
+ }
+ return 0;
+}
+
+/**
+ * @testcase utc_tts_unset_synthesized_pcm_cb_n
+ * @since_tizen 8.0
+ * @description Negative UTC for unset synthesized pcm callback (Invalid handle)
+ */
+int utc_tts_unset_synthesized_pcm_cb_n(void) {
+ int ret = TTS_ERROR_NONE;
+
+ if (g_supported == false) {
+ ret = tts_unset_synthesized_pcm_cb(NULL);
+ assert_eq(ret, TTS_ERROR_NOT_SUPPORTED);
+ }
+ else {
+ ret = tts_unset_synthesized_pcm_cb(NULL);
+ assert_eq(ret, TTS_ERROR_INVALID_PARAMETER);
+ }
+ return 0;
+}
+
+/**
+ * @testcase utc_tts_unset_synthesized_pcm_cb_n1
+ * @since_tizen 8.0
+ * @description Negative UTC for unset synthesized pcm callback (Invalid state)
+ */
+int utc_tts_unset_synthesized_pcm_cb_n1(void) {
+ int ret = TTS_ERROR_NONE;
+
+ if (g_supported == false) {
+ ret = tts_unset_synthesized_pcm_cb(g_tts);
+ assert_eq(ret, TTS_ERROR_NOT_SUPPORTED);
+ }
+ else {
+ assert_eq(is_created_hndl, TTS_ERROR_NONE);
+ ret = tts_set_synthesized_pcm_cb(g_tts, __tts_synthesized_pcm_cb, NULL);
+ assert_eq(ret, TTS_ERROR_NONE);
+
+ ret = tts_prepare(g_tts);
+ assert_eq(ret, TTS_ERROR_NONE);
+
+ while (TTS_STATE_READY != g_current_state) {
+ ecore_main_loop_iterate();
+ }
+
+ ret = tts_unset_synthesized_pcm_cb(g_tts);
+ assert_eq(ret, TTS_ERROR_INVALID_STATE);
+
+ ret = tts_unprepare(g_tts);
+ assert_eq(ret, TTS_ERROR_NONE);
+ }
+}
+
+/**
+ * @testcase utc_tts_set_playing_mode_p
+ * @since_tizen 8.0
+ * @description Positive UTC for set playing mode as by service
+ */
+int utc_tts_set_playing_mode_p(void) {
+ int ret = TTS_ERROR_NONE;
+ tts_playing_mode_e mode = TTS_PLAYING_MODE_BY_SERVICE;
+
+ if (g_supported == false) {
+ ret = tts_set_playing_mode(g_tts, mode);
+ assert_eq(ret, TTS_ERROR_NOT_SUPPORTED);
+ }
+ else {
+ assert_eq(is_created_hndl, TTS_ERROR_NONE);
+ ret = tts_set_playing_mode(g_tts, mode);
+ assert_eq(ret, TTS_ERROR_NONE);
+ }
+ return 0;
+}
+
+/**
+ * @testcase utc_tts_set_playing_mode_p1
+ * @since_tizen 8.0
+ * @description Positive UTC for set playing mode as by client
+ */
+ int utc_tts_set_playing_mode_p1(void) {
+ int ret = TTS_ERROR_NONE;
+ tts_playing_mode_e mode = TTS_PLAYING_MODE_BY_CLIENT;
+
+ if (g_supported == false) {
+ ret = tts_set_playing_mode(g_tts, mode);
+ assert_eq(ret, TTS_ERROR_NOT_SUPPORTED);
+ }
+ else {
+ assert_eq(is_created_hndl, TTS_ERROR_NONE);
+ ret = tts_set_playing_mode(g_tts, mode);
+ assert_eq(ret, TTS_ERROR_NONE);
+ }
+ return 0;
+}
+
+/**
+ * @testcase utc_tts_set_playing_mode_n
+ * @since_tizen 8.0
+ * @description Negative UTC for set playing mode (Invalid handle)
+ */
+ int utc_tts_set_playing_mode_n(void) {
+ int ret = TTS_ERROR_NONE;
+ tts_playing_mode_e mode = TTS_PLAYING_MODE_BY_CLIENT;
+
+ if (g_supported == false) {
+ ret = tts_set_playing_mode(NULL, mode);
+ assert_eq(ret, TTS_ERROR_NOT_SUPPORTED);
+ }
+ else {
+ ret = tts_set_playing_mode(NULL, mode);
+ assert_eq(ret, TTS_ERROR_INVALID_PARAMETER);
+ }
+ return 0;
+}
+
+/**
+ * @testcase utc_tts_set_playing_mode_n1
+ * @since_tizen 8.0
+ * @description Negative UTC for set playing mode (Invalid state)
+ */
+int utc_tts_set_playing_mode_n1(void) {
+ int ret = TTS_ERROR_NONE;
+ tts_playing_mode_e mode = TTS_PLAYING_MODE_BY_CLIENT;
+
+ if (g_supported == false) {
+ ret = tts_set_playing_mode(g_tts, mode);
+ assert_eq(ret, TTS_ERROR_NOT_SUPPORTED);
+ }
+ else {
+ assert_eq(is_created_hndl, TTS_ERROR_NONE);
+ ret = tts_set_playing_mode(g_tts, mode);
+ assert_eq(ret, TTS_ERROR_NONE);
+
+ ret = tts_prepare(g_tts);
+ assert_eq(ret, TTS_ERROR_NONE);
+
+ while (TTS_STATE_READY != g_current_state) {
+ ecore_main_loop_iterate();
+ }
+
+ ret = tts_set_playing_mode(g_tts, mode);
+ assert_eq(ret, TTS_ERROR_INVALID_STATE);
+
+ ret = tts_unprepare(g_tts);
+ assert_eq(ret, TTS_ERROR_NONE);
+ }
+ return 0;
+}
\ No newline at end of file