BuildRequires: pkgconfig(shortcut)
BuildRequires: pkgconfig(capi-media-sound-manager)
BuildRequires: pkgconfig(stt)
+BuildRequires: pkgconfig(stt-engine)
BuildRequires: pkgconfig(capi-system-system-settings)
BuildRequires: pkgconfig(capi-telephony)
BuildRequires: pkgconfig(capi-media-tone-player)
License: Apache License, Version 2.0
Source0: %{name}-%{version}.tar.gz
BuildRequires: pkgconfig(%{MODULE_LIBNAME})
+BuildRequires: pkgconfig(stt-engine)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: cmake
BuildRequires: pkgconfig(capi-appfw-application)
SET(CAPI_LIB "stt")
SET(TC_SOURCES
utc-stt.c
+ utc-stte.c
)
PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED
${CAPI_LIB}
- capi-appfw-application
- capi-system-info
+ stt-engine
+ capi-appfw-application
+ capi-system-info
glib-2.0
- elementary
- dlog elementary
+ elementary
+ dlog
)
INCLUDE_DIRECTORIES(
stt_set_credential
stt_set_engine_changed_cb
stt_unset_engine_changed_cb
+stte_main
+stte_send_result
+stte_send_speech_status
+stte_send_error
+stte_set_private_data_set_cb
+stte_set_private_data_requested_cb
\ No newline at end of file
#include "tct-stt-core_tv.h"
#endif
-#ifdef COMMON_IOT
+#ifdef COMMON_IOT
#include "tct-stt-core_common_iot.h"
#endif //COMMON_IOT
Evas_Object *label;
} appdata_s;
+int g_argc;
+char** g_argv = NULL;
+
+void transfer_arg(int * argc, char ** argv[])
+{
+ *argc = g_argc;
+ *argv = g_argv;
+ dlog_print(DLOG_INFO, "NativeTCT", "[transfer_arg called] argc = %d, argv[0] = %s", *argc, (NULL == *argv) ? "NULL" : *argv[0]);
+}
+
static bool app_create(void *data)
{
return true;
CLOSE_UTC_ERRLOG();
PRINT_TC_RESULT("%d",result);
+
+ if (0 == strncmp(pszGetTCName, "utc_stt_unset_engine_changed_cb_n1", strlen(pszGetTCName)) || 0 == strncmp("utc_stte_", pszGetTCName, strlen("utc_stte_"))) {
+ dlog_print(DLOG_INFO, "NativeTCT", "%s must be exited", pszGetTCName);
+ ui_app_exit();
+ }
+
FREE_MEMORY_TC(pszGetTCName);
return;
}
int ret = 0;
appdata_s ad = {0,};
+ g_argc = argc;
+ g_argv = argv;
+
ui_app_lifecycle_callback_s event_callback = {0,};
event_callback.create = app_create;
event_callback.terminate = app_terminate;
#include "testcase.h"
#include "tct_common.h"
-extern void startup(void);
-extern void cleanup(void);
+extern void utc_stt_startup(void);
+extern void utc_stt_cleanup(void);
+extern void utc_stte_startup(void);
+extern void utc_stte_cleanup(void);
+
extern int utc_stt_create_p(void);
extern int utc_stt_create_n(void);
extern int utc_stt_unset_engine_changed_cb_n(void);
extern int utc_stt_unset_engine_changed_cb_n1(void);
+/* stte utc */
+extern int utc_stte_main_p(void);
+extern int utc_stte_main_n(void);
+extern int utc_stte_send_result_n(void);
+extern int utc_stte_send_speech_status_n(void);
+extern int utc_stte_send_error_n(void);
+extern int utc_stte_set_private_data_set_cb_p(void);
+extern int utc_stte_set_private_data_set_cb_n(void);
+extern int utc_stte_set_private_data_requested_cb_p(void);
+extern int utc_stte_set_private_data_requested_cb_n(void);
+
+
testcase tc_array[] = {
- {"utc_stt_create_p", utc_stt_create_p, startup, cleanup},
- {"utc_stt_create_n", utc_stt_create_n, startup, cleanup},
- {"utc_stt_destroy_p", utc_stt_destroy_p, startup, cleanup},
- {"utc_stt_destroy_p1", utc_stt_destroy_p1, startup, cleanup},
- {"utc_stt_destroy_p2", utc_stt_destroy_p2, startup, cleanup},
- {"utc_stt_destroy_n", utc_stt_destroy_n, startup, cleanup},
- {"utc_stt_destroy_n1", utc_stt_destroy_n1, startup, cleanup},
- {"utc_stt_destroy_n2", utc_stt_destroy_n2, startup, cleanup},
- {"utc_stt_prepare_p", utc_stt_prepare_p, startup, cleanup},
- {"utc_stt_prepare_n", utc_stt_prepare_n, startup, cleanup},
- {"utc_stt_prepare_n1", utc_stt_prepare_n1, startup, cleanup},
- {"utc_stt_unprepare_p", utc_stt_unprepare_p, startup, cleanup},
- {"utc_stt_unprepare_n", utc_stt_unprepare_n, startup, cleanup},
- {"utc_stt_unprepare_n1", utc_stt_unprepare_n1, startup, cleanup},
- {"utc_stt_foreach_supported_engines_p", utc_stt_foreach_supported_engines_p, startup, cleanup},
- {"utc_stt_foreach_supported_engines_n", utc_stt_foreach_supported_engines_n, startup, cleanup},
- {"utc_stt_foreach_supported_engines_n1", utc_stt_foreach_supported_engines_n1, startup, cleanup},
- {"utc_stt_get_engine_p", utc_stt_get_engine_p, startup, cleanup},
- {"utc_stt_get_engine_n", utc_stt_get_engine_n, startup, cleanup},
- {"utc_stt_get_engine_n1", utc_stt_get_engine_n1, startup, cleanup},
- {"utc_stt_set_engine_p", utc_stt_set_engine_p, startup, cleanup},
- {"utc_stt_set_engine_n", utc_stt_set_engine_n, startup, cleanup},
- {"utc_stt_set_engine_n1", utc_stt_set_engine_n1, startup, cleanup},
- {"utc_stt_foreach_supported_languages_p", utc_stt_foreach_supported_languages_p, startup, cleanup},
- {"utc_stt_foreach_supported_languages_n", utc_stt_foreach_supported_languages_n, startup, cleanup},
- {"utc_stt_get_default_language_p", utc_stt_get_default_language_p, startup, cleanup},
- {"utc_stt_get_default_language_n", utc_stt_get_default_language_n, startup, cleanup},
- {"utc_stt_get_state_p", utc_stt_get_state_p, startup, cleanup},
- {"utc_stt_get_state_n", utc_stt_get_state_n, startup, cleanup},
- {"utc_stt_is_recognition_type_supported_p", utc_stt_is_recognition_type_supported_p, startup, cleanup},
- {"utc_stt_is_recognition_type_supported_p1", utc_stt_is_recognition_type_supported_p1, startup, cleanup},
- {"utc_stt_is_recognition_type_supported_n", utc_stt_is_recognition_type_supported_n, startup, cleanup},
- {"utc_stt_is_recognition_type_supported_n1", utc_stt_is_recognition_type_supported_n1, startup, cleanup},
- {"utc_stt_is_recognition_type_supported_n2", utc_stt_is_recognition_type_supported_n2, startup, cleanup},
- {"utc_stt_set_silence_detection_p", utc_stt_set_silence_detection_p, startup, cleanup},
- {"utc_stt_set_silence_detection_n", utc_stt_set_silence_detection_n, startup, cleanup},
- {"utc_stt_set_silence_detection_n1", utc_stt_set_silence_detection_n1, startup, cleanup},
- {"utc_stt_set_silence_detection_n2", utc_stt_set_silence_detection_n2, startup, cleanup},
- {"utc_stt_start_p", utc_stt_start_p, startup, cleanup},
- {"utc_stt_start_n", utc_stt_start_n, startup, cleanup},
- {"utc_stt_start_n1", utc_stt_start_n1, startup, cleanup},
- {"utc_stt_stop_p", utc_stt_stop_p, startup, cleanup},
- {"utc_stt_stop_n", utc_stt_stop_n, startup, cleanup},
- {"utc_stt_cancel_p", utc_stt_cancel_p, startup, cleanup},
- {"utc_stt_cancel_n", utc_stt_cancel_n, startup, cleanup},
- {"utc_stt_cancel_n1", utc_stt_cancel_n1, startup, cleanup},
- {"utc_stt_get_recording_volume_p", utc_stt_get_recording_volume_p, startup, cleanup},
- {"utc_stt_get_recording_volume_n", utc_stt_get_recording_volume_n, startup, cleanup},
- {"utc_stt_get_recording_volume_n1", utc_stt_get_recording_volume_n1, startup, cleanup},
- {"utc_stt_set_recognition_result_cb_p", utc_stt_set_recognition_result_cb_p, startup, cleanup},
- {"utc_stt_set_recognition_result_cb_n", utc_stt_set_recognition_result_cb_n, startup, cleanup},
- {"utc_stt_set_recognition_result_cb_n1", utc_stt_set_recognition_result_cb_n1, startup, cleanup},
- {"utc_stt_unset_recognition_result_cb_p", utc_stt_unset_recognition_result_cb_p, startup, cleanup},
- {"utc_stt_unset_recognition_result_cb_n", utc_stt_unset_recognition_result_cb_n, startup, cleanup},
- {"utc_stt_unset_recognition_result_cb_n1", utc_stt_unset_recognition_result_cb_n1, startup, cleanup},
- {"utc_stt_set_state_changed_cb_p", utc_stt_set_state_changed_cb_p, startup, cleanup},
- {"utc_stt_set_state_changed_cb_n", utc_stt_set_state_changed_cb_n, startup, cleanup},
- {"utc_stt_set_state_changed_cb_n1", utc_stt_set_state_changed_cb_n1, startup, cleanup},
- {"utc_stt_unset_state_changed_cb_p", utc_stt_unset_state_changed_cb_p, startup, cleanup},
- {"utc_stt_unset_state_changed_cb_n", utc_stt_unset_state_changed_cb_n, startup, cleanup},
- {"utc_stt_unset_state_changed_cb_n1", utc_stt_unset_state_changed_cb_n1, startup, cleanup},
- {"utc_stt_set_error_cb_p", utc_stt_set_error_cb_p, startup, cleanup},
- {"utc_stt_set_error_cb_n", utc_stt_set_error_cb_n, startup, cleanup},
- {"utc_stt_set_error_cb_n1", utc_stt_set_error_cb_n1, startup, cleanup},
- {"utc_stt_unset_error_cb_p", utc_stt_unset_error_cb_p, startup, cleanup},
- {"utc_stt_unset_error_cb_n", utc_stt_unset_error_cb_n, startup, cleanup},
- {"utc_stt_unset_error_cb_n1", utc_stt_unset_error_cb_n1, startup, cleanup},
- {"utc_stt_set_default_language_changed_cb_p", utc_stt_set_default_language_changed_cb_p, startup, cleanup},
- {"utc_stt_set_default_language_changed_cb_n", utc_stt_set_default_language_changed_cb_n, startup, cleanup},
- {"utc_stt_set_default_language_changed_cb_n1", utc_stt_set_default_language_changed_cb_n1, startup, cleanup},
- {"utc_stt_unset_default_language_changed_cb_p", utc_stt_unset_default_language_changed_cb_p, startup, cleanup},
- {"utc_stt_unset_default_language_changed_cb_n", utc_stt_unset_default_language_changed_cb_n, startup, cleanup},
- {"utc_stt_unset_default_language_changed_cb_n1", utc_stt_unset_default_language_changed_cb_n1, startup, cleanup},
- {"utc_stt_set_start_sound_p", utc_stt_set_start_sound_p, startup, cleanup},
- {"utc_stt_set_start_sound_n", utc_stt_set_start_sound_n, startup, cleanup},
- {"utc_stt_set_start_sound_n1", utc_stt_set_start_sound_n1, startup, cleanup},
- {"utc_stt_unset_start_sound_p", utc_stt_unset_start_sound_p, startup, cleanup},
- {"utc_stt_unset_start_sound_n", utc_stt_unset_start_sound_n, startup, cleanup},
- {"utc_stt_unset_start_sound_n1", utc_stt_unset_start_sound_n1, startup, cleanup},
- {"utc_stt_set_stop_sound_p", utc_stt_set_stop_sound_p, startup, cleanup},
- {"utc_stt_set_stop_sound_n", utc_stt_set_stop_sound_n, startup, cleanup},
- {"utc_stt_set_stop_sound_n1", utc_stt_set_stop_sound_n1, startup, cleanup},
- {"utc_stt_set_stop_sound_n2", utc_stt_set_stop_sound_n2, startup, cleanup},
- {"utc_stt_unset_stop_sound_p", utc_stt_unset_stop_sound_p, startup, cleanup},
- {"utc_stt_unset_stop_sound_n", utc_stt_unset_stop_sound_n, startup, cleanup},
- {"utc_stt_unset_stop_sound_n1", utc_stt_unset_stop_sound_n1, startup, cleanup},
- {"utc_stt_foreach_detailed_result_p", utc_stt_foreach_detailed_result_p, startup, cleanup},
- {"utc_stt_foreach_detailed_result_n", utc_stt_foreach_detailed_result_n, startup, cleanup},
- {"utc_stt_get_error_message_n", utc_stt_get_error_message_n, startup, cleanup},
- {"utc_stt_get_error_message_n1", utc_stt_get_error_message_n1, startup, cleanup},
- {"utc_stt_get_error_message_n2", utc_stt_get_error_message_n2, startup, cleanup},
- {"utc_stt_set_private_data_p", utc_stt_set_private_data_p, startup, cleanup},
- {"utc_stt_set_private_data_n", utc_stt_set_private_data_n, startup, cleanup},
- {"utc_stt_set_private_data_n1", utc_stt_set_private_data_n1, startup, cleanup},
- {"utc_stt_set_private_data_n2", utc_stt_set_private_data_n2, startup, cleanup},
- {"utc_stt_set_private_data_n3", utc_stt_set_private_data_n3, startup, cleanup},
- {"utc_stt_get_private_data_p", utc_stt_get_private_data_p, startup, cleanup},
- {"utc_stt_get_private_data_n", utc_stt_get_private_data_n, startup, cleanup},
- {"utc_stt_get_private_data_n1", utc_stt_get_private_data_n1, startup, cleanup},
- {"utc_stt_get_private_data_n2", utc_stt_get_private_data_n2, startup, cleanup},
- {"utc_stt_get_private_data_n3", utc_stt_get_private_data_n3, startup, cleanup},
- {"utc_stt_set_credential_p", utc_stt_set_credential_p, startup, cleanup},
- {"utc_stt_set_credential_n", utc_stt_set_credential_n, startup, cleanup},
- {"utc_stt_set_credential_n1", utc_stt_set_credential_n1, startup, cleanup},
- {"utc_stt_set_engine_changed_cb_p", utc_stt_set_engine_changed_cb_p, startup, cleanup},
- {"utc_stt_set_engine_changed_cb_n", utc_stt_set_engine_changed_cb_n, startup, cleanup},
- {"utc_stt_set_engine_changed_cb_n1", utc_stt_set_engine_changed_cb_n1, startup, cleanup},
- {"utc_stt_unset_engine_changed_cb_p", utc_stt_unset_engine_changed_cb_p, startup, cleanup},
- {"utc_stt_unset_engine_changed_cb_n", utc_stt_unset_engine_changed_cb_n, startup, cleanup},
- {"utc_stt_unset_engine_changed_cb_n1", utc_stt_unset_engine_changed_cb_n1, startup, cleanup},
+ {"utc_stt_create_p", utc_stt_create_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_create_n", utc_stt_create_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_destroy_p", utc_stt_destroy_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_destroy_p1", utc_stt_destroy_p1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_destroy_p2", utc_stt_destroy_p2, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_destroy_n", utc_stt_destroy_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_destroy_n1", utc_stt_destroy_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_destroy_n2", utc_stt_destroy_n2, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_prepare_p", utc_stt_prepare_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_prepare_n", utc_stt_prepare_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_prepare_n1", utc_stt_prepare_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unprepare_p", utc_stt_unprepare_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unprepare_n", utc_stt_unprepare_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unprepare_n1", utc_stt_unprepare_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_foreach_supported_engines_p", utc_stt_foreach_supported_engines_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_foreach_supported_engines_n", utc_stt_foreach_supported_engines_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_foreach_supported_engines_n1", utc_stt_foreach_supported_engines_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_engine_p", utc_stt_get_engine_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_engine_n", utc_stt_get_engine_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_engine_n1", utc_stt_get_engine_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_engine_p", utc_stt_set_engine_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_engine_n", utc_stt_set_engine_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_engine_n1", utc_stt_set_engine_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_foreach_supported_languages_p", utc_stt_foreach_supported_languages_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_foreach_supported_languages_n", utc_stt_foreach_supported_languages_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_default_language_p", utc_stt_get_default_language_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_default_language_n", utc_stt_get_default_language_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_state_p", utc_stt_get_state_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_state_n", utc_stt_get_state_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_is_recognition_type_supported_p", utc_stt_is_recognition_type_supported_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_is_recognition_type_supported_p1", utc_stt_is_recognition_type_supported_p1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_is_recognition_type_supported_n", utc_stt_is_recognition_type_supported_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_is_recognition_type_supported_n1", utc_stt_is_recognition_type_supported_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_is_recognition_type_supported_n2", utc_stt_is_recognition_type_supported_n2, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_silence_detection_p", utc_stt_set_silence_detection_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_silence_detection_n", utc_stt_set_silence_detection_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_silence_detection_n1", utc_stt_set_silence_detection_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_silence_detection_n2", utc_stt_set_silence_detection_n2, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_start_p", utc_stt_start_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_start_n", utc_stt_start_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_start_n1", utc_stt_start_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_stop_p", utc_stt_stop_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_stop_n", utc_stt_stop_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_cancel_p", utc_stt_cancel_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_cancel_n", utc_stt_cancel_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_cancel_n1", utc_stt_cancel_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_recording_volume_p", utc_stt_get_recording_volume_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_recording_volume_n", utc_stt_get_recording_volume_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_recording_volume_n1", utc_stt_get_recording_volume_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_recognition_result_cb_p", utc_stt_set_recognition_result_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_recognition_result_cb_n", utc_stt_set_recognition_result_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_recognition_result_cb_n1", utc_stt_set_recognition_result_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_recognition_result_cb_p", utc_stt_unset_recognition_result_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_recognition_result_cb_n", utc_stt_unset_recognition_result_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_recognition_result_cb_n1", utc_stt_unset_recognition_result_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_state_changed_cb_p", utc_stt_set_state_changed_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_state_changed_cb_n", utc_stt_set_state_changed_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_state_changed_cb_n1", utc_stt_set_state_changed_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_state_changed_cb_p", utc_stt_unset_state_changed_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_state_changed_cb_n", utc_stt_unset_state_changed_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_state_changed_cb_n1", utc_stt_unset_state_changed_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_error_cb_p", utc_stt_set_error_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_error_cb_n", utc_stt_set_error_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_error_cb_n1", utc_stt_set_error_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_error_cb_p", utc_stt_unset_error_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_error_cb_n", utc_stt_unset_error_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_error_cb_n1", utc_stt_unset_error_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_default_language_changed_cb_p", utc_stt_set_default_language_changed_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_default_language_changed_cb_n", utc_stt_set_default_language_changed_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_default_language_changed_cb_n1", utc_stt_set_default_language_changed_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_default_language_changed_cb_p", utc_stt_unset_default_language_changed_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_default_language_changed_cb_n", utc_stt_unset_default_language_changed_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_default_language_changed_cb_n1", utc_stt_unset_default_language_changed_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_start_sound_p", utc_stt_set_start_sound_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_start_sound_n", utc_stt_set_start_sound_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_start_sound_n1", utc_stt_set_start_sound_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_start_sound_p", utc_stt_unset_start_sound_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_start_sound_n", utc_stt_unset_start_sound_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_start_sound_n1", utc_stt_unset_start_sound_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_stop_sound_p", utc_stt_set_stop_sound_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_stop_sound_n", utc_stt_set_stop_sound_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_stop_sound_n1", utc_stt_set_stop_sound_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_stop_sound_n2", utc_stt_set_stop_sound_n2, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_stop_sound_p", utc_stt_unset_stop_sound_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_stop_sound_n", utc_stt_unset_stop_sound_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_stop_sound_n1", utc_stt_unset_stop_sound_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_foreach_detailed_result_p", utc_stt_foreach_detailed_result_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_foreach_detailed_result_n", utc_stt_foreach_detailed_result_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_error_message_n", utc_stt_get_error_message_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_error_message_n1", utc_stt_get_error_message_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_error_message_n2", utc_stt_get_error_message_n2, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_private_data_p", utc_stt_set_private_data_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_private_data_n", utc_stt_set_private_data_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_private_data_n1", utc_stt_set_private_data_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_private_data_n2", utc_stt_set_private_data_n2, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_private_data_n3", utc_stt_set_private_data_n3, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_private_data_p", utc_stt_get_private_data_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_private_data_n", utc_stt_get_private_data_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_private_data_n1", utc_stt_get_private_data_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_private_data_n2", utc_stt_get_private_data_n2, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_private_data_n3", utc_stt_get_private_data_n3, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_credential_p", utc_stt_set_credential_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_credential_n", utc_stt_set_credential_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_credential_n1", utc_stt_set_credential_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_engine_changed_cb_p", utc_stt_set_engine_changed_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_engine_changed_cb_n", utc_stt_set_engine_changed_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_engine_changed_cb_n1", utc_stt_set_engine_changed_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_engine_changed_cb_p", utc_stt_unset_engine_changed_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_engine_changed_cb_n", utc_stt_unset_engine_changed_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_engine_changed_cb_n1", utc_stt_unset_engine_changed_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stte_main_p", utc_stte_main_p, utc_stte_startup, utc_stte_cleanup},
+ {"utc_stte_main_n", utc_stte_main_n, utc_stte_startup, utc_stte_cleanup},
+ {"utc_stte_send_result_n", utc_stte_send_result_n, utc_stte_startup, utc_stte_cleanup},
+ {"utc_stte_send_speech_status_n", utc_stte_send_speech_status_n, utc_stte_startup, utc_stte_cleanup},
+ {"utc_stte_send_error_n", utc_stte_send_error_n, utc_stte_startup, utc_stte_cleanup},
+ {"utc_stte_set_private_data_set_cb_p", utc_stte_set_private_data_set_cb_p, utc_stte_startup, utc_stte_cleanup},
+ {"utc_stte_set_private_data_set_cb_n", utc_stte_set_private_data_set_cb_n, utc_stte_startup, utc_stte_cleanup},
+ {"utc_stte_set_private_data_requested_cb_p", utc_stte_set_private_data_requested_cb_p, utc_stte_startup, utc_stte_cleanup},
+ {"utc_stte_set_private_data_requested_cb_n", utc_stte_set_private_data_requested_cb_n, utc_stte_startup, utc_stte_cleanup},
{NULL, NULL}
};
#include "testcase.h"
#include "tct_common.h"
-extern void startup(void);
-extern void cleanup(void);
+extern void utc_stt_startup(void);
+extern void utc_stt_cleanup(void);
+extern void utc_stte_startup(void);
+extern void utc_stte_cleanup(void);
+
extern int utc_stt_create_p(void);
extern int utc_stt_create_n(void);
extern int utc_stt_unset_engine_changed_cb_n(void);
extern int utc_stt_unset_engine_changed_cb_n1(void);
+/* stte utc */
+extern int utc_stte_main_p(void);
+extern int utc_stte_main_n(void);
+extern int utc_stte_send_result_n(void);
+extern int utc_stte_send_speech_status_n(void);
+extern int utc_stte_send_error_n(void);
+extern int utc_stte_set_private_data_set_cb_p(void);
+extern int utc_stte_set_private_data_set_cb_n(void);
+extern int utc_stte_set_private_data_requested_cb_p(void);
+extern int utc_stte_set_private_data_requested_cb_n(void);
testcase tc_array[] = {
- {"utc_stt_create_p", utc_stt_create_p, startup, cleanup},
- {"utc_stt_create_n", utc_stt_create_n, startup, cleanup},
- {"utc_stt_destroy_p", utc_stt_destroy_p, startup, cleanup},
- {"utc_stt_destroy_p1", utc_stt_destroy_p1, startup, cleanup},
- {"utc_stt_destroy_p2", utc_stt_destroy_p2, startup, cleanup},
- {"utc_stt_destroy_n", utc_stt_destroy_n, startup, cleanup},
- {"utc_stt_destroy_n1", utc_stt_destroy_n1, startup, cleanup},
- {"utc_stt_destroy_n2", utc_stt_destroy_n2, startup, cleanup},
- {"utc_stt_prepare_p", utc_stt_prepare_p, startup, cleanup},
- {"utc_stt_prepare_n", utc_stt_prepare_n, startup, cleanup},
- {"utc_stt_prepare_n1", utc_stt_prepare_n1, startup, cleanup},
- {"utc_stt_unprepare_p", utc_stt_unprepare_p, startup, cleanup},
- {"utc_stt_unprepare_n", utc_stt_unprepare_n, startup, cleanup},
- {"utc_stt_unprepare_n1", utc_stt_unprepare_n1, startup, cleanup},
- {"utc_stt_foreach_supported_engines_p", utc_stt_foreach_supported_engines_p, startup, cleanup},
- {"utc_stt_foreach_supported_engines_n", utc_stt_foreach_supported_engines_n, startup, cleanup},
- {"utc_stt_foreach_supported_engines_n1", utc_stt_foreach_supported_engines_n1, startup, cleanup},
- {"utc_stt_get_engine_p", utc_stt_get_engine_p, startup, cleanup},
- {"utc_stt_get_engine_n", utc_stt_get_engine_n, startup, cleanup},
- {"utc_stt_get_engine_n1", utc_stt_get_engine_n1, startup, cleanup},
- {"utc_stt_set_engine_p", utc_stt_set_engine_p, startup, cleanup},
- {"utc_stt_set_engine_n", utc_stt_set_engine_n, startup, cleanup},
- {"utc_stt_set_engine_n1", utc_stt_set_engine_n1, startup, cleanup},
- {"utc_stt_foreach_supported_languages_p", utc_stt_foreach_supported_languages_p, startup, cleanup},
- {"utc_stt_foreach_supported_languages_n", utc_stt_foreach_supported_languages_n, startup, cleanup},
- {"utc_stt_get_default_language_p", utc_stt_get_default_language_p, startup, cleanup},
- {"utc_stt_get_default_language_n", utc_stt_get_default_language_n, startup, cleanup},
- {"utc_stt_get_state_p", utc_stt_get_state_p, startup, cleanup},
- {"utc_stt_get_state_n", utc_stt_get_state_n, startup, cleanup},
- {"utc_stt_is_recognition_type_supported_p", utc_stt_is_recognition_type_supported_p, startup, cleanup},
- {"utc_stt_is_recognition_type_supported_p1", utc_stt_is_recognition_type_supported_p1, startup, cleanup},
- {"utc_stt_is_recognition_type_supported_n", utc_stt_is_recognition_type_supported_n, startup, cleanup},
- {"utc_stt_is_recognition_type_supported_n1", utc_stt_is_recognition_type_supported_n1, startup, cleanup},
- {"utc_stt_is_recognition_type_supported_n2", utc_stt_is_recognition_type_supported_n2, startup, cleanup},
- {"utc_stt_set_silence_detection_p", utc_stt_set_silence_detection_p, startup, cleanup},
- {"utc_stt_set_silence_detection_n", utc_stt_set_silence_detection_n, startup, cleanup},
- {"utc_stt_set_silence_detection_n1", utc_stt_set_silence_detection_n1, startup, cleanup},
- {"utc_stt_set_silence_detection_n2", utc_stt_set_silence_detection_n2, startup, cleanup},
- {"utc_stt_start_p", utc_stt_start_p, startup, cleanup},
- {"utc_stt_start_n", utc_stt_start_n, startup, cleanup},
- {"utc_stt_start_n1", utc_stt_start_n1, startup, cleanup},
- {"utc_stt_stop_p", utc_stt_stop_p, startup, cleanup},
- {"utc_stt_stop_n", utc_stt_stop_n, startup, cleanup},
- {"utc_stt_cancel_p", utc_stt_cancel_p, startup, cleanup},
- {"utc_stt_cancel_n", utc_stt_cancel_n, startup, cleanup},
- {"utc_stt_cancel_n1", utc_stt_cancel_n1, startup, cleanup},
- {"utc_stt_get_recording_volume_p", utc_stt_get_recording_volume_p, startup, cleanup},
- {"utc_stt_get_recording_volume_n", utc_stt_get_recording_volume_n, startup, cleanup},
- {"utc_stt_get_recording_volume_n1", utc_stt_get_recording_volume_n1, startup, cleanup},
- {"utc_stt_set_recognition_result_cb_p", utc_stt_set_recognition_result_cb_p, startup, cleanup},
- {"utc_stt_set_recognition_result_cb_n", utc_stt_set_recognition_result_cb_n, startup, cleanup},
- {"utc_stt_set_recognition_result_cb_n1", utc_stt_set_recognition_result_cb_n1, startup, cleanup},
- {"utc_stt_unset_recognition_result_cb_p", utc_stt_unset_recognition_result_cb_p, startup, cleanup},
- {"utc_stt_unset_recognition_result_cb_n", utc_stt_unset_recognition_result_cb_n, startup, cleanup},
- {"utc_stt_unset_recognition_result_cb_n1", utc_stt_unset_recognition_result_cb_n1, startup, cleanup},
- {"utc_stt_set_state_changed_cb_p", utc_stt_set_state_changed_cb_p, startup, cleanup},
- {"utc_stt_set_state_changed_cb_n", utc_stt_set_state_changed_cb_n, startup, cleanup},
- {"utc_stt_set_state_changed_cb_n1", utc_stt_set_state_changed_cb_n1, startup, cleanup},
- {"utc_stt_unset_state_changed_cb_p", utc_stt_unset_state_changed_cb_p, startup, cleanup},
- {"utc_stt_unset_state_changed_cb_n", utc_stt_unset_state_changed_cb_n, startup, cleanup},
- {"utc_stt_unset_state_changed_cb_n1", utc_stt_unset_state_changed_cb_n1, startup, cleanup},
- {"utc_stt_set_error_cb_p", utc_stt_set_error_cb_p, startup, cleanup},
- {"utc_stt_set_error_cb_n", utc_stt_set_error_cb_n, startup, cleanup},
- {"utc_stt_set_error_cb_n1", utc_stt_set_error_cb_n1, startup, cleanup},
- {"utc_stt_unset_error_cb_p", utc_stt_unset_error_cb_p, startup, cleanup},
- {"utc_stt_unset_error_cb_n", utc_stt_unset_error_cb_n, startup, cleanup},
- {"utc_stt_unset_error_cb_n1", utc_stt_unset_error_cb_n1, startup, cleanup},
- {"utc_stt_set_default_language_changed_cb_p", utc_stt_set_default_language_changed_cb_p, startup, cleanup},
- {"utc_stt_set_default_language_changed_cb_n", utc_stt_set_default_language_changed_cb_n, startup, cleanup},
- {"utc_stt_set_default_language_changed_cb_n1", utc_stt_set_default_language_changed_cb_n1, startup, cleanup},
- {"utc_stt_unset_default_language_changed_cb_p", utc_stt_unset_default_language_changed_cb_p, startup, cleanup},
- {"utc_stt_unset_default_language_changed_cb_n", utc_stt_unset_default_language_changed_cb_n, startup, cleanup},
- {"utc_stt_unset_default_language_changed_cb_n1", utc_stt_unset_default_language_changed_cb_n1, startup, cleanup},
- {"utc_stt_set_start_sound_p", utc_stt_set_start_sound_p, startup, cleanup},
- {"utc_stt_set_start_sound_n", utc_stt_set_start_sound_n, startup, cleanup},
- {"utc_stt_set_start_sound_n1", utc_stt_set_start_sound_n1, startup, cleanup},
- {"utc_stt_unset_start_sound_p", utc_stt_unset_start_sound_p, startup, cleanup},
- {"utc_stt_unset_start_sound_n", utc_stt_unset_start_sound_n, startup, cleanup},
- {"utc_stt_unset_start_sound_n1", utc_stt_unset_start_sound_n1, startup, cleanup},
- {"utc_stt_set_stop_sound_p", utc_stt_set_stop_sound_p, startup, cleanup},
- {"utc_stt_set_stop_sound_n", utc_stt_set_stop_sound_n, startup, cleanup},
- {"utc_stt_set_stop_sound_n1", utc_stt_set_stop_sound_n1, startup, cleanup},
- {"utc_stt_set_stop_sound_n2", utc_stt_set_stop_sound_n2, startup, cleanup},
- {"utc_stt_unset_stop_sound_p", utc_stt_unset_stop_sound_p, startup, cleanup},
- {"utc_stt_unset_stop_sound_n", utc_stt_unset_stop_sound_n, startup, cleanup},
- {"utc_stt_unset_stop_sound_n1", utc_stt_unset_stop_sound_n1, startup, cleanup},
- {"utc_stt_foreach_detailed_result_p", utc_stt_foreach_detailed_result_p, startup, cleanup},
- {"utc_stt_foreach_detailed_result_n", utc_stt_foreach_detailed_result_n, startup, cleanup},
- {"utc_stt_get_error_message_n", utc_stt_get_error_message_n, startup, cleanup},
- {"utc_stt_get_error_message_n1", utc_stt_get_error_message_n1, startup, cleanup},
- {"utc_stt_get_error_message_n2", utc_stt_get_error_message_n2, startup, cleanup},
- {"utc_stt_set_private_data_p", utc_stt_set_private_data_p, startup, cleanup},
- {"utc_stt_set_private_data_n", utc_stt_set_private_data_n, startup, cleanup},
- {"utc_stt_set_private_data_n1", utc_stt_set_private_data_n1, startup, cleanup},
- {"utc_stt_set_private_data_n2", utc_stt_set_private_data_n2, startup, cleanup},
- {"utc_stt_set_private_data_n3", utc_stt_set_private_data_n3, startup, cleanup},
- {"utc_stt_get_private_data_p", utc_stt_get_private_data_p, startup, cleanup},
- {"utc_stt_get_private_data_n", utc_stt_get_private_data_n, startup, cleanup},
- {"utc_stt_get_private_data_n1", utc_stt_get_private_data_n1, startup, cleanup},
- {"utc_stt_get_private_data_n2", utc_stt_get_private_data_n2, startup, cleanup},
- {"utc_stt_get_private_data_n3", utc_stt_get_private_data_n3, startup, cleanup},
- {"utc_stt_set_credential_p", utc_stt_set_credential_p, startup, cleanup},
- {"utc_stt_set_credential_n", utc_stt_set_credential_n, startup, cleanup},
- {"utc_stt_set_credential_n1", utc_stt_set_credential_n1, startup, cleanup},
- {"utc_stt_set_engine_changed_cb_p", utc_stt_set_engine_changed_cb_p, startup, cleanup},
- {"utc_stt_set_engine_changed_cb_n", utc_stt_set_engine_changed_cb_n, startup, cleanup},
- {"utc_stt_set_engine_changed_cb_n1", utc_stt_set_engine_changed_cb_n1, startup, cleanup},
- {"utc_stt_unset_engine_changed_cb_p", utc_stt_unset_engine_changed_cb_p, startup, cleanup},
- {"utc_stt_unset_engine_changed_cb_n", utc_stt_unset_engine_changed_cb_n, startup, cleanup},
- {"utc_stt_unset_engine_changed_cb_n1", utc_stt_unset_engine_changed_cb_n1, startup, cleanup},
+ {"utc_stt_create_p", utc_stt_create_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_create_n", utc_stt_create_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_destroy_p", utc_stt_destroy_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_destroy_p1", utc_stt_destroy_p1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_destroy_p2", utc_stt_destroy_p2, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_destroy_n", utc_stt_destroy_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_destroy_n1", utc_stt_destroy_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_destroy_n2", utc_stt_destroy_n2, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_prepare_p", utc_stt_prepare_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_prepare_n", utc_stt_prepare_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_prepare_n1", utc_stt_prepare_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unprepare_p", utc_stt_unprepare_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unprepare_n", utc_stt_unprepare_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unprepare_n1", utc_stt_unprepare_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_foreach_supported_engines_p", utc_stt_foreach_supported_engines_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_foreach_supported_engines_n", utc_stt_foreach_supported_engines_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_foreach_supported_engines_n1", utc_stt_foreach_supported_engines_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_engine_p", utc_stt_get_engine_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_engine_n", utc_stt_get_engine_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_engine_n1", utc_stt_get_engine_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_engine_p", utc_stt_set_engine_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_engine_n", utc_stt_set_engine_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_engine_n1", utc_stt_set_engine_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_foreach_supported_languages_p", utc_stt_foreach_supported_languages_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_foreach_supported_languages_n", utc_stt_foreach_supported_languages_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_default_language_p", utc_stt_get_default_language_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_default_language_n", utc_stt_get_default_language_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_state_p", utc_stt_get_state_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_state_n", utc_stt_get_state_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_is_recognition_type_supported_p", utc_stt_is_recognition_type_supported_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_is_recognition_type_supported_p1", utc_stt_is_recognition_type_supported_p1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_is_recognition_type_supported_n", utc_stt_is_recognition_type_supported_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_is_recognition_type_supported_n1", utc_stt_is_recognition_type_supported_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_is_recognition_type_supported_n2", utc_stt_is_recognition_type_supported_n2, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_silence_detection_p", utc_stt_set_silence_detection_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_silence_detection_n", utc_stt_set_silence_detection_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_silence_detection_n1", utc_stt_set_silence_detection_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_silence_detection_n2", utc_stt_set_silence_detection_n2, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_start_p", utc_stt_start_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_start_n", utc_stt_start_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_start_n1", utc_stt_start_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_stop_p", utc_stt_stop_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_stop_n", utc_stt_stop_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_cancel_p", utc_stt_cancel_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_cancel_n", utc_stt_cancel_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_cancel_n1", utc_stt_cancel_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_recording_volume_p", utc_stt_get_recording_volume_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_recording_volume_n", utc_stt_get_recording_volume_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_recording_volume_n1", utc_stt_get_recording_volume_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_recognition_result_cb_p", utc_stt_set_recognition_result_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_recognition_result_cb_n", utc_stt_set_recognition_result_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_recognition_result_cb_n1", utc_stt_set_recognition_result_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_recognition_result_cb_p", utc_stt_unset_recognition_result_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_recognition_result_cb_n", utc_stt_unset_recognition_result_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_recognition_result_cb_n1", utc_stt_unset_recognition_result_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_state_changed_cb_p", utc_stt_set_state_changed_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_state_changed_cb_n", utc_stt_set_state_changed_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_state_changed_cb_n1", utc_stt_set_state_changed_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_state_changed_cb_p", utc_stt_unset_state_changed_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_state_changed_cb_n", utc_stt_unset_state_changed_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_state_changed_cb_n1", utc_stt_unset_state_changed_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_error_cb_p", utc_stt_set_error_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_error_cb_n", utc_stt_set_error_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_error_cb_n1", utc_stt_set_error_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_error_cb_p", utc_stt_unset_error_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_error_cb_n", utc_stt_unset_error_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_error_cb_n1", utc_stt_unset_error_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_default_language_changed_cb_p", utc_stt_set_default_language_changed_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_default_language_changed_cb_n", utc_stt_set_default_language_changed_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_default_language_changed_cb_n1", utc_stt_set_default_language_changed_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_default_language_changed_cb_p", utc_stt_unset_default_language_changed_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_default_language_changed_cb_n", utc_stt_unset_default_language_changed_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_default_language_changed_cb_n1", utc_stt_unset_default_language_changed_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_start_sound_p", utc_stt_set_start_sound_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_start_sound_n", utc_stt_set_start_sound_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_start_sound_n1", utc_stt_set_start_sound_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_start_sound_p", utc_stt_unset_start_sound_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_start_sound_n", utc_stt_unset_start_sound_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_start_sound_n1", utc_stt_unset_start_sound_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_stop_sound_p", utc_stt_set_stop_sound_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_stop_sound_n", utc_stt_set_stop_sound_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_stop_sound_n1", utc_stt_set_stop_sound_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_stop_sound_n2", utc_stt_set_stop_sound_n2, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_stop_sound_p", utc_stt_unset_stop_sound_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_stop_sound_n", utc_stt_unset_stop_sound_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_stop_sound_n1", utc_stt_unset_stop_sound_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_foreach_detailed_result_p", utc_stt_foreach_detailed_result_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_foreach_detailed_result_n", utc_stt_foreach_detailed_result_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_error_message_n", utc_stt_get_error_message_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_error_message_n1", utc_stt_get_error_message_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_error_message_n2", utc_stt_get_error_message_n2, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_private_data_p", utc_stt_set_private_data_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_private_data_n", utc_stt_set_private_data_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_private_data_n1", utc_stt_set_private_data_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_private_data_n2", utc_stt_set_private_data_n2, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_private_data_n3", utc_stt_set_private_data_n3, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_private_data_p", utc_stt_get_private_data_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_private_data_n", utc_stt_get_private_data_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_private_data_n1", utc_stt_get_private_data_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_private_data_n2", utc_stt_get_private_data_n2, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_private_data_n3", utc_stt_get_private_data_n3, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_credential_p", utc_stt_set_credential_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_credential_n", utc_stt_set_credential_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_credential_n1", utc_stt_set_credential_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_engine_changed_cb_p", utc_stt_set_engine_changed_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_engine_changed_cb_n", utc_stt_set_engine_changed_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_engine_changed_cb_n1", utc_stt_set_engine_changed_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_engine_changed_cb_p", utc_stt_unset_engine_changed_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_engine_changed_cb_n", utc_stt_unset_engine_changed_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_engine_changed_cb_n1", utc_stt_unset_engine_changed_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stte_main_p", utc_stte_main_p, utc_stte_startup, utc_stte_cleanup},
+ {"utc_stte_main_n", utc_stte_main_n, utc_stte_startup, utc_stte_cleanup},
+ {"utc_stte_send_result_n", utc_stte_send_result_n, utc_stte_startup, utc_stte_cleanup},
+ {"utc_stte_send_speech_status_n", utc_stte_send_speech_status_n, utc_stte_startup, utc_stte_cleanup},
+ {"utc_stte_send_error_n", utc_stte_send_error_n, utc_stte_startup, utc_stte_cleanup},
+ {"utc_stte_set_private_data_set_cb_p", utc_stte_set_private_data_set_cb_p, utc_stte_startup, utc_stte_cleanup},
+ {"utc_stte_set_private_data_set_cb_n", utc_stte_set_private_data_set_cb_n, utc_stte_startup, utc_stte_cleanup},
+ {"utc_stte_set_private_data_requested_cb_p", utc_stte_set_private_data_requested_cb_p, utc_stte_startup, utc_stte_cleanup},
+ {"utc_stte_set_private_data_requested_cb_n", utc_stte_set_private_data_requested_cb_n, utc_stte_startup, utc_stte_cleanup},
{NULL, NULL}
};
#include "testcase.h"
#include "tct_common.h"
-extern void startup(void);
-extern void cleanup(void);
+extern void utc_stt_startup(void);
+extern void utc_stt_cleanup(void);
+extern void utc_stte_startup(void);
+extern void utc_stte_cleanup(void);
+
extern int utc_stt_create_p(void);
extern int utc_stt_create_n(void);
extern int utc_stt_unset_engine_changed_cb_n(void);
extern int utc_stt_unset_engine_changed_cb_n1(void);
+/* stte utc */
+extern int utc_stte_main_p(void);
+extern int utc_stte_main_n(void);
+extern int utc_stte_send_result_n(void);
+extern int utc_stte_send_speech_status_n(void);
+extern int utc_stte_send_error_n(void);
+extern int utc_stte_set_private_data_set_cb_p(void);
+extern int utc_stte_set_private_data_set_cb_n(void);
+extern int utc_stte_set_private_data_requested_cb_p(void);
+extern int utc_stte_set_private_data_requested_cb_n(void);
testcase tc_array[] = {
- {"utc_stt_create_p", utc_stt_create_p, startup, cleanup},
- {"utc_stt_create_n", utc_stt_create_n, startup, cleanup},
- {"utc_stt_destroy_p", utc_stt_destroy_p, startup, cleanup},
- {"utc_stt_destroy_p1", utc_stt_destroy_p1, startup, cleanup},
- {"utc_stt_destroy_p2", utc_stt_destroy_p2, startup, cleanup},
- {"utc_stt_destroy_n", utc_stt_destroy_n, startup, cleanup},
- {"utc_stt_destroy_n1", utc_stt_destroy_n1, startup, cleanup},
- {"utc_stt_destroy_n2", utc_stt_destroy_n2, startup, cleanup},
- {"utc_stt_prepare_p", utc_stt_prepare_p, startup, cleanup},
- {"utc_stt_prepare_n", utc_stt_prepare_n, startup, cleanup},
- {"utc_stt_prepare_n1", utc_stt_prepare_n1, startup, cleanup},
- {"utc_stt_unprepare_p", utc_stt_unprepare_p, startup, cleanup},
- {"utc_stt_unprepare_n", utc_stt_unprepare_n, startup, cleanup},
- {"utc_stt_unprepare_n1", utc_stt_unprepare_n1, startup, cleanup},
- {"utc_stt_foreach_supported_engines_p", utc_stt_foreach_supported_engines_p, startup, cleanup},
- {"utc_stt_foreach_supported_engines_n", utc_stt_foreach_supported_engines_n, startup, cleanup},
- {"utc_stt_foreach_supported_engines_n1", utc_stt_foreach_supported_engines_n1, startup, cleanup},
- {"utc_stt_get_engine_p", utc_stt_get_engine_p, startup, cleanup},
- {"utc_stt_get_engine_n", utc_stt_get_engine_n, startup, cleanup},
- {"utc_stt_get_engine_n1", utc_stt_get_engine_n1, startup, cleanup},
- {"utc_stt_set_engine_p", utc_stt_set_engine_p, startup, cleanup},
- {"utc_stt_set_engine_n", utc_stt_set_engine_n, startup, cleanup},
- {"utc_stt_set_engine_n1", utc_stt_set_engine_n1, startup, cleanup},
- {"utc_stt_foreach_supported_languages_p", utc_stt_foreach_supported_languages_p, startup, cleanup},
- {"utc_stt_foreach_supported_languages_n", utc_stt_foreach_supported_languages_n, startup, cleanup},
- {"utc_stt_get_default_language_p", utc_stt_get_default_language_p, startup, cleanup},
- {"utc_stt_get_default_language_n", utc_stt_get_default_language_n, startup, cleanup},
- {"utc_stt_get_state_p", utc_stt_get_state_p, startup, cleanup},
- {"utc_stt_get_state_n", utc_stt_get_state_n, startup, cleanup},
- {"utc_stt_is_recognition_type_supported_p", utc_stt_is_recognition_type_supported_p, startup, cleanup},
- {"utc_stt_is_recognition_type_supported_p1", utc_stt_is_recognition_type_supported_p1, startup, cleanup},
- {"utc_stt_is_recognition_type_supported_n", utc_stt_is_recognition_type_supported_n, startup, cleanup},
- {"utc_stt_is_recognition_type_supported_n1", utc_stt_is_recognition_type_supported_n1, startup, cleanup},
- {"utc_stt_is_recognition_type_supported_n2", utc_stt_is_recognition_type_supported_n2, startup, cleanup},
- {"utc_stt_set_silence_detection_p", utc_stt_set_silence_detection_p, startup, cleanup},
- {"utc_stt_set_silence_detection_n", utc_stt_set_silence_detection_n, startup, cleanup},
- {"utc_stt_set_silence_detection_n1", utc_stt_set_silence_detection_n1, startup, cleanup},
- {"utc_stt_set_silence_detection_n2", utc_stt_set_silence_detection_n2, startup, cleanup},
- {"utc_stt_start_p", utc_stt_start_p, startup, cleanup},
- {"utc_stt_start_n", utc_stt_start_n, startup, cleanup},
- {"utc_stt_start_n1", utc_stt_start_n1, startup, cleanup},
- {"utc_stt_stop_p", utc_stt_stop_p, startup, cleanup},
- {"utc_stt_stop_n", utc_stt_stop_n, startup, cleanup},
- {"utc_stt_cancel_p", utc_stt_cancel_p, startup, cleanup},
- {"utc_stt_cancel_n", utc_stt_cancel_n, startup, cleanup},
- {"utc_stt_cancel_n1", utc_stt_cancel_n1, startup, cleanup},
- {"utc_stt_get_recording_volume_p", utc_stt_get_recording_volume_p, startup, cleanup},
- {"utc_stt_get_recording_volume_n", utc_stt_get_recording_volume_n, startup, cleanup},
- {"utc_stt_get_recording_volume_n1", utc_stt_get_recording_volume_n1, startup, cleanup},
- {"utc_stt_set_recognition_result_cb_p", utc_stt_set_recognition_result_cb_p, startup, cleanup},
- {"utc_stt_set_recognition_result_cb_n", utc_stt_set_recognition_result_cb_n, startup, cleanup},
- {"utc_stt_set_recognition_result_cb_n1", utc_stt_set_recognition_result_cb_n1, startup, cleanup},
- {"utc_stt_unset_recognition_result_cb_p", utc_stt_unset_recognition_result_cb_p, startup, cleanup},
- {"utc_stt_unset_recognition_result_cb_n", utc_stt_unset_recognition_result_cb_n, startup, cleanup},
- {"utc_stt_unset_recognition_result_cb_n1", utc_stt_unset_recognition_result_cb_n1, startup, cleanup},
- {"utc_stt_set_state_changed_cb_p", utc_stt_set_state_changed_cb_p, startup, cleanup},
- {"utc_stt_set_state_changed_cb_n", utc_stt_set_state_changed_cb_n, startup, cleanup},
- {"utc_stt_set_state_changed_cb_n1", utc_stt_set_state_changed_cb_n1, startup, cleanup},
- {"utc_stt_unset_state_changed_cb_p", utc_stt_unset_state_changed_cb_p, startup, cleanup},
- {"utc_stt_unset_state_changed_cb_n", utc_stt_unset_state_changed_cb_n, startup, cleanup},
- {"utc_stt_unset_state_changed_cb_n1", utc_stt_unset_state_changed_cb_n1, startup, cleanup},
- {"utc_stt_set_error_cb_p", utc_stt_set_error_cb_p, startup, cleanup},
- {"utc_stt_set_error_cb_n", utc_stt_set_error_cb_n, startup, cleanup},
- {"utc_stt_set_error_cb_n1", utc_stt_set_error_cb_n1, startup, cleanup},
- {"utc_stt_unset_error_cb_p", utc_stt_unset_error_cb_p, startup, cleanup},
- {"utc_stt_unset_error_cb_n", utc_stt_unset_error_cb_n, startup, cleanup},
- {"utc_stt_unset_error_cb_n1", utc_stt_unset_error_cb_n1, startup, cleanup},
- {"utc_stt_set_default_language_changed_cb_p", utc_stt_set_default_language_changed_cb_p, startup, cleanup},
- {"utc_stt_set_default_language_changed_cb_n", utc_stt_set_default_language_changed_cb_n, startup, cleanup},
- {"utc_stt_set_default_language_changed_cb_n1", utc_stt_set_default_language_changed_cb_n1, startup, cleanup},
- {"utc_stt_unset_default_language_changed_cb_p", utc_stt_unset_default_language_changed_cb_p, startup, cleanup},
- {"utc_stt_unset_default_language_changed_cb_n", utc_stt_unset_default_language_changed_cb_n, startup, cleanup},
- {"utc_stt_unset_default_language_changed_cb_n1", utc_stt_unset_default_language_changed_cb_n1, startup, cleanup},
- {"utc_stt_set_start_sound_p", utc_stt_set_start_sound_p, startup, cleanup},
- {"utc_stt_set_start_sound_n", utc_stt_set_start_sound_n, startup, cleanup},
- {"utc_stt_set_start_sound_n1", utc_stt_set_start_sound_n1, startup, cleanup},
- {"utc_stt_unset_start_sound_p", utc_stt_unset_start_sound_p, startup, cleanup},
- {"utc_stt_unset_start_sound_n", utc_stt_unset_start_sound_n, startup, cleanup},
- {"utc_stt_unset_start_sound_n1", utc_stt_unset_start_sound_n1, startup, cleanup},
- {"utc_stt_set_stop_sound_p", utc_stt_set_stop_sound_p, startup, cleanup},
- {"utc_stt_set_stop_sound_n", utc_stt_set_stop_sound_n, startup, cleanup},
- {"utc_stt_set_stop_sound_n1", utc_stt_set_stop_sound_n1, startup, cleanup},
- {"utc_stt_set_stop_sound_n2", utc_stt_set_stop_sound_n2, startup, cleanup},
- {"utc_stt_unset_stop_sound_p", utc_stt_unset_stop_sound_p, startup, cleanup},
- {"utc_stt_unset_stop_sound_n", utc_stt_unset_stop_sound_n, startup, cleanup},
- {"utc_stt_unset_stop_sound_n1", utc_stt_unset_stop_sound_n1, startup, cleanup},
- {"utc_stt_foreach_detailed_result_p", utc_stt_foreach_detailed_result_p, startup, cleanup},
- {"utc_stt_foreach_detailed_result_n", utc_stt_foreach_detailed_result_n, startup, cleanup},
- {"utc_stt_get_error_message_n", utc_stt_get_error_message_n, startup, cleanup},
- {"utc_stt_get_error_message_n1", utc_stt_get_error_message_n1, startup, cleanup},
- {"utc_stt_get_error_message_n2", utc_stt_get_error_message_n2, startup, cleanup},
- {"utc_stt_set_private_data_p", utc_stt_set_private_data_p, startup, cleanup},
- {"utc_stt_set_private_data_n", utc_stt_set_private_data_n, startup, cleanup},
- {"utc_stt_set_private_data_n1", utc_stt_set_private_data_n1, startup, cleanup},
- {"utc_stt_set_private_data_n2", utc_stt_set_private_data_n2, startup, cleanup},
- {"utc_stt_set_private_data_n3", utc_stt_set_private_data_n3, startup, cleanup},
- {"utc_stt_get_private_data_p", utc_stt_get_private_data_p, startup, cleanup},
- {"utc_stt_get_private_data_n", utc_stt_get_private_data_n, startup, cleanup},
- {"utc_stt_get_private_data_n1", utc_stt_get_private_data_n1, startup, cleanup},
- {"utc_stt_get_private_data_n2", utc_stt_get_private_data_n2, startup, cleanup},
- {"utc_stt_get_private_data_n3", utc_stt_get_private_data_n3, startup, cleanup},
- {"utc_stt_set_credential_p", utc_stt_set_credential_p, startup, cleanup},
- {"utc_stt_set_credential_n", utc_stt_set_credential_n, startup, cleanup},
- {"utc_stt_set_credential_n1", utc_stt_set_credential_n1, startup, cleanup},
- {"utc_stt_set_engine_changed_cb_p", utc_stt_set_engine_changed_cb_p, startup, cleanup},
- {"utc_stt_set_engine_changed_cb_n", utc_stt_set_engine_changed_cb_n, startup, cleanup},
- {"utc_stt_set_engine_changed_cb_n1", utc_stt_set_engine_changed_cb_n1, startup, cleanup},
- {"utc_stt_unset_engine_changed_cb_p", utc_stt_unset_engine_changed_cb_p, startup, cleanup},
- {"utc_stt_unset_engine_changed_cb_n", utc_stt_unset_engine_changed_cb_n, startup, cleanup},
- {"utc_stt_unset_engine_changed_cb_n1", utc_stt_unset_engine_changed_cb_n1, startup, cleanup},
+ {"utc_stt_create_p", utc_stt_create_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_create_n", utc_stt_create_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_destroy_p", utc_stt_destroy_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_destroy_p1", utc_stt_destroy_p1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_destroy_p2", utc_stt_destroy_p2, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_destroy_n", utc_stt_destroy_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_destroy_n1", utc_stt_destroy_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_destroy_n2", utc_stt_destroy_n2, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_prepare_p", utc_stt_prepare_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_prepare_n", utc_stt_prepare_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_prepare_n1", utc_stt_prepare_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unprepare_p", utc_stt_unprepare_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unprepare_n", utc_stt_unprepare_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unprepare_n1", utc_stt_unprepare_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_foreach_supported_engines_p", utc_stt_foreach_supported_engines_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_foreach_supported_engines_n", utc_stt_foreach_supported_engines_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_foreach_supported_engines_n1", utc_stt_foreach_supported_engines_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_engine_p", utc_stt_get_engine_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_engine_n", utc_stt_get_engine_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_engine_n1", utc_stt_get_engine_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_engine_p", utc_stt_set_engine_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_engine_n", utc_stt_set_engine_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_engine_n1", utc_stt_set_engine_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_foreach_supported_languages_p", utc_stt_foreach_supported_languages_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_foreach_supported_languages_n", utc_stt_foreach_supported_languages_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_default_language_p", utc_stt_get_default_language_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_default_language_n", utc_stt_get_default_language_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_state_p", utc_stt_get_state_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_state_n", utc_stt_get_state_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_is_recognition_type_supported_p", utc_stt_is_recognition_type_supported_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_is_recognition_type_supported_p1", utc_stt_is_recognition_type_supported_p1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_is_recognition_type_supported_n", utc_stt_is_recognition_type_supported_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_is_recognition_type_supported_n1", utc_stt_is_recognition_type_supported_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_is_recognition_type_supported_n2", utc_stt_is_recognition_type_supported_n2, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_silence_detection_p", utc_stt_set_silence_detection_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_silence_detection_n", utc_stt_set_silence_detection_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_silence_detection_n1", utc_stt_set_silence_detection_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_silence_detection_n2", utc_stt_set_silence_detection_n2, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_start_p", utc_stt_start_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_start_n", utc_stt_start_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_start_n1", utc_stt_start_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_stop_p", utc_stt_stop_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_stop_n", utc_stt_stop_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_cancel_p", utc_stt_cancel_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_cancel_n", utc_stt_cancel_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_cancel_n1", utc_stt_cancel_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_recording_volume_p", utc_stt_get_recording_volume_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_recording_volume_n", utc_stt_get_recording_volume_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_recording_volume_n1", utc_stt_get_recording_volume_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_recognition_result_cb_p", utc_stt_set_recognition_result_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_recognition_result_cb_n", utc_stt_set_recognition_result_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_recognition_result_cb_n1", utc_stt_set_recognition_result_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_recognition_result_cb_p", utc_stt_unset_recognition_result_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_recognition_result_cb_n", utc_stt_unset_recognition_result_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_recognition_result_cb_n1", utc_stt_unset_recognition_result_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_state_changed_cb_p", utc_stt_set_state_changed_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_state_changed_cb_n", utc_stt_set_state_changed_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_state_changed_cb_n1", utc_stt_set_state_changed_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_state_changed_cb_p", utc_stt_unset_state_changed_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_state_changed_cb_n", utc_stt_unset_state_changed_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_state_changed_cb_n1", utc_stt_unset_state_changed_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_error_cb_p", utc_stt_set_error_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_error_cb_n", utc_stt_set_error_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_error_cb_n1", utc_stt_set_error_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_error_cb_p", utc_stt_unset_error_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_error_cb_n", utc_stt_unset_error_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_error_cb_n1", utc_stt_unset_error_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_default_language_changed_cb_p", utc_stt_set_default_language_changed_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_default_language_changed_cb_n", utc_stt_set_default_language_changed_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_default_language_changed_cb_n1", utc_stt_set_default_language_changed_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_default_language_changed_cb_p", utc_stt_unset_default_language_changed_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_default_language_changed_cb_n", utc_stt_unset_default_language_changed_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_default_language_changed_cb_n1", utc_stt_unset_default_language_changed_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_start_sound_p", utc_stt_set_start_sound_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_start_sound_n", utc_stt_set_start_sound_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_start_sound_n1", utc_stt_set_start_sound_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_start_sound_p", utc_stt_unset_start_sound_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_start_sound_n", utc_stt_unset_start_sound_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_start_sound_n1", utc_stt_unset_start_sound_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_stop_sound_p", utc_stt_set_stop_sound_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_stop_sound_n", utc_stt_set_stop_sound_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_stop_sound_n1", utc_stt_set_stop_sound_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_stop_sound_n2", utc_stt_set_stop_sound_n2, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_stop_sound_p", utc_stt_unset_stop_sound_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_stop_sound_n", utc_stt_unset_stop_sound_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_stop_sound_n1", utc_stt_unset_stop_sound_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_foreach_detailed_result_p", utc_stt_foreach_detailed_result_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_foreach_detailed_result_n", utc_stt_foreach_detailed_result_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_error_message_n", utc_stt_get_error_message_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_error_message_n1", utc_stt_get_error_message_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_error_message_n2", utc_stt_get_error_message_n2, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_private_data_p", utc_stt_set_private_data_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_private_data_n", utc_stt_set_private_data_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_private_data_n1", utc_stt_set_private_data_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_private_data_n2", utc_stt_set_private_data_n2, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_private_data_n3", utc_stt_set_private_data_n3, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_private_data_p", utc_stt_get_private_data_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_private_data_n", utc_stt_get_private_data_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_private_data_n1", utc_stt_get_private_data_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_private_data_n2", utc_stt_get_private_data_n2, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_get_private_data_n3", utc_stt_get_private_data_n3, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_credential_p", utc_stt_set_credential_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_credential_n", utc_stt_set_credential_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_credential_n1", utc_stt_set_credential_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_engine_changed_cb_p", utc_stt_set_engine_changed_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_engine_changed_cb_n", utc_stt_set_engine_changed_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_set_engine_changed_cb_n1", utc_stt_set_engine_changed_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_engine_changed_cb_p", utc_stt_unset_engine_changed_cb_p, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_engine_changed_cb_n", utc_stt_unset_engine_changed_cb_n, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stt_unset_engine_changed_cb_n1", utc_stt_unset_engine_changed_cb_n1, utc_stt_startup, utc_stt_cleanup},
+ {"utc_stte_main_p", utc_stte_main_p, utc_stte_startup, utc_stte_cleanup},
+ {"utc_stte_main_n", utc_stte_main_n, utc_stte_startup, utc_stte_cleanup},
+ {"utc_stte_send_result_n", utc_stte_send_result_n, utc_stte_startup, utc_stte_cleanup},
+ {"utc_stte_send_speech_status_n", utc_stte_send_speech_status_n, utc_stte_startup, utc_stte_cleanup},
+ {"utc_stte_send_error_n", utc_stte_send_error_n, utc_stte_startup, utc_stte_cleanup},
+ {"utc_stte_set_private_data_set_cb_p", utc_stte_set_private_data_set_cb_p, utc_stte_startup, utc_stte_cleanup},
+ {"utc_stte_set_private_data_set_cb_n", utc_stte_set_private_data_set_cb_n, utc_stte_startup, utc_stte_cleanup},
+ {"utc_stte_set_private_data_requested_cb_p", utc_stte_set_private_data_requested_cb_p, utc_stte_startup, utc_stte_cleanup},
+ {"utc_stte_set_private_data_requested_cb_n", utc_stte_set_private_data_requested_cb_n, utc_stte_startup, utc_stte_cleanup},
{NULL, NULL}
};
static void __stt_state_changed_cb(stt_h stt, stt_state_e previous, stt_state_e current, void* user_data);
-void startup(void)
+void utc_stt_startup(void)
{
/* start of TC */
int ret = -1;
g_stt_supported = false;
system_info_get_platform_bool("http://tizen.org/feature/speech.recognition", &g_stt_supported);
elm_init(0,NULL);
+ g_current_state = 0;
+
if (g_stt_supported) {
g_stt = NULL;
ret = stt_create(&g_stt);
}
}
-void cleanup(void)
+void utc_stt_cleanup(void)
{
/* end of TC */
if (true == g_stt_supported) {
}
assert_eq(g_n2_state_changed_ret, STT_ERROR_OPERATION_FAILED);
+
+ ret = stt_destroy(stt);
+ assert_eq(ret, STT_ERROR_NONE);
}
return 0;
--- /dev/null
+//
+// Copyright (c) 2016 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+#include <stte.h>
+#include <stdlib.h>
+#include <system_info.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include <Elementary.h>
+#include <dlog.h>
+
+#include "assert.h"
+
+
+extern void transfer_arg(int * argc, char ** argv[]);
+
+static stte_request_callback_s g_engine_callback = {0, };
+static char **g_data = {"This", "is", "a", "test"};
+static int g_data_count = 4;
+static char *g_msg = NULL; //STTE_RESULT_MESSAGE_NONE;
+static char *g_time_info = NULL;
+
+static int g_argc = 1;
+static char **g_argv = NULL;
+
+bool is_success = false;
+bool g_is_supported = false;
+
+static int engine_get_info(char** engine_uuid, char** engine_name, char** setting_ug_name, bool* use_network)
+{
+ *engine_uuid = strdup("1ABC23DF-GE45-67E8-ZYX1-12345A6BC789");
+ *engine_name = strdup("STT engine sample");
+ *setting_ug_name = strdup("libsttenginesample.so");
+ *use_network = true;
+
+ return 0;
+}
+
+static int engine_initialize(void)
+{
+ return 0;
+}
+
+static int engine_deinitialize(void)
+{
+ return 0;
+}
+
+static int engine_foreach_langs(stte_supported_language_cb callback, void* user_data)
+{
+ char * lang = "en_US";
+
+ dlog_print(DLOG_INFO, "NativeTCT", "[engine_foreach_langs] lang = %s", (NULL == lang) ? "NULL" : lang);
+
+ bool ret = callback((const char*)lang, user_data);
+
+ return 0;
+}
+
+static int engine_is_valid_language(const char* language, bool* is_valid)
+{
+ *is_valid = true;
+ return 0;
+}
+
+static bool engine_support_silence_detection(void)
+{
+ return true;
+}
+
+static int engine_support_recognition_type(const char* type, bool* is_supported)
+{
+ *is_supported = true;
+
+ return 0;
+}
+
+static int engine_get_recording_format(stte_audio_type_e* types, int* rate, int* channels)
+{
+ *types = STTE_AUDIO_TYPE_PCM_S16_LE;
+ *rate = 16000;
+ *channels = 1;
+
+ return 0;
+}
+
+static int engine_foreach_result_time(void* time_info, stte_result_time_cb callback, void* user_data)
+{
+ return 0;
+}
+
+static int engine_set_silence_detection(bool is_set)
+{
+ return 0;
+}
+
+static int engine_start(const char* language, const char* type, const char* appid, const char* credential, void *user_data)
+{
+ return 0;
+}
+
+static int engine_set_recording_data(const void* data, unsigned int length)
+{
+ return 0;
+}
+
+static int engine_stop(void)
+{
+ return 0;
+}
+
+static int engine_cancel(void)
+{
+ return 0;
+}
+
+static int engine_check_app_agreed(const char* appid, bool* is_agreed)
+{
+ return 0;
+}
+
+static bool engine_need_app_credential(void)
+{
+ return false;
+}
+
+static int engine_set_private_data(const char* key, const char* data)
+{
+ return 0;
+}
+
+static int engine_get_private_data(const char* key, char** data)
+{
+ return 0;
+}
+
+void utc_stte_startup(void)
+{
+ /* start of TC */
+ system_info_get_platform_bool("http://tizen.org/feature/speech.recognition", &g_is_supported);
+ elm_init(0,NULL);
+
+ if (g_is_supported == false)
+ return;
+
+ transfer_arg(&g_argc, &g_argv);
+
+ g_engine_callback.version = 1;
+ g_engine_callback.get_info = engine_get_info;
+
+ g_engine_callback.initialize = engine_initialize;
+ g_engine_callback.deinitialize = engine_deinitialize;
+
+ g_engine_callback.start = engine_start;
+ g_engine_callback.set_recording = engine_set_recording_data;
+ g_engine_callback.stop = engine_stop;
+ g_engine_callback.cancel = engine_cancel;
+
+ g_engine_callback.foreach_langs = engine_foreach_langs;
+ g_engine_callback.is_valid_lang = engine_is_valid_language;
+
+ g_engine_callback.support_silence = engine_support_silence_detection;
+ g_engine_callback.support_recognition_type = engine_support_recognition_type;
+ g_engine_callback.get_audio_format = engine_get_recording_format;
+ g_engine_callback.foreach_result_time = engine_foreach_result_time;
+
+ g_engine_callback.set_silence_detection = engine_set_silence_detection;
+
+ g_engine_callback.check_app_agreed = engine_check_app_agreed;
+ g_engine_callback.need_app_credential = engine_need_app_credential;
+}
+
+void utc_stte_cleanup(void)
+{
+ /* end of TC */
+ elm_shutdown();
+}
+
+/**
+ * @testcase utc_stte_main_p
+ * @since_tizen 3.0
+ * @description Positive UTC for stte main function
+ */
+int utc_stte_main_p(void)
+{
+ int ret = STTE_ERROR_NONE;
+
+ if (false == is_success) {
+ ret = stte_main(g_argc, g_argv, &g_engine_callback);
+ assert_eq(ret, STTE_ERROR_NONE);
+ if (0 == ret) {
+ is_success = true;
+ }
+ }
+
+ return 0;
+}
+
+/**
+ * @testcase utc_stte_main_n
+ * @since_tizen 3.0
+ * @description Negative UTC for stte main function
+ */
+
+int utc_stte_main_n(void)
+{
+ int ret = STTE_ERROR_NONE;
+
+ if (false == is_success) {
+ ret = stte_main(g_argc, g_argv, NULL);
+ assert_neq(ret, STTE_ERROR_NONE);
+ if (0 == ret) {
+ is_success = true;
+ }
+ }
+
+ return 0;
+}
+
+
+/**
+ * @testcase utc_stte_send_result_n
+ * @since_tizen 3.0
+ * @description Negative UTC for sending result (operation failure)
+ */
+int utc_stte_send_result_n(void)
+{
+ int ret = STTE_ERROR_NONE;
+
+ if (false == is_success) {
+ ret = stte_main(g_argc, g_argv, &g_engine_callback);
+ assert_eq(ret, STTE_ERROR_NONE);
+ if (0 == ret) {
+ is_success = true;
+ }
+ }
+
+ ret = stte_send_result(STTE_RESULT_EVENT_FINAL_RESULT, STTE_RECOGNITION_TYPE_FREE, g_data, g_data_count, g_msg, g_time_info, NULL);
+ assert_eq(ret, STTE_ERROR_OPERATION_FAILED);
+// assert_eq(ret, STTE_ERROR_NONE);
+
+ return 0;
+}
+
+/**
+ * @testcase utc_stte_send_speech_status_n
+ * @since_tizen 3.0
+ * @description Negative UTC for sending speech status (operation failure)
+ */
+int utc_stte_send_speech_status_n(void)
+{
+ int ret = STTE_ERROR_NONE;
+
+ if (false == is_success) {
+ ret = stte_main(g_argc, g_argv, &g_engine_callback);
+ assert_eq(ret, STTE_ERROR_NONE);
+ if (0 == ret) {
+ is_success = true;
+ }
+ }
+
+ ret = stte_send_speech_status(STTE_SPEECH_STATUS_BEGINNING_POINT_DETECTED, NULL);
+// assert_eq(ret, STTE_ERROR_OPERATION_FAILED);
+ assert_eq(ret, STTE_ERROR_NONE);
+
+ return 0;
+}
+
+/**
+ * @testcase utc_stte_send_error_n
+ * @since_tizen 3.0
+ * @description Negative UTC for sending error
+ */
+int utc_stte_send_error_n(void)
+{
+ int ret = STTE_ERROR_NONE;
+
+ if (false == is_success) {
+ ret = stte_main(g_argc, g_argv, &g_engine_callback);
+ assert_eq(ret, STTE_ERROR_NONE);
+ if (0 == ret) {
+ is_success = true;
+ }
+ }
+
+ ret = stte_send_error(STTE_ERROR_INVALID_STATE, NULL);
+ assert_eq(ret, STTE_ERROR_INVALID_PARAMETER);
+
+ return 0;
+}
+
+/**
+ * @testcase utc_stte_set_private_data_set_cb_p
+ * @since_tizen 3.0
+ * @description Positive UTC for setting a callback of setting private data
+ */
+int utc_stte_set_private_data_set_cb_p(void)
+{
+ int ret = STTE_ERROR_NONE;
+
+ if (false == is_success) {
+ ret = stte_main(g_argc, g_argv, &g_engine_callback);
+ assert_eq(ret, STTE_ERROR_NONE);
+ if (0 == ret) {
+ is_success = true;
+ }
+ }
+
+ ret = stte_set_private_data_set_cb(engine_set_private_data);
+ assert_eq(ret, STTE_ERROR_NONE);
+
+ return 0;
+}
+
+/**
+ * @testcase utc_stte_set_private_data_set_cb_n
+ * @since_tizen 3.0
+ * @description Negative UTC for setting a callback of setting private data (invalid parameter)
+ */
+int utc_stte_set_private_data_set_cb_n(void)
+{
+ int ret = STTE_ERROR_NONE;
+
+ if (false == is_success) {
+ ret = stte_main(g_argc, g_argv, &g_engine_callback);
+ assert_eq(ret, STTE_ERROR_NONE);
+ if (0 == ret) {
+ is_success = true;
+ }
+ }
+
+ ret = stte_set_private_data_set_cb(NULL);
+ assert_eq(ret, STTE_ERROR_INVALID_PARAMETER);
+
+ return 0;
+}
+
+/**
+ * @testcase utc_stte_set_private_data_requested_cb_p
+ * @since_tizen 3.0
+ * @description Positive UTC for setting a callback of requesting private data
+ */
+int utc_stte_set_private_data_requested_cb_p(void)
+{
+ int ret = STTE_ERROR_NONE;
+
+ if (false == is_success) {
+ ret = stte_main(g_argc, g_argv, &g_engine_callback);
+ assert_eq(ret, STTE_ERROR_NONE);
+ if (0 == ret) {
+ is_success = true;
+ }
+ }
+
+ ret = stte_set_private_data_requested_cb(engine_get_private_data);
+ assert_eq(ret, STTE_ERROR_NONE);
+
+ return 0;
+}
+
+/**
+ * @testcase utc_stte_set_private_data_requested_cb_n
+ * @since_tizen 3.0
+ * @description Negative UTC for setting a callback of requesting private data (invalid parameter)
+ */
+int utc_stte_set_private_data_requested_cb_n(void)
+{
+ int ret = STTE_ERROR_NONE;
+
+ if (false == is_success) {
+ ret = stte_main(g_argc, g_argv, &g_engine_callback);
+ assert_eq(ret, STTE_ERROR_NONE);
+ if (0 == ret) {
+ is_success = true;
+ }
+ }
+
+ ret = stte_set_private_data_requested_cb(NULL);
+ assert_eq(ret, STTE_ERROR_INVALID_PARAMETER);
+
+ return 0;
+}
+