From: wn.jang Date: Mon, 3 Jan 2022 07:18:07 +0000 (+0900) Subject: [UTC][stt][non-ACR] Remove unused EFL dependencies X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F02%2F268802%2F2;p=test%2Ftct%2Fnative%2Fapi.git [UTC][stt][non-ACR] Remove unused EFL dependencies Change-Id: I9e43a242308a22b6a0ccdfc54b2a8e0ee9c09fc0 --- diff --git a/packaging/utc/core-stt-tests.spec b/packaging/utc/core-stt-tests.spec index f4e8ce272..729f71e6a 100755 --- a/packaging/utc/core-stt-tests.spec +++ b/packaging/utc/core-stt-tests.spec @@ -11,10 +11,9 @@ BuildRequires: pkgconfig(%{MODULE_LIBNAME}) BuildRequires: pkgconfig(stt-engine) BuildRequires: pkgconfig(glib-2.0) BuildRequires: cmake -BuildRequires: pkgconfig(capi-appfw-application) +BuildRequires: pkgconfig(capi-appfw-service-application) BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(capi-system-info) -BuildRequires: pkgconfig(elementary) %description Core API unit TC (%{name}) diff --git a/packaging/utc/core-stt-tests.xml b/packaging/utc/core-stt-tests.xml index 24c824d52..4ff682ad2 100755 --- a/packaging/utc/core-stt-tests.xml +++ b/packaging/utc/core-stt-tests.xml @@ -3,14 +3,14 @@ test Core API test Application - + - + http://tizen.org/privilege/recorder http://tizen.org/privilege/appmanager.launch diff --git a/src/utc/stt/CMakeLists.txt b/src/utc/stt/CMakeLists.txt index 164be62ea..ccedb5f4e 100755 --- a/src/utc/stt/CMakeLists.txt +++ b/src/utc/stt/CMakeLists.txt @@ -12,10 +12,9 @@ SET(TC_SOURCES PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED ${CAPI_LIB} stt-engine - capi-appfw-application + capi-appfw-service-application capi-system-info glib-2.0 - elementary dlog ) diff --git a/src/utc/stt/tct-stt-core.c b/src/utc/stt/tct-stt-core.c index 29147d747..fc303f6fa 100755 --- a/src/utc/stt/tct-stt-core.c +++ b/src/utc/stt/tct-stt-core.c @@ -40,15 +40,12 @@ #include #include #include -#include +#include #include #include typedef struct appdata { - Evas_Object *win; - Evas_Object *conform; - Evas_Object *label; } appdata_s; int g_argc; @@ -110,7 +107,7 @@ static void app_control(app_control_h app_control, void *data) 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(); + service_app_exit(); } FREE_MEMORY_TC(pszGetTCName); @@ -133,12 +130,11 @@ static void app_terminate(void *data) int main(int argc, char *argv[]) { int ret = 0; - appdata_s ad = {0,}; g_argc = argc; g_argv = argv; - ui_app_lifecycle_callback_s event_callback = {0,}; + service_app_lifecycle_callback_s event_callback = {0,}; event_callback.create = app_create; event_callback.terminate = app_terminate; event_callback.app_control = app_control; @@ -148,11 +144,11 @@ int main(int argc, char *argv[]) dlog_print(DLOG_INFO, "NativeTCT", "[%s:%d] Coverage *.gcda File location set to /tmp/home/abuild/rpmbuild/BUILD/ ", __FUNCTION__, __LINE__); dlog_print(DLOG_INFO, "NativeTCT", "[%s:%d] Application Main Function is Invoked", __FUNCTION__, __LINE__); - ret = ui_app_main(argc, argv, &event_callback, &ad); + ret = service_app_main(argc, argv, &event_callback, NULL); if (ret != APP_ERROR_NONE) { - dlog_print(DLOG_ERROR, "NativeTCT", "Application ui_app_main call gets failed. err = %d", ret); - PRINT_UTC_LOG("\\n[%s][Line : %d]Application ui_app_main call gets failed. err = %d\\n", __FILE__, __LINE__, ret); + dlog_print(DLOG_ERROR, "NativeTCT", "Application service_app_main call gets failed. err = %d", ret); + PRINT_UTC_LOG("\\n[%s][Line : %d]Application service_app_main call gets failed. err = %d\\n", __FILE__, __LINE__, ret); PRINT_TC_RESULT("%d",1); return ret; }