[UTC][stt][non-ACR] Remove unused EFL dependencies 02/268802/2
authorwn.jang <wn.jang@samsung.com>
Mon, 3 Jan 2022 07:18:07 +0000 (16:18 +0900)
committerwn.jang <wn.jang@samsung.com>
Wed, 5 Jan 2022 04:42:05 +0000 (13:42 +0900)
Change-Id: I9e43a242308a22b6a0ccdfc54b2a8e0ee9c09fc0

packaging/utc/core-stt-tests.spec
packaging/utc/core-stt-tests.xml
src/utc/stt/CMakeLists.txt
src/utc/stt/tct-stt-core.c

index f4e8ce272c29a5894aff931e29567482dbc0ce9f..729f71e6a0b00aeb666469169b8ceb848e587725 100755 (executable)
@@ -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})
index 24c824d52978947c81ffc4215a1353f690f40a48..4ff682ad2eccfdb64864813e70a0455d61421f5f 100755 (executable)
@@ -3,14 +3,14 @@
     <label>CoreSttTest</label>
     <author email="test@tizen.org" href="www.tizen.org">test</author>
     <description>Core API test Application</description>
-    <ui-application appid="core.stt-tests" exec="/usr/apps/core-stt-tests/bin/tct-stt-core" nodisplay="false" multiple="false" type="capp" taskmanage="true">
+    <service-application appid="core.stt-tests" exec="/usr/apps/core-stt-tests/bin/tct-stt-core" nodisplay="false" multiple="false" type="capp" taskmanage="true">
     <background-category value="background-network"/>
        <background-category value="download"/>
        <background-category value="iot-communication"/>
        <background-category value="location"/>
        <background-category value="media"/>
        <background-category value="sensor"/>
-    </ui-application>
+    </service-application>
        <privileges>
                <privilege>http://tizen.org/privilege/recorder</privilege>
                <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
index 164be62ea05f18e4fed945349de61606a598a9ed..ccedb5f4e08a72caf65859e5a1d464afceb65152 100755 (executable)
@@ -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
 )
 
index 29147d74745c2a2b9d29342e9a2ef37c4e9593f4..fc303f6fa561409009f98d22a58fdfd3463dd116 100755 (executable)
 #include <sys/wait.h>
 #include <glib.h>
 #include <stdbool.h>
-#include <app.h>
+#include <service_app.h>
 #include <dlog.h>
 
 #include <Elementary.h>
 
 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;
        }