[ITC/UTC][componenct-based][ACR-1882] Remove component-based 80/321980/2
authorChanggyu Choi <changyu.choi@samsung.com>
Wed, 2 Apr 2025 01:51:49 +0000 (10:51 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Wed, 2 Apr 2025 01:59:24 +0000 (01:59 +0000)
 - component-based-application will be deprecated.

Change-Id: I25d7eda9c85a43e7f710f2fb5911485b3e7c764a
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
68 files changed:
packaging/itc/native-component-based-app-itc.spec [deleted file]
packaging/itc/native-component-based-app-itc.xml [deleted file]
packaging/utc/core-component-based-application-tests.spec [deleted file]
packaging/utc/core-component-based-application-tests.xml [deleted file]
src/itc/component-based-app/CMakeLists.txt [deleted file]
src/itc/component-based-app/ITs-component-based-app-common.c [deleted file]
src/itc/component-based-app/ITs-component-based-app-common.h [deleted file]
src/itc/component-based-app/ITs-component-based-app.c [deleted file]
src/itc/component-based-app/res/mobile/org.example.componentbased-1.0.0-arm.tpk [deleted file]
src/itc/component-based-app/res/mobile/org.example.componentbased-1.0.0-x86.tpk [deleted file]
src/itc/component-based-app/res/mobile/org.tizen.helloworld-1.0.0-arm.tpk [deleted file]
src/itc/component-based-app/res/mobile/org.tizen.helloworld-1.0.0-x86.tpk [deleted file]
src/itc/component-based-app/res/tizeniot/org.example.componentbased-1.0.0-aarch64.tpk [deleted file]
src/itc/component-based-app/res/tizeniot/org.example.componentbased-1.0.0-arm.tpk [deleted file]
src/itc/component-based-app/res/tizeniot/org.example.componentbased-1.0.0-riscv64.tpk [deleted file]
src/itc/component-based-app/res/tizeniot/org.example.componentbased-1.0.0-x86.tpk [deleted file]
src/itc/component-based-app/res/tizeniot/org.tizen.helloworld-1.0.0-aarch64.tpk [deleted file]
src/itc/component-based-app/res/tizeniot/org.tizen.helloworld-1.0.0-arm.tpk [deleted file]
src/itc/component-based-app/res/tizeniot/org.tizen.helloworld-1.0.0-riscv64.tpk [deleted file]
src/itc/component-based-app/res/tizeniot/org.tizen.helloworld-1.0.0-x86.tpk [deleted file]
src/itc/component-based-app/res/tv/org.example.componentbased-1.0.0-arm.tpk [deleted file]
src/itc/component-based-app/res/tv/org.example.componentbased-1.0.0-x86.tpk [deleted file]
src/itc/component-based-app/res/tv/org.tizen.helloworld-1.0.0-arm.tpk [deleted file]
src/itc/component-based-app/res/tv/org.tizen.helloworld-1.0.0-x86.tpk [deleted file]
src/itc/component-based-app/res/wearable/org.example.componentbased-1.0.0-arm.tpk [deleted file]
src/itc/component-based-app/res/wearable/org.example.componentbased-1.0.0-x86.tpk [deleted file]
src/itc/component-based-app/res/wearable/org.tizen.helloworld-1.0.0-arm.tpk [deleted file]
src/itc/component-based-app/res/wearable/org.tizen.helloworld-1.0.0-x86.tpk [deleted file]
src/itc/component-based-app/tct-component-based-app-native.c [deleted file]
src/itc/component-based-app/tct-component-based-app-native_mobile.h [deleted file]
src/itc/component-based-app/tct-component-based-app-native_tizeniot.h [deleted file]
src/itc/component-based-app/tct-component-based-app-native_tv.h [deleted file]
src/itc/component-based-app/tct-component-based-app-native_wearable.h [deleted file]
src/utc/component-based-application/CMakeLists.txt [deleted file]
src/utc/component-based-application/assert_common.h [deleted file]
src/utc/component-based-application/res/mobile/org.example.componentbased-1.0.0-aarch64.tpk [deleted file]
src/utc/component-based-application/res/mobile/org.example.componentbased-1.0.0-arm.tpk [deleted file]
src/utc/component-based-application/res/mobile/org.example.componentbased-1.0.0-i386.tpk [deleted file]
src/utc/component-based-application/res/mobile/org.tizen.helloworld-1.0.0-aarch64.tpk [deleted file]
src/utc/component-based-application/res/mobile/org.tizen.helloworld-1.0.0-arm.tpk [deleted file]
src/utc/component-based-application/res/mobile/org.tizen.helloworld-1.0.0-i386.tpk [deleted file]
src/utc/component-based-application/res/tizeniot/org.example.componentbased-1.0.0-aarch64.tpk [deleted file]
src/utc/component-based-application/res/tizeniot/org.example.componentbased-1.0.0-arm.tpk [deleted file]
src/utc/component-based-application/res/tizeniot/org.example.componentbased-1.0.0-i386.tpk [deleted file]
src/utc/component-based-application/res/tizeniot/org.example.componentbased-1.0.0-riscv64.tpk [deleted file]
src/utc/component-based-application/res/tizeniot/org.tizen.helloworld-1.0.0-aarch64.tpk [deleted file]
src/utc/component-based-application/res/tizeniot/org.tizen.helloworld-1.0.0-arm.tpk [deleted file]
src/utc/component-based-application/res/tizeniot/org.tizen.helloworld-1.0.0-i386.tpk [deleted file]
src/utc/component-based-application/res/tizeniot/org.tizen.helloworld-1.0.0-riscv64.tpk [deleted file]
src/utc/component-based-application/res/tv/org.example.componentbased-1.0.0-aarch64.tpk [deleted file]
src/utc/component-based-application/res/tv/org.example.componentbased-1.0.0-arm.tpk [deleted file]
src/utc/component-based-application/res/tv/org.example.componentbased-1.0.0-i386.tpk [deleted file]
src/utc/component-based-application/res/tv/org.tizen.helloworld-1.0.0-aarch64.tpk [deleted file]
src/utc/component-based-application/res/tv/org.tizen.helloworld-1.0.0-arm.tpk [deleted file]
src/utc/component-based-application/res/tv/org.tizen.helloworld-1.0.0-i386.tpk [deleted file]
src/utc/component-based-application/res/wearable/org.example.componentbased-1.0.0-aarch64.tpk [deleted file]
src/utc/component-based-application/res/wearable/org.example.componentbased-1.0.0-arm.tpk [deleted file]
src/utc/component-based-application/res/wearable/org.example.componentbased-1.0.0-i386.tpk [deleted file]
src/utc/component-based-application/res/wearable/org.tizen.helloworld-1.0.0-aarch64.tpk [deleted file]
src/utc/component-based-application/res/wearable/org.tizen.helloworld-1.0.0-arm.tpk [deleted file]
src/utc/component-based-application/res/wearable/org.tizen.helloworld-1.0.0-i386.tpk [deleted file]
src/utc/component-based-application/tct-component-based-application-core.c [deleted file]
src/utc/component-based-application/tct-component-based-application-core_mobile.h [deleted file]
src/utc/component-based-application/tct-component-based-application-core_tizeniot.h [deleted file]
src/utc/component-based-application/tct-component-based-application-core_tv.h [deleted file]
src/utc/component-based-application/tct-component-based-application-core_wearable.h [deleted file]
src/utc/component-based-application/utc-component-based-app.c [deleted file]
src/utc/component-based-application/utc-component-common.c [deleted file]

diff --git a/packaging/itc/native-component-based-app-itc.spec b/packaging/itc/native-component-based-app-itc.spec
deleted file mode 100755 (executable)
index 2c18efb..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-%define MODULE_NAME component-based-application
-%define MODULE_LIBNAME component-based-application
-Name:       native-%{MODULE_NAME}-itc
-Summary:    Native API Integration TC (%{name})
-Version:    0.1
-Release:    0
-Group:      Development/Tools
-License:    Apache License, Version 2.0
-Source0:    %{name}-%{version}.tar.gz
-BuildRequires: pkgconfig(%{MODULE_LIBNAME})
-BuildRequires: cmake
-BuildRequires: pkgconfig(glib-2.0)
-BuildRequires: pkgconfig(gobject-2.0)
-BuildRequires: pkgconfig(capi-appfw-application)
-BuildRequires: pkgconfig(bundle)
-BuildRequires: pkgconfig(ecore)
-BuildRequires: pkgconfig(capi-appfw-app-manager)
-BuildRequires: pkgconfig(capi-system-info)
-BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(elementary)
-
-%description
-Native API Integration TC (%{name})
-
-%prep
-%setup -q
-
-%build
-
-%define PREFIX "%{_libdir}/%{name}"
-
-export LDFLAGS+="-Wl,--rpath=%{PREFIX} -Wl,--as-needed"
-
-%if %{?ASAN_BUILD:1}0
-       %if %{?DEVICE_BUILD_TYPE_MOBILE:1}0
-       cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="utc" -DDEVICE_BUILD_TYPE="mobile" -DASANBUILD="true" -DCMAKE_INSTALL_PREFIX=%{_prefix}
-       %endif
-       %if %{?DEVICE_BUILD_TYPE_WEARABLE:1}0
-       cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="utc" -DDEVICE_BUILD_TYPE="wearable" -DASANBUILD="true" -DCMAKE_INSTALL_PREFIX=%{_prefix}
-       %endif
-       %if %{?DEVICE_BUILD_TYPE_TV:1}0
-       cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="utc" -DDEVICE_BUILD_TYPE="tv" -DASANBUILD="true" -DCMAKE_INSTALL_PREFIX=%{_prefix}
-       %endif
-       %if %{?DEVICE_BUILD_TYPE_TIZENIOT:1}0
-       cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="utc" -DDEVICE_BUILD_TYPE="tizeniot" -DASANBUILD="true" -DCMAKE_INSTALL_PREFIX=%{_prefix}
-       %endif
-%else
-       %if %{?DEVICE_BUILD_TYPE_MOBILE:1}0
-       cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="utc" -DDEVICE_BUILD_TYPE="mobile" -DASANBUILD="false" -DCMAKE_INSTALL_PREFIX=%{_prefix}
-       %endif
-       %if %{?DEVICE_BUILD_TYPE_WEARABLE:1}0
-       cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="utc" -DDEVICE_BUILD_TYPE="wearable" -DASANBUILD="false" -DCMAKE_INSTALL_PREFIX=%{_prefix}
-       %endif
-       %if %{?DEVICE_BUILD_TYPE_TV:1}0
-       cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="utc" -DDEVICE_BUILD_TYPE="tv" -DASANBUILD="false" -DCMAKE_INSTALL_PREFIX=%{_prefix}
-       %endif
-       %if %{?DEVICE_BUILD_TYPE_TIZENIOT:1}0
-       cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="utc" -DDEVICE_BUILD_TYPE="tizeniot" -DASANBUILD="false" -DCMAKE_INSTALL_PREFIX=%{_prefix}
-       %endif
-%endif
-
-make %{?jobs:-j%jobs}
-
-%install
-rm -rf %{buildroot}
-%make_install
-mkdir -p %{buildroot}/usr/share/license
-cp LICENSE %{buildroot}/usr/share/license/%{name}
-mkdir -p %{buildroot}/usr/share/packages/
-cp packaging/itc/native-%{MODULE_NAME}-itc.xml %{buildroot}/usr/share/packages/
-mkdir -p %{buildroot}/usr/apps/%{name}/bin
-mkdir -p %{buildroot}/usr/apps/%{name}/data
-mkdir -p %{buildroot}/usr/apps/%{name}/res
-cp -r src/itc/component-based-application/res/* %{buildroot}/usr/apps/%{name}/res
-
-%post
-chown -R owner:users /usr/apps/%{name}/data
-chsmack -a %{name} /usr/apps/%{name}/data
-
-%postun
-
-
-%files
-%{APP_PATH}%{name}/*
-/usr/share/packages/%{name}.xml
-/usr/share/license/%{name}
diff --git a/packaging/itc/native-component-based-app-itc.xml b/packaging/itc/native-component-based-app-itc.xml
deleted file mode 100755 (executable)
index 34d1343..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" package="native-component-based-application-itc" version="0.1.0" api-version="6.0">
-    <label>NativeComponentBasedApplicationTest</label>
-    <author email="test@tizen.org" href="www.tizen.org">test</author>
-       <description>Native API test Application</description>
-       <ui-application appid="native.component-based-application-itc" exec="/usr/apps/native-component-based-application-itc/bin/tct-component-based-application-native" nodisplay="false" multiple="false" type="capp" taskmanage="true">
-               <label>NativeComponentBasedApplicationTest</label>
-       <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"/>
-       <app-control id="action">
-               <operation name="http://tizen.org/appcontrol/operation/action"/>
-               <uri name="https"/>
-       </app-control>
-    </ui-application>
-       <privileges>
-               <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
-               <privilege>http://tizen.org/privilege/packagemanager.info</privilege>
-       </privileges>
-</manifest>
diff --git a/packaging/utc/core-component-based-application-tests.spec b/packaging/utc/core-component-based-application-tests.spec
deleted file mode 100755 (executable)
index 9e01a56..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-%define MODULE_NAME component-based-application
-%define MODULE_LIBNAME component-based-application
-Name:       core-%{MODULE_NAME}-tests
-Summary:    Core API unit TC (%{name})
-Version:    0.1
-Release:    0
-Group:      Development/Tools
-License:    Apache License, Version 2.0
-Source0:    %{name}-%{version}.tar.gz
-BuildRequires: pkgconfig(%{MODULE_LIBNAME})
-BuildRequires: cmake
-BuildRequires: pkgconfig(glib-2.0)
-BuildRequires: pkgconfig(gobject-2.0)
-BuildRequires: pkgconfig(capi-appfw-application)
-BuildRequires: pkgconfig(bundle)
-BuildRequires: pkgconfig(ecore)
-BuildRequires: pkgconfig(capi-appfw-app-manager)
-BuildRequires: pkgconfig(capi-system-info)
-BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(elementary)
-
-%description
-Core API unit TC (%{name})
-
-%prep
-%setup -q
-
-%build
-
-%define PREFIX "%{_libdir}/%{name}"
-
-export LDFLAGS+="-Wl,--rpath=%{PREFIX} -Wl,--as-needed"
-
-%if %{?ASAN_BUILD:1}0
-       %if %{?DEVICE_BUILD_TYPE_MOBILE:1}0
-       cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="utc" -DDEVICE_BUILD_TYPE="mobile" -DASANBUILD="true" -DCMAKE_INSTALL_PREFIX=%{_prefix}
-       %endif
-       %if %{?DEVICE_BUILD_TYPE_WEARABLE:1}0
-       cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="utc" -DDEVICE_BUILD_TYPE="wearable" -DASANBUILD="true" -DCMAKE_INSTALL_PREFIX=%{_prefix}
-       %endif
-       %if %{?DEVICE_BUILD_TYPE_TV:1}0
-       cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="utc" -DDEVICE_BUILD_TYPE="tv" -DASANBUILD="true" -DCMAKE_INSTALL_PREFIX=%{_prefix}
-       %endif
-       %if %{?DEVICE_BUILD_TYPE_TIZENIOT:1}0
-       cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="utc" -DDEVICE_BUILD_TYPE="tizeniot" -DASANBUILD="true" -DCMAKE_INSTALL_PREFIX=%{_prefix}
-       %endif
-%else
-       %if %{?DEVICE_BUILD_TYPE_MOBILE:1}0
-       cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="utc" -DDEVICE_BUILD_TYPE="mobile" -DASANBUILD="false" -DCMAKE_INSTALL_PREFIX=%{_prefix}
-       %endif
-       %if %{?DEVICE_BUILD_TYPE_WEARABLE:1}0
-       cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="utc" -DDEVICE_BUILD_TYPE="wearable" -DASANBUILD="false" -DCMAKE_INSTALL_PREFIX=%{_prefix}
-       %endif
-       %if %{?DEVICE_BUILD_TYPE_TV:1}0
-       cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="utc" -DDEVICE_BUILD_TYPE="tv" -DASANBUILD="false" -DCMAKE_INSTALL_PREFIX=%{_prefix}
-       %endif
-       %if %{?DEVICE_BUILD_TYPE_TIZENIOT:1}0
-       cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="utc" -DDEVICE_BUILD_TYPE="tizeniot" -DASANBUILD="false" -DCMAKE_INSTALL_PREFIX=%{_prefix}
-       %endif
-%endif
-
-make %{?jobs:-j%jobs}
-
-%install
-rm -rf %{buildroot}
-%make_install
-mkdir -p %{buildroot}/usr/share/license
-cp LICENSE %{buildroot}/usr/share/license/%{name}
-mkdir -p %{buildroot}/usr/share/packages/
-cp packaging/utc/%{name}.xml %{buildroot}/usr/share/packages/
-mkdir -p %{buildroot}/usr/apps/%{name}/bin
-mkdir -p %{buildroot}/usr/apps/%{name}/data
-mkdir -p %{buildroot}/usr/apps/%{name}/res
-cp -r src/utc/application/res/* %{buildroot}/usr/apps/%{name}/res
-
-%post
-chown -R owner:users /usr/apps/%{name}/data
-chsmack -a %{name} /usr/apps/%{name}/data
-
-%postun
-
-
-%files
-/usr/apps/%{name}/*
-/usr/share/packages/%{name}.xml
-/usr/share/license/%{name}
diff --git a/packaging/utc/core-component-based-application-tests.xml b/packaging/utc/core-component-based-application-tests.xml
deleted file mode 100755 (executable)
index 3d19172..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" package="core-component-based-application-tests" version="0.1.0" api-version="6.0">
-    <label>CoreComponentBasedApplicationTest</label>
-    <author email="test@tizen.org" href="www.tizen.org">test</author>
-       <description>Core API test Application</description>
-       <ui-application appid="core.component-based-application-tests" exec="/usr/apps/core-application-tests/bin/tct-component-based-application-core" nodisplay="false" multiple="false" type="capp" taskmanage="true">
-               <label>CoreApplicationTest</label>
-       <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"/>
-       <app-control id="action">
-               <operation name="http://tizen.org/appcontrol/operation/action"/>
-               <uri name="https"/>
-       </app-control>
-    </ui-application>
-       <privileges>
-               <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
-               <privilege>http://tizen.org/privilege/packagemanager.info</privilege>
-       </privileges>
-</manifest>
diff --git a/src/itc/component-based-app/CMakeLists.txt b/src/itc/component-based-app/CMakeLists.txt
deleted file mode 100644 (file)
index 3338ab0..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-SET(PKG_NAME "component-based-application")
-
-SET(EXEC_NAME "tct-${PKG_NAME}-native")
-SET(RPM_NAME "native-${PKG_NAME}-tests")
-
-SET(CAPI_LIB "component-based-application")
-SET(TC_SOURCES
-    ITs-component-based-app.c
-    ITs-component-based-app-common.c
-)
-
-PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED
-    ${CAPI_LIB}
-       capi-appfw-application
-       capi-system-info
-       glib-2.0
-       bundle
-       dlog
-       elementary
-)
-
-INCLUDE_DIRECTORIES(
-       ${${CAPI_LIB}_INCLUDE_DIRS}
-)
-
-ADD_EXECUTABLE(${EXEC_NAME} ${EXEC_NAME}.c ${TC_SOURCES} ${COMMON_FILE})
-TARGET_LINK_LIBRARIES(${EXEC_NAME}
-       ${${CAPI_LIB}_LIBRARIES}
-       bundle
-)
-
-INSTALL(PROGRAMS ${EXEC_NAME}
-    DESTINATION ${BIN_DIR}/${RPM_NAME}/bin
-)
-
-IF( DEFINED ASAN )
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer")
-SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address")
-ELSE()
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall")
-SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -pie")
-ENDIF()
-
-#ADD_SUBDIRECTORY(component_app)
diff --git a/src/itc/component-based-app/ITs-component-based-app-common.c b/src/itc/component-based-app/ITs-component-based-app-common.c
deleted file mode 100644 (file)
index 3ad5786..0000000
+++ /dev/null
@@ -1,213 +0,0 @@
-//
-// Copyright (c) 2019 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 "ITs-component-based-app-common.h"
-
-/** @addtogroup itc-component-based-app
-* @ingroup             itc
-* @{
-*/
-
-/**
-* @function            AppControlSend
-* @description         Helper function, to create multilang handle.
-* @parameter           const char *pszAppID, const char *pszCompID, const char *pszExtraData
-* @return              nRet, API result value.
-*/
-int AppControlSend(const char *pszAppID, const char *pszCompID, const char *pszExtraData)
-{
-       app_control_h hAppCtrl = NULL;
-       app_control_h hReplyAppCtrl = NULL;
-       app_control_result_e eAppCtrlResult = APP_CONTROL_RESULT_FAILED;
-       int nRet;
-
-       nRet = app_control_create(&hAppCtrl);
-       PRINT_RESULT(APP_CONTROL_ERROR_NONE, nRet, "app_control_create", AppControlGetError(nRet));
-       CHECK_HANDLE(hAppCtrl, "app_control_create");
-
-       nRet = app_control_set_app_id(hAppCtrl, TEST_COMPONENTBASED_APPID);
-       PRINT_RESULT_CLEANUP(APP_CONTROL_ERROR_NONE, nRet, "app_control_set_app_id", AppControlGetError(nRet), app_control_destroy(hAppCtrl));
-
-       if(pszCompID)
-       {
-               nRet = app_control_set_component_id(hAppCtrl, pszCompID);
-               PRINT_RESULT_CLEANUP(APP_CONTROL_ERROR_NONE, nRet, "app_control_set_component_id", AppControlGetError(nRet), app_control_destroy(hAppCtrl));
-       }
-
-       nRet = app_control_add_extra_data(hAppCtrl, TEST_COMP_EXTRA_KEY, pszExtraData);
-       PRINT_RESULT_CLEANUP(APP_CONTROL_ERROR_NONE, nRet, "app_control_add_extra_data", AppControlGetError(nRet), app_control_destroy(hAppCtrl));
-
-       nRet = app_control_send_launch_request_sync(hAppCtrl, &hReplyAppCtrl, &eAppCtrlResult);
-       PRINT_RESULT_CLEANUP(APP_CONTROL_ERROR_NONE, nRet, "app_control_send_launch_request_sync", AppControlGetError(nRet), app_control_destroy(hAppCtrl));
-       CHECK_HANDLE_CLEANUP(hReplyAppCtrl, "app_control_send_launch_request_sync", app_control_destroy(hAppCtrl));
-
-       return eAppCtrlResult;
-}
-
-/**
-* @function            ResultCallBack
-* @description         Callback Function
-* @parameters          app_control_h hAppCtrl, app_control_error_e eErrorResult, void *pszData
-* @return              N/A
-*/
-static void ResultCallBack(app_control_h hAppCtrl, app_control_error_e eErrorResult, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] ResultCallBack invoked \\n", __LINE__, API_NAMESPACE);
-}
-
-/**
-* @function            ReplyCallBack
-* @description         Callback Function
-* @parameters          app_control_h hAppCtrlReq, app_control_h hAppCtrlReply, app_control_result_e eErrorResult, void *pszData
-* @return              N/A
-*/
-static void ReplyCallBack(app_control_h hAppCtrlReq, app_control_h hAppCtrlReply, app_control_result_e eErrorResult, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] ReplyCallBack invoked recieved \\n", __LINE__, API_NAMESPACE);
-       if (eErrorResult != APP_CONTROL_RESULT_SUCCEEDED)
-       {
-               FPRINTF("[Line : %d][%s] ReplyCallBack invoked recieved result is not success \\n", __LINE__, API_NAMESPACE);
-       }
-}
-
-/**
-* @function            AppControlSendAsync
-* @description         Helper function, to create multilang handle.
-* @parameter           const char *pszAppID, const char *pszCompID, const char *pszExtraData
-* @return              nRet, API return value.
-*/
-int AppControlSendAsync(const char *pszAppID, const char *pszCompID, const char *pszExtraData)
-{
-       app_control_h hAppCtrl = NULL;
-       int nRet = APP_CONTROL_ERROR_NONE;
-
-       nRet = app_control_create(&hAppCtrl);
-       PRINT_RESULT(APP_CONTROL_ERROR_NONE, nRet, "app_control_create", AppControlGetError(nRet));
-       CHECK_HANDLE(hAppCtrl, "app_control_create");
-
-       nRet = app_control_set_app_id(hAppCtrl, TEST_COMPONENTBASED_APPID);
-       PRINT_RESULT_CLEANUP(APP_CONTROL_ERROR_NONE, nRet, "app_control_set_app_id", AppControlGetError(nRet), app_control_destroy(hAppCtrl));
-
-       if(pszCompID)
-       {
-               nRet = app_control_set_component_id(hAppCtrl, pszCompID);
-               PRINT_RESULT_CLEANUP(APP_CONTROL_ERROR_NONE, nRet, "app_control_set_component_id", AppControlGetError(nRet), app_control_destroy(hAppCtrl));
-       }
-
-       nRet = app_control_add_extra_data(hAppCtrl, TEST_COMP_EXTRA_KEY, pszExtraData);
-       PRINT_RESULT_CLEANUP(APP_CONTROL_ERROR_NONE, nRet, "app_control_add_extra_data", AppControlGetError(nRet), app_control_destroy(hAppCtrl));
-
-       nRet = app_control_send_launch_request_async(hAppCtrl, ResultCallBack, ReplyCallBack, NULL);
-       PRINT_RESULT_CLEANUP(APP_CONTROL_ERROR_NONE, nRet, "app_control_send_launch_request_sync", AppControlGetError(nRet), app_control_destroy(hAppCtrl));
-
-       return nRet;
-}
-
-/**
-* @function                    AppGetError
-* @description                 Maps error enums to string values
-* @parameter                   nRet : error code returned
-* @return                      error string
-*/
-char* AppGetError(int nRet)
-{
-       char *pszErrorVal = "Unknown Error";
-       switch ( nRet )
-       {
-               case APP_ERROR_NONE:                    pszErrorVal = "APP_CONTROL_ERROR_NONE";                         break;
-               case APP_ERROR_INVALID_PARAMETER:                       pszErrorVal = "APP_CONTROL_ERROR_INVALID_PARAMETER";                    break;
-               case APP_ERROR_OUT_OF_MEMORY:                   pszErrorVal = "APP_CONTROL_ERROR_OUT_OF_MEMORY";                        break;
-               case APP_ERROR_INVALID_CONTEXT:                 pszErrorVal = "APP_ERROR_INVALID_CONTEXT";                      break;
-               case APP_ERROR_NO_SUCH_FILE:                    pszErrorVal = "APP_ERROR_NO_SUCH_FILE";                 break;
-               case APP_ERROR_NOT_SUPPORTED:                   pszErrorVal = "APP_ERROR_NOT_SUPPORTED";                        break;
-               case APP_ERROR_ALREADY_RUNNING:                 pszErrorVal = "APP_ERROR_ALREADY_RUNNING";                      break;
-               case APP_ERROR_PERMISSION_DENIED:                       pszErrorVal = "APP_ERROR_PERMISSION_DENIED";                    break;
-       }
-       return pszErrorVal;
-}
-
-/**
-* @function                    AppControlGetError
-* @description                 Maps error enums to string values
-* @parameter                   nRet : error code returned
-* @return                      error string
-*/
-char* AppControlGetError(int nRet)
-{
-       char *pszErrorVal = "Unknown Error";
-       switch ( nRet )
-       {
-               case APP_CONTROL_ERROR_NONE:                    pszErrorVal = "APP_CONTROL_ERROR_NONE";                         break;
-               case APP_CONTROL_ERROR_INVALID_PARAMETER:                       pszErrorVal = "APP_CONTROL_ERROR_INVALID_PARAMETER";                    break;
-               case APP_CONTROL_ERROR_OUT_OF_MEMORY:                   pszErrorVal = "APP_CONTROL_ERROR_OUT_OF_MEMORY";                        break;
-               case APP_CONTROL_ERROR_APP_NOT_FOUND:                   pszErrorVal = "APP_CONTROL_ERROR_APP_NOT_FOUND";                        break;
-               case APP_CONTROL_ERROR_KEY_NOT_FOUND:                   pszErrorVal = "APP_CONTROL_ERROR_KEY_NOT_FOUND";                        break;
-               case APP_CONTROL_ERROR_KEY_REJECTED:                    pszErrorVal = "APP_CONTROL_ERROR_KEY_REJECTED";                 break;
-               case APP_CONTROL_ERROR_INVALID_DATA_TYPE:                       pszErrorVal = "APP_CONTROL_ERROR_INVALID_DATA_TYPE";                    break;
-               case APP_CONTROL_ERROR_LAUNCH_REJECTED:                 pszErrorVal = "APP_CONTROL_ERROR_LAUNCH_REJECTED";                      break;
-               case APP_CONTROL_ERROR_PERMISSION_DENIED:                       pszErrorVal = "APP_CONTROL_ERROR_PERMISSION_DENIED";                    break;
-               case APP_CONTROL_ERROR_LAUNCH_FAILED:                   pszErrorVal = "APP_CONTROL_ERROR_LAUNCH_FAILED";                        break;
-               case APP_CONTROL_ERROR_TIMED_OUT:                       pszErrorVal = "APP_CONTROL_ERROR_TIMED_OUT";                    break;
-               case APP_CONTROL_ERROR_IO_ERROR:                        pszErrorVal = "APP_CONTROL_ERROR_IO_ERROR";                     break;
-       }
-       return pszErrorVal;
-}
-
-/**
-* @function                    CompManagerAppGetError
-* @description                 Maps error enums to string values
-* @parameter                   nRet : error code returned
-* @return                      error string
-*/
-char* CompManagerAppGetError(int nRet)
-{
-       char *pszErrorVal = "Unknown Error";
-       switch ( nRet )
-       {
-               case COMPONENT_MANAGER_ERROR_NONE:                      pszErrorVal = "COMPONENT_MANAGER_ERROR_NONE";   break;
-               case COMPONENT_MANAGER_ERROR_INVALID_PARAMETER:                 pszErrorVal = "COMPONENT_MANAGER_ERROR_INVALID_PARAMETER";      break;
-               case COMPONENT_MANAGER_ERROR_OUT_OF_MEMORY:                     pszErrorVal = "COMPONENT_MANAGER_ERROR_OUT_OF_MEMORY";  break;
-               case COMPONENT_MANAGER_ERROR_IO_ERROR:                  pszErrorVal = "COMPONENT_MANAGER_ERROR_IO_ERROR";       break;
-               case COMPONENT_MANAGER_ERROR_NO_SUCH_COMPONENT:                 pszErrorVal = "COMPONENT_MANAGER_ERROR_NO_SUCH_COMPONENT";      break;
-               case COMPONENT_MANAGER_ERROR_DB_FAILED:                 pszErrorVal = "COMPONENT_MANAGER_ERROR_DB_FAILED";      break;
-               case COMPONENT_MANAGER_ERROR_INVALID_APPLICATION:                       pszErrorVal = "COMPONENT_MANAGER_ERROR_INVALID_APPLICATION";    break;
-               case COMPONENT_MANAGER_ERROR_NOT_RUNNING:                       pszErrorVal = "COMPONENT_MANAGER_ERROR_NOT_RUNNING";    break;
-               case COMPONENT_MANAGER_ERROR_LABEL_NOT_FOUND:                   pszErrorVal = "COMPONENT_MANAGER_ERROR_LABEL_NOT_FOUND";        break;
-               case COMPONENT_MANAGER_ERROR_PERMISSION_DENIED:                 pszErrorVal = "COMPONENT_MANAGER_ERROR_PERMISSION_DENIED";      break;
-       }
-       return pszErrorVal;
-}
-
-/**
-* @function                    AppControlGetResult
-* @description                 Maps error enums to string values
-* @parameter                   nRet : error code returned
-* @return                      error string
-*/
-char* AppControlGetResult(int nRet)
-{
-       char *pszErrorVal = "Unknown Result";
-       switch ( nRet )
-       {
-               case APP_CONTROL_RESULT_APP_STARTED:                    pszErrorVal = "APP_CONTROL_RESULT_APP_STARTED"; break;
-               case APP_CONTROL_RESULT_SUCCEEDED:                      pszErrorVal = "APP_CONTROL_RESULT_SUCCEEDED";   break;
-               case APP_CONTROL_RESULT_FAILED:                 pszErrorVal = "APP_CONTROL_RESULT_FAILED";      break;
-               case APP_CONTROL_RESULT_CANCELED:                       pszErrorVal = "APP_CONTROL_RESULT_CANCELED";    break;
-       }
-       return pszErrorVal;
-}
-
-/** @} */ //end of itc-component-based-app
diff --git a/src/itc/component-based-app/ITs-component-based-app-common.h b/src/itc/component-based-app/ITs-component-based-app-common.h
deleted file mode 100755 (executable)
index d9b2c2c..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-//
-// Copyright (c) 2019 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.
-//
-#ifndef _ITS_COMP_BASED_APP_COMMON_H_
-#define _ITS_COMP_BASED_APP_COMMON_H_
-
-#include "tct_common.h"
-#include "tct_app_common.h"
-#include <string.h>
-
-//Add test package related includes here
-#include <app.h>
-#include <app_manager.h>
-#include <component_based_app.h>
-#include <component_manager.h>
-#include <app_control.h>
-
-/** @addtogroup itc-component-based-app
-*  @ingroup itc
-*  @{
-*/
-#define TEST_HELLOWORLD_APPID          "org.tizen.helloworld"
-#define TEST_COMPONENTBASED_APPID      "org.example.componentbased"
-#define TEST_SERVICE_COMP_ID           "service_comp_test"
-#define TEST_FRAME_COMP_ID             "frame_comp_test"
-#define TEST_COMP_EXTRA_KEY            "component_itc_func"
-#define API_NAMESPACE                  "COMP_BASED_APP_ITC"
-
-#define TIZEN_FEATURE_SCREEN   "http://tizen.org/feature/screen"
-#define START_TEST             FPRINTF("[Line : %d][%s] Starting test : %s\\n", __LINE__, API_NAMESPACE, __FUNCTION__);
-
-#define CHECK_HANDLE_CLEANUP(Handle, API, FreeResource) {\
-       if ( Handle == NULL )\
-       {\
-               FPRINTF("[Line : %d][%s] %s failed, error returned = Handle returned is NULL\\n", __LINE__, API_NAMESPACE, API);\
-               FreeResource;\
-               return 1;\
-       }\
-}
-
-//Add helper function declarations here
-char* AppGetError(int nRet);
-char* AppControlGetError(int nRet);
-char* CompManagerAppGetError(int nRet);
-char* AppControlGetResult(int nRet);
-
-int AppControlSend(const char *pszAppID, const char *pszCompID, const char *pszExtraData);
-int AppControlSendAsync(const char *pszAppID, const char *pszCompID, const char *pszExtraData);
-
-/** @} */
-#endif  //_ITS_COMP_BASED_APP_COMMON_H_
diff --git a/src/itc/component-based-app/ITs-component-based-app.c b/src/itc/component-based-app/ITs-component-based-app.c
deleted file mode 100644 (file)
index 41982fc..0000000
+++ /dev/null
@@ -1,772 +0,0 @@
-//
-// Copyright (c) 2019 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 "ITs-component-based-app-common.h"
-
-/** @addtogroup itc-component-based-app
-*  @ingroup itc
-*  @{
-*/
-
-/****************************************************Callback Start****************************************************/
-/**
-* @function            FrameComponentCreateCB
-* @description         Callback Function
-* @parameters          component_h hComponent, void *pszData
-* @return              N/A
-*/
-static Evas_Object* FrameComponentCreateCB(component_h hComponent, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] FrameComponentCreateCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-       return NULL;
-}
-
-/**
-* @function            FrameComponentStartCB
-* @description         Callback Function
-* @parameters          component_h hComponent, app_control_h hAppControl, bool bIsRestarted, void *pszData
-* @return              N/A
-*/
-static void FrameComponentStartCB(component_h hComponent, app_control_h hAppControl, bool bIsRestarted, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] FrameComponentStartCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-}
-
-/**
-* @function            FrameComponentResumeCB
-* @description         Callback Function
-* @parameters          component_h hComponent, void *pszData
-* @return              N/A
-*/
-static void FrameComponentResumeCB(component_h hComponent, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] FrameComponentResumeCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-}
-
-/**
-* @function            FrameComponentPauseCB
-* @description         Callback Function
-* @parameters          component_h hComponent, void *pszData
-* @return              N/A
-*/
-static void FrameComponentPauseCB(component_h hComponent, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] FrameComponentPauseCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-}
-
-/**
-* @function            FrameComponentStopCB
-* @description         Callback Function
-* @parameters          component_h hComponent, void *pszData
-* @return              N/A
-*/
-static void FrameComponentStopCB(component_h hComponent, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] FrameComponentStopCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-}
-
-/**
-* @function            FrameComponentDestroyCB
-* @description         Callback Function
-* @parameters          component_h hComponent, void *pszData
-* @return              N/A
-*/
-static void FrameComponentDestroyCB(component_h hComponent, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] FrameComponentDestroyCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-}
-
-/**
-* @function            FrameComponentRestoreContentCB
-* @description         Callback Function
-* @parameters          component_h hComponent, bundle *bundleContent, void *pszData
-* @return              N/A
-*/
-static void FrameComponentRestoreContentCB(component_h hComponent, bundle *bundleContent, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] FrameComponentRestoreContentCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-}
-
-/**
-* @function            FrameComponentSaveContentCB
-* @description         Callback Function
-* @parameters          component_h hComponent, bundle *bundleContent, void *pszData
-* @return              N/A
-*/
-static void FrameComponentSaveContentCB(component_h hComponent, bundle *bundleContent, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] FrameComponentSaveContentCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-}
-
-/**
-* @function            FrameComponentActionCB
-* @description         Callback Function
-* @parameters          component_h hComponent, const char *pszAction, app_control_h hAppControl, void *pszData
-* @return              N/A
-*/
-static void FrameComponentActionCB(component_h hComponent, const char *pszAction, app_control_h hAppControl, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] FrameComponentActionCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-}
-
-/**
-* @function            FrameComponentDeviceOrientationChangedCB
-* @description         Callback Function
-* @parameters          component_h hComponent, component_device_orientation_e eOrientation, void *pszData
-* @return              N/A
-*/
-static void FrameComponentDeviceOrientationChangedCB(component_h hComponent, component_device_orientation_e eOrientation, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] FrameComponentDeviceOrientationChangedCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-}
-
-/**
-* @function            FrameComponentLanguageChangedCB
-* @description         Callback Function
-* @parameters          component_h hComponent, const char *pszLanguage, void *pszData
-* @return              N/A
-*/
-static void FrameComponentLanguageChangedCB(component_h hComponent, const char *pszLanguage, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] FrameComponentLanguageChangedCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-}
-
-/**
-* @function            FrameComponentRegionFormatChangedCB
-* @description         Callback Function
-* @parameters          component_h hComponent, const char *pszRegion, void *pszData
-* @return              N/A
-*/
-static void FrameComponentRegionFormatChangedCB(component_h hComponent, const char *pszRegion, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] FrameComponentRegionFormatChangedCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-}
-
-/**
-* @function            FrameComponentLowBatteryCB
-* @description         Callback Function
-* @parameters          component_h hComponent, component_low_battery_status_e eLowBattStatus, void *pszData
-* @return              N/A
-*/
-static void FrameComponentLowBatteryCB(component_h hComponent, component_low_battery_status_e eLowBattStatus, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] FrameComponentLowBatteryCBCallback Invoked\\n", __LINE__, API_NAMESPACE);
-}
-
-/**
-* @function            FrameComponentLowMemoryCB
-* @description         Callback Function
-* @parameters          component_h hComponent, component_low_memory_status_e eLowMemtatus, void *pszData
-* @return              N/A
-*/
-static void FrameComponentLowMemoryCB(component_h hComponent, component_low_memory_status_e eLowMemtatus, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] FrameComponentLowMemoryCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-}
-
-/**
-* @function            FrameComponentSuspendedStateChangedCB
-* @description         Callback Function
-* @parameters          component_h hComponent, component_suspended_state_e eSuspendedState, void *pszData
-* @return              N/A
-*/
-static void FrameComponentSuspendedStateChangedCB(component_h hComponent, component_suspended_state_e eSuspendedState, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] FrameComponentSuspendedStateChangedCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-}
-
-/**
-* @function            ServiceComponentCreateCB
-* @description         Callback Function
-* @parameters          component_h hComponent, void *pszData
-* @return              N/A
-*/
-static bool ServiceComponentCreateCB(component_h hComponent, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] ServiceComponentCreateCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-       return false;
-}
-
-/**
-* @function            ServiceComponentStartCommandCB
-* @description         Callback Function
-* @parameters          component_h hComponent, app_control_h hAppControl, bool restarted, void *pszData
-* @return              N/A
-*/
-static void ServiceComponentStartCommandCB(component_h hComponent, app_control_h hAppControl, bool restarted, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] ServiceComponentStartCommandCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-}
-
-/**
-* @function            ServiceComponentDestroyCB
-* @description         Callback Function
-* @parameters          component_h hComponent, void *pszData
-* @return              N/A
-*/
-static void ServiceComponentDestroyCB(component_h hComponent, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] ServiceComponentDestroyCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-}
-
-/**
-* @function            ServiceComponentSaveContentCB
-* @description         Callback Function
-* @parameters          component_h hComponent, bundle *bundleContent, void *pszData
-* @return              N/A
-*/
-static void  ServiceComponentSaveContentCB(component_h hComponent, bundle *bundleContent, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] ServiceComponentSaveContentCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-}
-
-/**
-* @function            ServiceComponentActionCB
-* @description         Callback Function
-* @parameters          component_h hComponent, const char *pszAction, app_control_h hAppControl, void *pszData
-* @return              N/A
-*/
-static void ServiceComponentActionCB(component_h hComponent, const char *pszAction, app_control_h hAppControl, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] ServiceComponentActionCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-}
-
-/**
-* @function            ServiceComponentDeviceOrientationChangedCB
-* @description         Callback Function
-* @parameters          component_h hComponent, component_device_orientation_e eOrientation, void *pszData
-* @return              N/A
-*/
-static void ServiceComponentDeviceOrientationChangedCB(component_h hComponent, component_device_orientation_e eOrientation, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] ServiceComponentDeviceOrientationChangedCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-}
-
-/**
-* @function            ServiceComponentLanguageChangedCB
-* @description         Callback Function
-* @parameters          component_h hComponent, const char *pszLanguage, void *pszData
-* @return              N/A
-*/
-static void ServiceComponentLanguageChangedCB(component_h hComponent, const char *pszLanguage, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] ServiceComponentLanguageChangedCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-}
-
-/**
-* @function            ServiceComponentRegionFormatChangedCB
-* @description         Callback Function
-* @parameters          component_h hComponent, const char *pszRegion, void *pszData
-* @return              N/A
-*/
-static void ServiceComponentRegionFormatChangedCB(component_h hComponent, const char *pszRegion, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] ServiceComponentRegionFormatChangedCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-}
-
-/**
-* @function            ServiceComponentLowBatteryCB
-* @description         Callback Function
-* @parameters          component_h hComponent, component_low_battery_status_e eLowBattStatus, void *pszData
-* @return              N/A
-*/
-static void ServiceComponentLowBatteryCB(component_h hComponent, component_low_battery_status_e eLowBattStatus, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] ServiceComponentLowBatteryCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-}
-
-/**
-* @function            ServiceComponentLowMemoryCB
-* @description         Callback Function
-* @parameters          component_h hComponent, component_low_memory_status_e eLowMemtatus, void *pszData
-* @return              N/A
-*/
-static void ServiceComponentLowMemoryCB(component_h hComponent, component_low_memory_status_e eLowMemtatus, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] ServiceComponentLowMemoryCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-}
-
-/**
-* @function            ServiceComponentSuspendedStateChangedCB
-* @description         Callback Function
-* @parameters          component_h hComponent, component_suspended_state_e eSuspendedState, void *pszData
-* @return              N/A
-*/
-static void ServiceComponentSuspendedStateChangedCB(component_h hComponent, component_suspended_state_e eSuspendedState, void *pszData)
-{
-       FPRINTF("[Line : %d][%s] ServiceComponentSuspendedStateChangedCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-}
-/*****************************************************Callback End*****************************************************/
-
-/**
-* @function            ITs_componenet_based_app_startup
-* @description         Called before each test, checks pre-installed apps
-* @parameter           NA
-* @return              NA
-*/
-void ITs_componenet_based_app_startup(void)
-{
-       struct stat stBuff;
-       if ( stat(ERR_LOG, &stBuff) == 0 )
-       {
-               remove(ERR_LOG);
-       }
-
-#if DEBUG
-       FPRINTF("[Line : %d][%s] TEST SUIT start-up: ITs_componenet_based_app_startup\\n", __LINE__, API_NAMESPACE);
-#endif
-       TCT_CheckInstalledApp(2, TEST_COMPONENTBASED_APPID, TEST_HELLOWORLD_APPID);
-}
-
-/**
-* @function            ITs_componenet_based_app_cleanup
-* @description         Called after each test
-* @parameter           NA
-* @return              NA
-*/
-void ITs_componenet_based_app_cleanup(void)
-{
-#if DEBUG
-       FPRINTF("[Line : %d][%s] TEST SUIT clean-up: ITs_componenet_based_app_cleanup\\n", __LINE__, API_NAMESPACE);
-#endif
-}
-
-
-/** @addtogroup                itc-component-based-app-testcases
-*  @brief              Integration testcases for module itc-component-based-app
-*  @ingroup            itc-component-based-app
-*  @{
-*/
-
-/**
-* @testcase                            ITc_component_based_app_main_p
-* @since_tizen                         5.5
-* @author                              SRID(j.abhishek)
-* @reviewer                            SRID(shobhit.v)
-* @type                                auto
-* @description                         Runs the main loop of the application until component_based_app_exit() is called.
-* @scenario                            Launch component based app using helper synchronous function AppControlSend()
-*                                      with extra data and check for result and check for Pass/Fail.
-* @apicovered                          component_based_app_main
-* @passcase                            If API return result is APP_CONTROL_RESULT_SUCCEEDED
-* @failcase                            If API fails
-* @precondition                                N/A
-* @postcondition                       N/A
-* */
-int ITc_component_based_app_main_p(void)
-{
-       START_TEST;
-
-       int nRet = APP_CONTROL_RESULT_FAILED;
-
-       nRet = AppControlSend(TEST_COMPONENTBASED_APPID, TEST_SERVICE_COMP_ID, "ITc_component_based_app_main");
-       PRINT_RESULT(APP_CONTROL_RESULT_SUCCEEDED, nRet, "component_based_app_main", AppControlGetResult(nRet));
-
-       return 0;
-}
-
-/**
-* @testcase                            ITc_component_based_app_exit_p
-* @since_tizen                         5.5
-* @author                              SRID(j.abhishek)
-* @reviewer                            SRID(shobhit.v)
-* @type                                auto
-* @description                         Exits the main loop of the application.
-* @scenario                            Launch component based app using helper asynchronous function AppControlSendAsync()
-*                                      with extra data and check for result and check for Pass/Fail.
-* @apicovered                          component_based_app_exit
-* @passcase                            If API returns APP_CONTROL_ERROR_NONE
-* @failcase                            If API fails
-* @precondition                                N/A
-* @postcondition                       N/A
-* */
-int ITc_component_based_app_exit_p(void)
-{
-       START_TEST;
-
-       int nRet = APP_CONTROL_RESULT_SUCCEEDED;
-       bool bIsRunning = true;
-
-       nRet =  AppControlSendAsync(TEST_COMPONENTBASED_APPID, TEST_SERVICE_COMP_ID, "ITc_component_based_app_exit");
-       PRINT_RESULT(APP_CONTROL_ERROR_NONE, nRet, "component_based_app_exit", AppControlGetError(nRet));
-       sleep(1);
-
-       nRet = component_manager_is_running(TEST_SERVICE_COMP_ID, &bIsRunning);
-       PRINT_RESULT(COMPONENT_MANAGER_ERROR_NONE, nRet, "component_manager_is_running", CompManagerAppGetError(nRet));
-       PRINT_RESULT(false, bIsRunning, "component_manager_is_running", "App suppose to be closed");
-
-       return 0;
-}
-
-/**
-* @testcase                            ITc_component_based_app_add_frame_component_p
-* @since_tizen                         5.5
-* @author                              SRID(j.abhishek)
-* @reviewer                            SRID(shobhit.v)
-* @type                                auto
-* @description                         Adds a new frame component to comp_class.
-* @scenario                            Register frame_component_lifecycle_callback_s callbacks
-*                                      asynchronously and check whether app is exited or not
-*                                      call API, check handle and check for error and check for Pass/Fail.
-* @apicovered                          component_based_app_add_frame_component
-* @passcase                            If API returns APP_ERROR_NONE
-* @failcase                            If API fails
-* @precondition                                N/A
-* @postcondition                       N/A
-* */
-int ITc_component_based_app_add_frame_component_p(void)
-{
-       START_TEST;
-
-       int nRet = APP_ERROR_NONE;
-       component_class_h hCompClass = NULL;
-
-       frame_component_lifecycle_callback_s FrameCompCB = {
-               .create = FrameComponentCreateCB,
-               .start = FrameComponentStartCB,
-               .resume = FrameComponentResumeCB,
-               .pause = FrameComponentPauseCB,
-               .stop = FrameComponentStopCB,
-               .destroy = FrameComponentDestroyCB,
-               .restore_content = FrameComponentRestoreContentCB,
-               .save_content = FrameComponentSaveContentCB,
-               .action = FrameComponentActionCB,
-               .device_orientation_changed = FrameComponentDeviceOrientationChangedCB,
-               .language_changed = FrameComponentLanguageChangedCB,
-               .region_format_changed = FrameComponentRegionFormatChangedCB,
-               .low_battery = FrameComponentLowBatteryCB,
-               .low_memory = FrameComponentLowMemoryCB,
-               .suspended_state_changed = FrameComponentSuspendedStateChangedCB
-       };
-
-       hCompClass = component_based_app_add_frame_component(hCompClass, TEST_FRAME_COMP_ID, &FrameCompCB, NULL);
-       nRet = get_last_result();
-       PRINT_RESULT(APP_ERROR_NONE, nRet, "component_based_app_add_frame_component", AppGetError(nRet));
-       CHECK_HANDLE(hCompClass, "component_based_app_add_frame_component");
-
-       return 0;
-}
-
-/**
-* @testcase                            ITc_component_based_app_add_service_component_p
-* @since_tizen                         5.5
-* @author                              SRID(j.abhishek)
-* @reviewer                            SRID(shobhit.v)
-* @type                                auto
-* @description                         Adds a service component to comp_class.
-* @scenario                            Register service_component_lifecycle_callback_s callbacks
-*                                      asynchronously and check whether app is exited or not
-*                                      call API, check handle and check for error and check for Pass/Fail.
-* @apicovered                          component_based_app_add_service_component
-* @passcase                            If API returns APP_ERROR_NONE
-* @failcase                            If API fails
-* @precondition                                N/A
-* @postcondition                       N/A
-* */
-int ITc_component_based_app_add_service_component_p(void)
-{
-       START_TEST;
-
-       int nRet = APP_ERROR_NONE;
-       component_class_h hCompClass = NULL;
-
-       service_component_lifecycle_callback_s ServiceCompCB = {
-               .create = ServiceComponentCreateCB,
-               .start_command = ServiceComponentStartCommandCB,
-               .destroy = ServiceComponentDestroyCB,
-               .save_content = ServiceComponentSaveContentCB,
-               .action = ServiceComponentActionCB,
-               .device_orientation_changed = ServiceComponentDeviceOrientationChangedCB,
-               .language_changed = ServiceComponentLanguageChangedCB,
-               .region_format_changed = ServiceComponentRegionFormatChangedCB,
-               .low_battery = ServiceComponentLowBatteryCB,
-               .low_memory = ServiceComponentLowMemoryCB,
-               .suspended_state_changed = ServiceComponentSuspendedStateChangedCB
-       };
-
-       hCompClass = component_based_app_add_service_component(hCompClass, TEST_SERVICE_COMP_ID, &ServiceCompCB, NULL);
-       nRet = get_last_result();
-       PRINT_RESULT(APP_ERROR_NONE, nRet, "component_based_app_add_service_component", AppGetError(nRet));
-       CHECK_HANDLE(hCompClass, "component_based_app_add_service_component");
-
-       return 0;
-}
-
-/**
-* @testcase                            ITc_component_get_id_p
-* @since_tizen                         5.5
-* @author                              SRID(j.abhishek)
-* @reviewer                            SRID(shobhit.v)
-* @type                                auto
-* @description                         Gets the ID of the component.
-* @scenario                            Launch component based app using helper synchronous function AppControlSend()
-*                                      with extra data and check for result and check for Pass/Fail.
-* @apicovered                          component_get_id
-* @passcase                            If API return result is APP_CONTROL_RESULT_SUCCEEDED
-* @failcase                            If API fails
-* @precondition                                N/A
-* @postcondition                       N/A
-* */
-int ITc_component_get_id_p(void)
-{
-       START_TEST;
-
-       int nRet = APP_CONTROL_RESULT_FAILED;
-
-       nRet =  AppControlSend(TEST_COMPONENTBASED_APPID, TEST_SERVICE_COMP_ID, "ITc_component_get_id");
-       PRINT_RESULT(APP_CONTROL_RESULT_SUCCEEDED, nRet, "component_get_id", AppControlGetResult(nRet));
-
-       return 0;
-}
-
-/**
-* @testcase                            ITc_component_get_instance_id_p
-* @since_tizen                         5.5
-* @author                              SRID(j.abhishek)
-* @reviewer                            SRID(shobhit.v)
-* @type                                auto
-* @description                         Gets the instance ID of the component.
-* @scenario                            Launch component based app using helper synchronous function AppControlSend()
-*                                      with extra data and check for result and check for Pass/Fail.
-* @apicovered                          component_get_instance_id
-* @passcase                            If API return result is APP_CONTROL_RESULT_SUCCEEDED
-* @failcase                            If API fails
-* @precondition                                N/A
-* @postcondition                       N/A
-* */
-int ITc_component_get_instance_id_p(void)
-{
-       START_TEST;
-
-       int nRet = APP_CONTROL_RESULT_FAILED;
-
-       nRet =  AppControlSend(TEST_COMPONENTBASED_APPID, TEST_SERVICE_COMP_ID, "ITc_component_get_instance_id");
-       PRINT_RESULT(APP_CONTROL_RESULT_SUCCEEDED, nRet, "component_get_instance_id", AppControlGetResult(nRet));
-
-       return 0;
-}
-
-/**
-* @testcase                            ITc_component_register_action_p
-* @since_tizen                         5.5
-* @author                              SRID(j.abhishek)
-* @reviewer                            SRID(shobhit.v)
-* @type                                auto
-* @description                         Registers the app_control action.
-* @scenario                            Launch component based app using helper synchronous function AppControlSend()
-*                                      with extra data and check for result and check for Pass/Fail.
-* @apicovered                          component_register_action
-* @passcase                            If API return result is APP_CONTROL_RESULT_SUCCEEDED
-* @failcase                            If API fails
-* @precondition                                N/A
-* @postcondition                       N/A
-* */
-int ITc_component_register_action_p(void)
-{
-       START_TEST;
-
-       int nRet = APP_CONTROL_RESULT_FAILED;
-
-       nRet =  AppControlSend(TEST_COMPONENTBASED_APPID, TEST_SERVICE_COMP_ID, "ITc_component_register_action");
-       PRINT_RESULT(APP_CONTROL_RESULT_SUCCEEDED, nRet, "component_register_action", AppControlGetResult(nRet));
-
-       return 0;
-}
-
-/**
-* @testcase                            ITc_component_deregister_action_p
-* @since_tizen                         5.5
-* @author                              SRID(j.abhishek)
-* @reviewer                            SRID(shobhit.v)
-* @type                                auto
-* @description                         Deregisters the registered app_control action.
-* @scenario                            Launch component based app using helper synchronous function AppControlSend()
-*                                      with extra data and check for result and check for Pass/Fail.
-* @apicovered                          component_deregister_action
-* @passcase                            If API return result is APP_CONTROL_RESULT_SUCCEEDED
-* @failcase                            If API fails
-* @precondition                                N/A
-* @postcondition                       N/A
-* */
-int ITc_component_deregister_action_p(void)
-{
-       START_TEST;
-
-       int nRet = APP_CONTROL_RESULT_FAILED;
-
-       nRet =  AppControlSend(TEST_COMPONENTBASED_APPID, TEST_SERVICE_COMP_ID, "ITc_component_deregister_action");
-       PRINT_RESULT(APP_CONTROL_RESULT_SUCCEEDED, nRet, "component_deregister_action", AppControlGetResult(nRet));
-
-       return 0;
-}
-
-/**
-* @testcase                            ITc_component_send_launch_request_sync_p
-* @since_tizen                         5.5
-* @author                              SRID(j.abhishek)
-* @reviewer                            SRID(shobhit.v)
-* @type                                auto
-* @description                         Sends the launch request synchronously.
-* @scenario                            Launch component based app using helper synchronous function AppControlSend()
-*                                      with extra data and check for result and check for Pass/Fail.
-* @apicovered                          component_send_launch_request_sync
-* @passcase                            If API return result is APP_CONTROL_RESULT_SUCCEEDED
-* @failcase                            If API fails
-* @precondition                                N/A
-* @postcondition                       N/A
-* */
-int ITc_component_send_launch_request_sync_p(void)
-{
-       START_TEST;
-
-       int nRet = APP_CONTROL_RESULT_FAILED;
-
-       nRet = AppControlSend(TEST_COMPONENTBASED_APPID, TEST_SERVICE_COMP_ID, "ITc_component_launch_req_sync");
-       PRINT_RESULT(APP_CONTROL_RESULT_SUCCEEDED, nRet, "component_send_launch_request_sync", AppControlGetResult(nRet));
-
-       return 0;
-}
-
-/**
-* @testcase                            ITc_component_send_launch_request_async_p
-* @since_tizen                         5.5
-* @author                              SRID(j.abhishek)
-* @reviewer                            SRID(shobhit.v)
-* @type                                auto
-* @description                         Sends the launch request synchronously.
-* @scenario                            Launch component based app using helper synchronous function AppControlSend()
-*                                      with extra data and check for result and check for Pass/Fail.
-* @apicovered                          component_send_launch_request_async
-* @passcase                            If API return result is APP_CONTROL_RESULT_SUCCEEDED
-* @failcase                            If API fails
-* @precondition                                N/A
-* @postcondition                       N/A
-* */
-int ITc_component_send_launch_request_async_p(void)
-{
-       START_TEST;
-
-       int nRet = APP_CONTROL_RESULT_FAILED;
-
-       nRet = AppControlSend(TEST_COMPONENTBASED_APPID, TEST_SERVICE_COMP_ID, "ITc_component_launch_req_async");
-       PRINT_RESULT(APP_CONTROL_RESULT_SUCCEEDED, nRet, "component_send_launch_request_async", AppControlGetResult(nRet));
-
-       return 0;
-}
-
-/**
-* @testcase                            ITc_frame_component_get_display_status_p
-* @since_tizen                         5.5
-* @author                              SRID(j.abhishek)
-* @reviewer                            SRID(shobhit.v)
-* @type                                auto
-* @description                         Gets the display status.
-* @scenario                            Check display feature, Launch component based app using helper
-*                                      asynchronous function AppControlSendAsyn() with extra data
-*                                      and check for result and check for Pass/Fail.
-* @apicovered                          frame_component_get_display_status
-* @passcase                            If API returns APP_CONTROL_ERROR_NONE
-* @failcase                            If API fails
-* @precondition                                N/A
-* @postcondition                       N/A
-* */
-int ITc_frame_component_get_display_status_p(void)
-{
-       START_TEST;
-
-       int nRet = APP_CONTROL_ERROR_NONE;
-       bool bScreenFeature = false;
-
-       /* For IOT headless */
-       bScreenFeature = TCTCheckSystemInfoFeatureSupported(TIZEN_FEATURE_SCREEN, API_NAMESPACE);
-       if (!bScreenFeature)
-       {
-               FPRINTF("[Line : %d][%s] %s Feature not spported .\\n", __LINE__, API_NAMESPACE, TIZEN_FEATURE_SCREEN);
-               return 0;
-       }
-
-       nRet = AppControlSendAsync(TEST_COMPONENTBASED_APPID, TEST_FRAME_COMP_ID, "ITc_frame_component_get_display_status");
-       PRINT_RESULT(APP_CONTROL_ERROR_NONE, nRet, "frame_component_get_display_status", AppControlGetError(nRet));
-
-       return 0;
-}
-
-/**
-* @testcase                            ITc_frame_component_get_window_p
-* @since_tizen                         5.5
-* @author                              SRID(j.abhishek)
-* @reviewer                            SRID(shobhit.v)
-* @type                                auto
-* @description                         Gets an Evas object for the frame component.
-* @scenario                            Check display feature, Launch component based app using helper
-*                                      synchronous function AppControlSend() with extra data
-*                                      and check for result and check for Pass/Fail.
-* @apicovered                          frame_component_get_window
-* @passcase                            If API return result is APP_CONTROL_RESULT_SUCCEEDED
-* @failcase                            If API fails
-* @precondition                                N/A
-* @postcondition                       N/A
-* */
-int ITc_frame_component_get_window_p(void)
-{
-       START_TEST;
-
-       int nRet = APP_CONTROL_ERROR_NONE;
-       bool bScreenFeature = false;
-
-       /* For IOT headless */
-       bScreenFeature = TCTCheckSystemInfoFeatureSupported(TIZEN_FEATURE_SCREEN, API_NAMESPACE);
-       if (!bScreenFeature)
-       {
-               FPRINTF("[Line : %d][%s] %s Feature not spported .\\n", __LINE__, API_NAMESPACE, TIZEN_FEATURE_SCREEN);
-               return 0;
-       }
-
-       nRet =  AppControlSend(TEST_COMPONENTBASED_APPID, TEST_SERVICE_COMP_ID, "ITc_frame_component_get_window");
-       PRINT_RESULT(APP_CONTROL_RESULT_SUCCEEDED, nRet, "frame_component_get_window", AppControlGetResult(nRet));
-
-       return 0;
-}
-
-/**
-* @testcase                            ITc_component_finish_p
-* @since_tizen                         5.5
-* @author                              SRID(j.abhishek)
-* @reviewer                            SRID(shobhit.v)
-* @type                                auto
-* @description                         Finishes the component instance.
-* @scenario                            Launch component based app using helper synchronous function AppControlSend()
-*                                      with extra data and check for result and check for Pass/Fail.
-* @apicovered                          component_finish
-* @passcase                            If API return result is APP_CONTROL_RESULT_SUCCEEDED
-* @failcase                            If API fails
-* @precondition                        N/A
-* @postcondition                       N/A
-* */
-int ITc_component_finish_p(void)
-{
-       START_TEST;
-
-       int nRet = APP_CONTROL_RESULT_FAILED;
-
-       nRet =  AppControlSend(TEST_COMPONENTBASED_APPID, TEST_SERVICE_COMP_ID, "ITc_component_finish");
-       PRINT_RESULT(APP_CONTROL_RESULT_SUCCEEDED, nRet, "component_finish", AppControlGetResult(nRet));
-
-       return 0;
-}
-
-/** @} */
-/** @} */
diff --git a/src/itc/component-based-app/res/mobile/org.example.componentbased-1.0.0-arm.tpk b/src/itc/component-based-app/res/mobile/org.example.componentbased-1.0.0-arm.tpk
deleted file mode 100644 (file)
index 2680039..0000000
Binary files a/src/itc/component-based-app/res/mobile/org.example.componentbased-1.0.0-arm.tpk and /dev/null differ
diff --git a/src/itc/component-based-app/res/mobile/org.example.componentbased-1.0.0-x86.tpk b/src/itc/component-based-app/res/mobile/org.example.componentbased-1.0.0-x86.tpk
deleted file mode 100644 (file)
index 2d4bd58..0000000
Binary files a/src/itc/component-based-app/res/mobile/org.example.componentbased-1.0.0-x86.tpk and /dev/null differ
diff --git a/src/itc/component-based-app/res/mobile/org.tizen.helloworld-1.0.0-arm.tpk b/src/itc/component-based-app/res/mobile/org.tizen.helloworld-1.0.0-arm.tpk
deleted file mode 100755 (executable)
index 44c8d54..0000000
Binary files a/src/itc/component-based-app/res/mobile/org.tizen.helloworld-1.0.0-arm.tpk and /dev/null differ
diff --git a/src/itc/component-based-app/res/mobile/org.tizen.helloworld-1.0.0-x86.tpk b/src/itc/component-based-app/res/mobile/org.tizen.helloworld-1.0.0-x86.tpk
deleted file mode 100755 (executable)
index 3a12252..0000000
Binary files a/src/itc/component-based-app/res/mobile/org.tizen.helloworld-1.0.0-x86.tpk and /dev/null differ
diff --git a/src/itc/component-based-app/res/tizeniot/org.example.componentbased-1.0.0-aarch64.tpk b/src/itc/component-based-app/res/tizeniot/org.example.componentbased-1.0.0-aarch64.tpk
deleted file mode 100755 (executable)
index ef530c2..0000000
Binary files a/src/itc/component-based-app/res/tizeniot/org.example.componentbased-1.0.0-aarch64.tpk and /dev/null differ
diff --git a/src/itc/component-based-app/res/tizeniot/org.example.componentbased-1.0.0-arm.tpk b/src/itc/component-based-app/res/tizeniot/org.example.componentbased-1.0.0-arm.tpk
deleted file mode 100644 (file)
index 2680039..0000000
Binary files a/src/itc/component-based-app/res/tizeniot/org.example.componentbased-1.0.0-arm.tpk and /dev/null differ
diff --git a/src/itc/component-based-app/res/tizeniot/org.example.componentbased-1.0.0-riscv64.tpk b/src/itc/component-based-app/res/tizeniot/org.example.componentbased-1.0.0-riscv64.tpk
deleted file mode 100644 (file)
index 1e32c82..0000000
Binary files a/src/itc/component-based-app/res/tizeniot/org.example.componentbased-1.0.0-riscv64.tpk and /dev/null differ
diff --git a/src/itc/component-based-app/res/tizeniot/org.example.componentbased-1.0.0-x86.tpk b/src/itc/component-based-app/res/tizeniot/org.example.componentbased-1.0.0-x86.tpk
deleted file mode 100644 (file)
index 2d4bd58..0000000
Binary files a/src/itc/component-based-app/res/tizeniot/org.example.componentbased-1.0.0-x86.tpk and /dev/null differ
diff --git a/src/itc/component-based-app/res/tizeniot/org.tizen.helloworld-1.0.0-aarch64.tpk b/src/itc/component-based-app/res/tizeniot/org.tizen.helloworld-1.0.0-aarch64.tpk
deleted file mode 100755 (executable)
index 1fb87f9..0000000
Binary files a/src/itc/component-based-app/res/tizeniot/org.tizen.helloworld-1.0.0-aarch64.tpk and /dev/null differ
diff --git a/src/itc/component-based-app/res/tizeniot/org.tizen.helloworld-1.0.0-arm.tpk b/src/itc/component-based-app/res/tizeniot/org.tizen.helloworld-1.0.0-arm.tpk
deleted file mode 100755 (executable)
index 44c8d54..0000000
Binary files a/src/itc/component-based-app/res/tizeniot/org.tizen.helloworld-1.0.0-arm.tpk and /dev/null differ
diff --git a/src/itc/component-based-app/res/tizeniot/org.tizen.helloworld-1.0.0-riscv64.tpk b/src/itc/component-based-app/res/tizeniot/org.tizen.helloworld-1.0.0-riscv64.tpk
deleted file mode 100644 (file)
index ae61f84..0000000
Binary files a/src/itc/component-based-app/res/tizeniot/org.tizen.helloworld-1.0.0-riscv64.tpk and /dev/null differ
diff --git a/src/itc/component-based-app/res/tizeniot/org.tizen.helloworld-1.0.0-x86.tpk b/src/itc/component-based-app/res/tizeniot/org.tizen.helloworld-1.0.0-x86.tpk
deleted file mode 100755 (executable)
index 3a12252..0000000
Binary files a/src/itc/component-based-app/res/tizeniot/org.tizen.helloworld-1.0.0-x86.tpk and /dev/null differ
diff --git a/src/itc/component-based-app/res/tv/org.example.componentbased-1.0.0-arm.tpk b/src/itc/component-based-app/res/tv/org.example.componentbased-1.0.0-arm.tpk
deleted file mode 100644 (file)
index 2680039..0000000
Binary files a/src/itc/component-based-app/res/tv/org.example.componentbased-1.0.0-arm.tpk and /dev/null differ
diff --git a/src/itc/component-based-app/res/tv/org.example.componentbased-1.0.0-x86.tpk b/src/itc/component-based-app/res/tv/org.example.componentbased-1.0.0-x86.tpk
deleted file mode 100644 (file)
index 2d4bd58..0000000
Binary files a/src/itc/component-based-app/res/tv/org.example.componentbased-1.0.0-x86.tpk and /dev/null differ
diff --git a/src/itc/component-based-app/res/tv/org.tizen.helloworld-1.0.0-arm.tpk b/src/itc/component-based-app/res/tv/org.tizen.helloworld-1.0.0-arm.tpk
deleted file mode 100755 (executable)
index 44c8d54..0000000
Binary files a/src/itc/component-based-app/res/tv/org.tizen.helloworld-1.0.0-arm.tpk and /dev/null differ
diff --git a/src/itc/component-based-app/res/tv/org.tizen.helloworld-1.0.0-x86.tpk b/src/itc/component-based-app/res/tv/org.tizen.helloworld-1.0.0-x86.tpk
deleted file mode 100755 (executable)
index 3a12252..0000000
Binary files a/src/itc/component-based-app/res/tv/org.tizen.helloworld-1.0.0-x86.tpk and /dev/null differ
diff --git a/src/itc/component-based-app/res/wearable/org.example.componentbased-1.0.0-arm.tpk b/src/itc/component-based-app/res/wearable/org.example.componentbased-1.0.0-arm.tpk
deleted file mode 100644 (file)
index 2680039..0000000
Binary files a/src/itc/component-based-app/res/wearable/org.example.componentbased-1.0.0-arm.tpk and /dev/null differ
diff --git a/src/itc/component-based-app/res/wearable/org.example.componentbased-1.0.0-x86.tpk b/src/itc/component-based-app/res/wearable/org.example.componentbased-1.0.0-x86.tpk
deleted file mode 100644 (file)
index 2d4bd58..0000000
Binary files a/src/itc/component-based-app/res/wearable/org.example.componentbased-1.0.0-x86.tpk and /dev/null differ
diff --git a/src/itc/component-based-app/res/wearable/org.tizen.helloworld-1.0.0-arm.tpk b/src/itc/component-based-app/res/wearable/org.tizen.helloworld-1.0.0-arm.tpk
deleted file mode 100755 (executable)
index 44c8d54..0000000
Binary files a/src/itc/component-based-app/res/wearable/org.tizen.helloworld-1.0.0-arm.tpk and /dev/null differ
diff --git a/src/itc/component-based-app/res/wearable/org.tizen.helloworld-1.0.0-x86.tpk b/src/itc/component-based-app/res/wearable/org.tizen.helloworld-1.0.0-x86.tpk
deleted file mode 100755 (executable)
index 3a12252..0000000
Binary files a/src/itc/component-based-app/res/wearable/org.tizen.helloworld-1.0.0-x86.tpk and /dev/null differ
diff --git a/src/itc/component-based-app/tct-component-based-app-native.c b/src/itc/component-based-app/tct-component-based-app-native.c
deleted file mode 100644 (file)
index a4ef896..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-//
-// Copyright (c) 2019 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 "tct_common.h"
-
-#ifdef MOBILE  //Starts MOBILE
-#include "tct-component-based-app-native_mobile.h"
-#endif  //MOBILE       //End MOBILE
-
-#ifdef WEARABLE        //Starts WEARABLE
-#include "tct-component-based-app-native_wearable.h"
-#endif  //WEARABLE     //End WEARABLE
-
-#ifdef TV      //Starts TV
-#include "tct-component-based-app-native_tv.h"
-#endif  //TV   //End TV
-
-#ifdef TIZENIOT        //Starts TIZENIOT
-#include "tct-component-based-app-native_tizeniot.h"
-#endif  //TIZENIOT     //End TIZENIOT
-
-#include <stdio.h>
-#include <string.h>
-#include <malloc.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/wait.h>
-#include <glib.h>
-#include <stdbool.h>
-#include <app.h>
-#include <dlog.h>
-
-static bool app_create(void *data)
-{
-       return true;
-}
-
-static void app_control(app_control_h app_control, void *data)
-{
-       char* pszGetTCName = NULL;
-       int i=0, result=0, nRet=0;
-       nRet = app_control_get_extra_data(app_control, "testcase_name", &pszGetTCName);
-       if(nRet != APP_CONTROL_ERROR_NONE)
-       {
-               dlog_print(DLOG_ERROR, "NativeTCT", "[%s:%d] app_control_get_extra_data returns error = %d", __FUNCTION__, __LINE__, nRet);
-               PRINT_UTC_LOG("\\n[%s][Line : %d]Unable to fetch test case name: app_control_get_extra_data API call fails\\n", __FILE__, __LINE__);
-               PRINT_TC_RESULT("%d",1);
-               FREE_MEMORY_TC(pszGetTCName);
-               return;
-       }
-
-       dlog_print(DLOG_INFO, "NativeTCT", "[%s:%d] Executing TC Name = %s", __FUNCTION__, __LINE__, pszGetTCName);
-       for ( i = 0; tc_array[i].name; i++ )
-       {
-               if ( 0 == strncmp(pszGetTCName, tc_array[i].name, strlen(pszGetTCName)) )
-               {
-                       dlog_print(DLOG_INFO, "NativeTCT", "%s : Startup begin", pszGetTCName);
-                       if ( tc_array[i].startup )
-                       {
-                               tc_array[i].startup();
-                       }
-                       dlog_print(DLOG_INFO, "NativeTCT", "%s : Startup end", pszGetTCName);
-
-                       dlog_print(DLOG_INFO, "NativeTCT", "%s : Body begin", pszGetTCName);
-                       result = tc_array[i].function();
-                       dlog_print(DLOG_INFO, "NativeTCT", "%s returns value = %d", pszGetTCName, result);
-                       dlog_print(DLOG_INFO, "NativeTCT", "%s : Body end", pszGetTCName);
-
-                       dlog_print(DLOG_INFO, "NativeTCT", "%s : Cleanup begin", pszGetTCName);
-                       if ( tc_array[i].cleanup )
-                       {
-                               tc_array[i].cleanup();
-                       }
-                       dlog_print(DLOG_INFO, "NativeTCT", "%s : Cleanup end", pszGetTCName);
-
-                       PRINT_TC_RESULT("%d",result);
-                       FREE_MEMORY_TC(pszGetTCName);
-                       return;
-               }
-       }
-
-       dlog_print(DLOG_ERROR, "NativeTCT", "[%s:%d] Unable to execute %s : Unknown Test Case Name", __FUNCTION__, __LINE__, pszGetTCName);
-       PRINT_UTC_LOG("\\n[%s][Line : %d]Unable to execute %s : Unknown Test Case Name\\n", __FILE__, __LINE__, pszGetTCName);
-       PRINT_TC_RESULT("%d",1);
-       FREE_MEMORY_TC(pszGetTCName);
-       return;
-}
-
-static void app_terminate(void *data)
-{
-       dlog_print(DLOG_INFO, "NativeTCT", "[%s:%d] Application Package is now Terminating", __FUNCTION__, __LINE__);
-}
-
-int main(int argc, char *argv[])
-{
-       int ret = 0;
-
-       ui_app_lifecycle_callback_s event_callback = {0,};
-       event_callback.create = app_create;
-       event_callback.terminate = app_terminate;
-       event_callback.app_control = app_control;
-
-       //setting gcda file location for coverage
-       setenv("GCOV_PREFIX","/tmp",1);
-       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, 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);
-               PRINT_TC_RESULT("%d",1);
-               return ret;
-       }
-
-       dlog_print(DLOG_INFO, "NativeTCT", "[%s:%d] Application Package is Terminated", __FUNCTION__, __LINE__);
-       return ret;
-}
diff --git a/src/itc/component-based-app/tct-component-based-app-native_mobile.h b/src/itc/component-based-app/tct-component-based-app-native_mobile.h
deleted file mode 100644 (file)
index 4f5d3ea..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-//
-// Copyright (c) 2019 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.
-//
-#ifndef __TCT_COMPONENT_BASED_APPLICATION_NATIVE_H__
-#define __TCT_COMPONENT_BASED_APPLICATION_NATIVE_H__
-
-#include "testcase.h"
-#include "tct_common.h"
-
-extern void ITs_componenet_based_app_startup(void);
-extern void ITs_componenet_based_app_cleanup(void);
-
-extern int ITc_component_based_app_main_p(void);
-extern int ITc_component_based_app_exit_p(void);
-extern int ITc_component_based_app_add_frame_component_p(void);
-extern int ITc_component_based_app_add_service_component_p(void);
-extern int ITc_component_get_id_p(void);
-extern int ITc_component_get_instance_id_p(void);
-extern int ITc_component_register_action_p(void);
-extern int ITc_component_deregister_action_p(void);
-extern int ITc_component_send_launch_request_sync_p(void);
-extern int ITc_component_send_launch_request_async_p(void);
-extern int ITc_frame_component_get_display_status_p(void);
-extern int ITc_frame_component_get_window_p(void);
-extern int ITc_component_finish_p(void);
-
-testcase tc_array[] = {
-       {"ITc_component_based_app_main_p", ITc_component_based_app_main_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_based_app_exit_p", ITc_component_based_app_exit_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_based_app_add_frame_component_p", ITc_component_based_app_add_frame_component_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_based_app_add_service_component_p", ITc_component_based_app_add_service_component_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_get_id_p", ITc_component_get_id_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_get_instance_id_p", ITc_component_get_instance_id_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_register_action_p", ITc_component_register_action_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_deregister_action_p", ITc_component_deregister_action_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_send_launch_request_sync_p", ITc_component_send_launch_request_sync_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_send_launch_request_async_p", ITc_component_send_launch_request_async_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_frame_component_get_display_status_p", ITc_frame_component_get_display_status_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_frame_component_get_window_p", ITc_frame_component_get_window_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_finish_p", ITc_component_finish_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {NULL, NULL}
-};
-
-#endif // __TCT_COMPONENT_BASED_APPLICATION_NATIVE_H__
diff --git a/src/itc/component-based-app/tct-component-based-app-native_tizeniot.h b/src/itc/component-based-app/tct-component-based-app-native_tizeniot.h
deleted file mode 100644 (file)
index 4f5d3ea..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-//
-// Copyright (c) 2019 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.
-//
-#ifndef __TCT_COMPONENT_BASED_APPLICATION_NATIVE_H__
-#define __TCT_COMPONENT_BASED_APPLICATION_NATIVE_H__
-
-#include "testcase.h"
-#include "tct_common.h"
-
-extern void ITs_componenet_based_app_startup(void);
-extern void ITs_componenet_based_app_cleanup(void);
-
-extern int ITc_component_based_app_main_p(void);
-extern int ITc_component_based_app_exit_p(void);
-extern int ITc_component_based_app_add_frame_component_p(void);
-extern int ITc_component_based_app_add_service_component_p(void);
-extern int ITc_component_get_id_p(void);
-extern int ITc_component_get_instance_id_p(void);
-extern int ITc_component_register_action_p(void);
-extern int ITc_component_deregister_action_p(void);
-extern int ITc_component_send_launch_request_sync_p(void);
-extern int ITc_component_send_launch_request_async_p(void);
-extern int ITc_frame_component_get_display_status_p(void);
-extern int ITc_frame_component_get_window_p(void);
-extern int ITc_component_finish_p(void);
-
-testcase tc_array[] = {
-       {"ITc_component_based_app_main_p", ITc_component_based_app_main_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_based_app_exit_p", ITc_component_based_app_exit_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_based_app_add_frame_component_p", ITc_component_based_app_add_frame_component_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_based_app_add_service_component_p", ITc_component_based_app_add_service_component_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_get_id_p", ITc_component_get_id_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_get_instance_id_p", ITc_component_get_instance_id_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_register_action_p", ITc_component_register_action_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_deregister_action_p", ITc_component_deregister_action_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_send_launch_request_sync_p", ITc_component_send_launch_request_sync_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_send_launch_request_async_p", ITc_component_send_launch_request_async_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_frame_component_get_display_status_p", ITc_frame_component_get_display_status_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_frame_component_get_window_p", ITc_frame_component_get_window_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_finish_p", ITc_component_finish_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {NULL, NULL}
-};
-
-#endif // __TCT_COMPONENT_BASED_APPLICATION_NATIVE_H__
diff --git a/src/itc/component-based-app/tct-component-based-app-native_tv.h b/src/itc/component-based-app/tct-component-based-app-native_tv.h
deleted file mode 100644 (file)
index 4f5d3ea..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-//
-// Copyright (c) 2019 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.
-//
-#ifndef __TCT_COMPONENT_BASED_APPLICATION_NATIVE_H__
-#define __TCT_COMPONENT_BASED_APPLICATION_NATIVE_H__
-
-#include "testcase.h"
-#include "tct_common.h"
-
-extern void ITs_componenet_based_app_startup(void);
-extern void ITs_componenet_based_app_cleanup(void);
-
-extern int ITc_component_based_app_main_p(void);
-extern int ITc_component_based_app_exit_p(void);
-extern int ITc_component_based_app_add_frame_component_p(void);
-extern int ITc_component_based_app_add_service_component_p(void);
-extern int ITc_component_get_id_p(void);
-extern int ITc_component_get_instance_id_p(void);
-extern int ITc_component_register_action_p(void);
-extern int ITc_component_deregister_action_p(void);
-extern int ITc_component_send_launch_request_sync_p(void);
-extern int ITc_component_send_launch_request_async_p(void);
-extern int ITc_frame_component_get_display_status_p(void);
-extern int ITc_frame_component_get_window_p(void);
-extern int ITc_component_finish_p(void);
-
-testcase tc_array[] = {
-       {"ITc_component_based_app_main_p", ITc_component_based_app_main_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_based_app_exit_p", ITc_component_based_app_exit_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_based_app_add_frame_component_p", ITc_component_based_app_add_frame_component_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_based_app_add_service_component_p", ITc_component_based_app_add_service_component_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_get_id_p", ITc_component_get_id_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_get_instance_id_p", ITc_component_get_instance_id_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_register_action_p", ITc_component_register_action_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_deregister_action_p", ITc_component_deregister_action_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_send_launch_request_sync_p", ITc_component_send_launch_request_sync_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_send_launch_request_async_p", ITc_component_send_launch_request_async_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_frame_component_get_display_status_p", ITc_frame_component_get_display_status_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_frame_component_get_window_p", ITc_frame_component_get_window_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_finish_p", ITc_component_finish_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {NULL, NULL}
-};
-
-#endif // __TCT_COMPONENT_BASED_APPLICATION_NATIVE_H__
diff --git a/src/itc/component-based-app/tct-component-based-app-native_wearable.h b/src/itc/component-based-app/tct-component-based-app-native_wearable.h
deleted file mode 100644 (file)
index 4f5d3ea..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-//
-// Copyright (c) 2019 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.
-//
-#ifndef __TCT_COMPONENT_BASED_APPLICATION_NATIVE_H__
-#define __TCT_COMPONENT_BASED_APPLICATION_NATIVE_H__
-
-#include "testcase.h"
-#include "tct_common.h"
-
-extern void ITs_componenet_based_app_startup(void);
-extern void ITs_componenet_based_app_cleanup(void);
-
-extern int ITc_component_based_app_main_p(void);
-extern int ITc_component_based_app_exit_p(void);
-extern int ITc_component_based_app_add_frame_component_p(void);
-extern int ITc_component_based_app_add_service_component_p(void);
-extern int ITc_component_get_id_p(void);
-extern int ITc_component_get_instance_id_p(void);
-extern int ITc_component_register_action_p(void);
-extern int ITc_component_deregister_action_p(void);
-extern int ITc_component_send_launch_request_sync_p(void);
-extern int ITc_component_send_launch_request_async_p(void);
-extern int ITc_frame_component_get_display_status_p(void);
-extern int ITc_frame_component_get_window_p(void);
-extern int ITc_component_finish_p(void);
-
-testcase tc_array[] = {
-       {"ITc_component_based_app_main_p", ITc_component_based_app_main_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_based_app_exit_p", ITc_component_based_app_exit_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_based_app_add_frame_component_p", ITc_component_based_app_add_frame_component_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_based_app_add_service_component_p", ITc_component_based_app_add_service_component_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_get_id_p", ITc_component_get_id_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_get_instance_id_p", ITc_component_get_instance_id_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_register_action_p", ITc_component_register_action_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_deregister_action_p", ITc_component_deregister_action_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_send_launch_request_sync_p", ITc_component_send_launch_request_sync_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_send_launch_request_async_p", ITc_component_send_launch_request_async_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_frame_component_get_display_status_p", ITc_frame_component_get_display_status_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_frame_component_get_window_p", ITc_frame_component_get_window_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {"ITc_component_finish_p", ITc_component_finish_p, ITs_componenet_based_app_startup, ITs_componenet_based_app_cleanup},
-       {NULL, NULL}
-};
-
-#endif // __TCT_COMPONENT_BASED_APPLICATION_NATIVE_H__
diff --git a/src/utc/component-based-application/CMakeLists.txt b/src/utc/component-based-application/CMakeLists.txt
deleted file mode 100644 (file)
index 12c9ff6..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-SET(PKG_NAME "component-based-application")
-
-SET(EXEC_NAME "tct-${PKG_NAME}-core")
-SET(RPM_NAME "core-${PKG_NAME}-tests")
-
-SET(CAPI_LIB "component-based-application")
-SET(TC_SOURCES
-    utc-component-based-app.c
-    utc-component-common.c
-)
-
-PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED
-    ${CAPI_LIB}
-       capi-appfw-application
-       capi-system-info
-       glib-2.0
-    bundle
-       dlog 
-       elementary
-)
-
-INCLUDE_DIRECTORIES(
-       ${${CAPI_LIB}_INCLUDE_DIRS}
-)
-
-ADD_EXECUTABLE(${EXEC_NAME} ${EXEC_NAME}.c ${TC_SOURCES} ${COMMON_FILE})
-TARGET_LINK_LIBRARIES(${EXEC_NAME}
-       ${${CAPI_LIB}_LIBRARIES}
-       bundle
-)
-
-INSTALL(PROGRAMS ${EXEC_NAME}
-    DESTINATION ${BIN_DIR}/${RPM_NAME}/bin
-)
-
-IF( DEFINED ASAN )
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer")
-SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address")
-ELSE()
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall")
-SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -pie")
-ENDIF()
-
-ADD_SUBDIRECTORY(component_app)
diff --git a/src/utc/component-based-application/assert_common.h b/src/utc/component-based-application/assert_common.h
deleted file mode 100755 (executable)
index 935b4ad..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-#ifndef __ASSERT_COMMON_H__
-#define __ASSERT_COMMON_H__
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <app.h>
-#include <dlog.h>
-#define MAX_TIMER_CNT 10
-
-#ifdef LOG_TAG
-#undef LOG_TAG
-#define LOG_TAG "component-based-application-tests"
-#endif
-
-int utc_result;
-
-#define assert_with_exit(exp) do { \
-               if (!(exp)) { \
-                       dlog_print(DLOG_ERROR, LOG_TAG, \
-                               "Assert fail in %s:%d\n", __FILE__, __LINE__); \
-                       dlog_print(DLOG_ERROR, LOG_TAG, \
-                               "Following expression is not true:\n" \
-                               "%s\n", #exp); \
-                       utc_result = 1; \
-                       ui_app_exit(); \
-                       return 1; \
-               } \
-       } while (0)
-
-#define assert_eq_with_exit(var, ref) do { \
-               if (var != ref) { \
-                       dlog_print(DLOG_ERROR, LOG_TAG, \
-                               "Assert fail in %s:%d\n", __FILE__, __LINE__); \
-                       dlog_print(DLOG_ERROR, LOG_TAG, \
-                               "Values \"%s\" and \"%s\" are not equal:\n" \
-                               "%s == %d, %s == %d\n", \
-                               #var, #ref, #var, (int)var, #ref, (int)ref); \
-                       utc_result = 1; \
-                       ui_app_exit(); \
-                       return 1; \
-               } \
-       } while (0)
-
-#define assert_neq_with_exit(var, ref) do { \
-               if (var == ref) { \
-                       dlog_print(DLOG_ERROR, LOG_TAG, \
-                               "Assert fail in %s:%d\n", __FILE__, __LINE__); \
-                       dlog_print(DLOG_ERROR, LOG_TAG, \
-                               "Values \"%s\" and \"%s\" are equal:\n" \
-                               "%s == %s == %d\n", \
-                               #var, #ref, #var, #ref, (int)ref); \
-                       utc_result = 1; \
-                       ui_app_exit(); \
-                       return 1; \
-               } \
-       } while (0)
-
-#define assert_eq_without_exit(var, ref) do { \
-               if (var != ref) { \
-                       dlog_print(DLOG_ERROR, LOG_TAG, \
-                               "Assert fail in %s:%d\n", __FILE__, __LINE__); \
-                       dlog_print(DLOG_ERROR, LOG_TAG, \
-                               "Values \"%s\" and \"%s\" are not equal:\n" \
-                               "%s == %d, %s == %d\n", \
-                               #var, #ref, #var, var, #ref, ref); \
-                       utc_result = 1; \
-                       return 1; \
-               } \
-       } while (0)
-
-#define assert_neq_without_exit(var, ref) do { \
-               if (var == ref) { \
-                       dlog_print(DLOG_ERROR, LOG_TAG, \
-                               "Assert fail in %s:%d\n", __FILE__, __LINE__); \
-                       dlog_print(DLOG_ERROR, LOG_TAG, \
-                               "Values \"%s\" and \"%s\" are equal:\n" \
-                               "%s == %s == %d\n", \
-                               #var, #ref, #var, #ref, ref); \
-                       utc_result = 1; \
-                       return 1; \
-               } \
-       } while (0)
-
-#define normal_exit(result) do { \
-               utc_result = result; \
-               ui_app_exit(); \
-       } while (0)
-
-#define set_result(result) do { \
-               dlog_print(DLOG_INFO, LOG_TAG, "result: %d", result); \
-               utc_result = result; \
-       } while (0)
-
-#endif /* __ASSERT_COMMON_H__ */
diff --git a/src/utc/component-based-application/res/mobile/org.example.componentbased-1.0.0-aarch64.tpk b/src/utc/component-based-application/res/mobile/org.example.componentbased-1.0.0-aarch64.tpk
deleted file mode 100755 (executable)
index a986744..0000000
Binary files a/src/utc/component-based-application/res/mobile/org.example.componentbased-1.0.0-aarch64.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/mobile/org.example.componentbased-1.0.0-arm.tpk b/src/utc/component-based-application/res/mobile/org.example.componentbased-1.0.0-arm.tpk
deleted file mode 100755 (executable)
index 63eb192..0000000
Binary files a/src/utc/component-based-application/res/mobile/org.example.componentbased-1.0.0-arm.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/mobile/org.example.componentbased-1.0.0-i386.tpk b/src/utc/component-based-application/res/mobile/org.example.componentbased-1.0.0-i386.tpk
deleted file mode 100755 (executable)
index f0cb59e..0000000
Binary files a/src/utc/component-based-application/res/mobile/org.example.componentbased-1.0.0-i386.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/mobile/org.tizen.helloworld-1.0.0-aarch64.tpk b/src/utc/component-based-application/res/mobile/org.tizen.helloworld-1.0.0-aarch64.tpk
deleted file mode 100644 (file)
index 1fb87f9..0000000
Binary files a/src/utc/component-based-application/res/mobile/org.tizen.helloworld-1.0.0-aarch64.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/mobile/org.tizen.helloworld-1.0.0-arm.tpk b/src/utc/component-based-application/res/mobile/org.tizen.helloworld-1.0.0-arm.tpk
deleted file mode 100644 (file)
index 44c8d54..0000000
Binary files a/src/utc/component-based-application/res/mobile/org.tizen.helloworld-1.0.0-arm.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/mobile/org.tizen.helloworld-1.0.0-i386.tpk b/src/utc/component-based-application/res/mobile/org.tizen.helloworld-1.0.0-i386.tpk
deleted file mode 100755 (executable)
index 3a12252..0000000
Binary files a/src/utc/component-based-application/res/mobile/org.tizen.helloworld-1.0.0-i386.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/tizeniot/org.example.componentbased-1.0.0-aarch64.tpk b/src/utc/component-based-application/res/tizeniot/org.example.componentbased-1.0.0-aarch64.tpk
deleted file mode 100755 (executable)
index a986744..0000000
Binary files a/src/utc/component-based-application/res/tizeniot/org.example.componentbased-1.0.0-aarch64.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/tizeniot/org.example.componentbased-1.0.0-arm.tpk b/src/utc/component-based-application/res/tizeniot/org.example.componentbased-1.0.0-arm.tpk
deleted file mode 100755 (executable)
index 63eb192..0000000
Binary files a/src/utc/component-based-application/res/tizeniot/org.example.componentbased-1.0.0-arm.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/tizeniot/org.example.componentbased-1.0.0-i386.tpk b/src/utc/component-based-application/res/tizeniot/org.example.componentbased-1.0.0-i386.tpk
deleted file mode 100755 (executable)
index f0cb59e..0000000
Binary files a/src/utc/component-based-application/res/tizeniot/org.example.componentbased-1.0.0-i386.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/tizeniot/org.example.componentbased-1.0.0-riscv64.tpk b/src/utc/component-based-application/res/tizeniot/org.example.componentbased-1.0.0-riscv64.tpk
deleted file mode 100644 (file)
index fbc8f24..0000000
Binary files a/src/utc/component-based-application/res/tizeniot/org.example.componentbased-1.0.0-riscv64.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/tizeniot/org.tizen.helloworld-1.0.0-aarch64.tpk b/src/utc/component-based-application/res/tizeniot/org.tizen.helloworld-1.0.0-aarch64.tpk
deleted file mode 100644 (file)
index 1fb87f9..0000000
Binary files a/src/utc/component-based-application/res/tizeniot/org.tizen.helloworld-1.0.0-aarch64.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/tizeniot/org.tizen.helloworld-1.0.0-arm.tpk b/src/utc/component-based-application/res/tizeniot/org.tizen.helloworld-1.0.0-arm.tpk
deleted file mode 100755 (executable)
index 44c8d54..0000000
Binary files a/src/utc/component-based-application/res/tizeniot/org.tizen.helloworld-1.0.0-arm.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/tizeniot/org.tizen.helloworld-1.0.0-i386.tpk b/src/utc/component-based-application/res/tizeniot/org.tizen.helloworld-1.0.0-i386.tpk
deleted file mode 100755 (executable)
index 3a12252..0000000
Binary files a/src/utc/component-based-application/res/tizeniot/org.tizen.helloworld-1.0.0-i386.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/tizeniot/org.tizen.helloworld-1.0.0-riscv64.tpk b/src/utc/component-based-application/res/tizeniot/org.tizen.helloworld-1.0.0-riscv64.tpk
deleted file mode 100644 (file)
index ae61f84..0000000
Binary files a/src/utc/component-based-application/res/tizeniot/org.tizen.helloworld-1.0.0-riscv64.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/tv/org.example.componentbased-1.0.0-aarch64.tpk b/src/utc/component-based-application/res/tv/org.example.componentbased-1.0.0-aarch64.tpk
deleted file mode 100755 (executable)
index a986744..0000000
Binary files a/src/utc/component-based-application/res/tv/org.example.componentbased-1.0.0-aarch64.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/tv/org.example.componentbased-1.0.0-arm.tpk b/src/utc/component-based-application/res/tv/org.example.componentbased-1.0.0-arm.tpk
deleted file mode 100755 (executable)
index 63eb192..0000000
Binary files a/src/utc/component-based-application/res/tv/org.example.componentbased-1.0.0-arm.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/tv/org.example.componentbased-1.0.0-i386.tpk b/src/utc/component-based-application/res/tv/org.example.componentbased-1.0.0-i386.tpk
deleted file mode 100755 (executable)
index f0cb59e..0000000
Binary files a/src/utc/component-based-application/res/tv/org.example.componentbased-1.0.0-i386.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/tv/org.tizen.helloworld-1.0.0-aarch64.tpk b/src/utc/component-based-application/res/tv/org.tizen.helloworld-1.0.0-aarch64.tpk
deleted file mode 100644 (file)
index 1fb87f9..0000000
Binary files a/src/utc/component-based-application/res/tv/org.tizen.helloworld-1.0.0-aarch64.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/tv/org.tizen.helloworld-1.0.0-arm.tpk b/src/utc/component-based-application/res/tv/org.tizen.helloworld-1.0.0-arm.tpk
deleted file mode 100755 (executable)
index 44c8d54..0000000
Binary files a/src/utc/component-based-application/res/tv/org.tizen.helloworld-1.0.0-arm.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/tv/org.tizen.helloworld-1.0.0-i386.tpk b/src/utc/component-based-application/res/tv/org.tizen.helloworld-1.0.0-i386.tpk
deleted file mode 100755 (executable)
index 3a12252..0000000
Binary files a/src/utc/component-based-application/res/tv/org.tizen.helloworld-1.0.0-i386.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/wearable/org.example.componentbased-1.0.0-aarch64.tpk b/src/utc/component-based-application/res/wearable/org.example.componentbased-1.0.0-aarch64.tpk
deleted file mode 100755 (executable)
index a986744..0000000
Binary files a/src/utc/component-based-application/res/wearable/org.example.componentbased-1.0.0-aarch64.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/wearable/org.example.componentbased-1.0.0-arm.tpk b/src/utc/component-based-application/res/wearable/org.example.componentbased-1.0.0-arm.tpk
deleted file mode 100755 (executable)
index 63eb192..0000000
Binary files a/src/utc/component-based-application/res/wearable/org.example.componentbased-1.0.0-arm.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/wearable/org.example.componentbased-1.0.0-i386.tpk b/src/utc/component-based-application/res/wearable/org.example.componentbased-1.0.0-i386.tpk
deleted file mode 100755 (executable)
index f0cb59e..0000000
Binary files a/src/utc/component-based-application/res/wearable/org.example.componentbased-1.0.0-i386.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/wearable/org.tizen.helloworld-1.0.0-aarch64.tpk b/src/utc/component-based-application/res/wearable/org.tizen.helloworld-1.0.0-aarch64.tpk
deleted file mode 100644 (file)
index 1fb87f9..0000000
Binary files a/src/utc/component-based-application/res/wearable/org.tizen.helloworld-1.0.0-aarch64.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/wearable/org.tizen.helloworld-1.0.0-arm.tpk b/src/utc/component-based-application/res/wearable/org.tizen.helloworld-1.0.0-arm.tpk
deleted file mode 100755 (executable)
index 44c8d54..0000000
Binary files a/src/utc/component-based-application/res/wearable/org.tizen.helloworld-1.0.0-arm.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/res/wearable/org.tizen.helloworld-1.0.0-i386.tpk b/src/utc/component-based-application/res/wearable/org.tizen.helloworld-1.0.0-i386.tpk
deleted file mode 100755 (executable)
index 3a12252..0000000
Binary files a/src/utc/component-based-application/res/wearable/org.tizen.helloworld-1.0.0-i386.tpk and /dev/null differ
diff --git a/src/utc/component-based-application/tct-component-based-application-core.c b/src/utc/component-based-application/tct-component-based-application-core.c
deleted file mode 100644 (file)
index fdf4a2b..0000000
+++ /dev/null
@@ -1,155 +0,0 @@
-//
-// Copyright (c) 2014 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 "tct_common.h"
-#include "assert_common.h"
-
-#ifdef MOBILE  //Starts MOBILE
-#include "tct-component-based-application-core_mobile.h"
-#endif  //MOBILE       //End MOBILE
-
-#ifdef WEARABLE        //Starts WEARABLE
-#include "tct-component-based-application-core_wearable.h"
-#endif  //WEARABLE     //End WEARABLE
-
-#ifdef TV      //Starts TV
-#include "tct-component-based-application-core_tv.h"
-#endif  //TV   //End TV
-
-#ifdef TIZENIOT        //Starts TIZENIOT
-#include "tct-component-based-application-core_tizeniot.h"
-#endif  //TIZENIOT     //End TIZENIOT
-
-#include <stdio.h>
-#include <string.h>
-#include <malloc.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/wait.h>
-#include <glib.h>
-#include <stdbool.h>
-#include <app.h>
-#include <dlog.h>
-
-#include <Elementary.h>
-
-static char *pszGetTCName;
-static void (*cleanup_func)(void);
-
-static gboolean run_testcases(gpointer user_data) {
-
-       int i;
-
-       utc_result = -1;
-       cleanup_func = NULL;
-       dlog_print(DLOG_INFO, "NativeTCT", "[%s:%d] Executing TC Name = %s", __FUNCTION__, __LINE__, pszGetTCName);
-       for (i = 0; tc_array[i].name; i++) {
-               if (strncmp(pszGetTCName, tc_array[i].name, strlen(pszGetTCName)) == 0) {
-                       DUMP_UTC_ERRLOG();
-                       dlog_print(DLOG_INFO, "NativeTCT", "%s : Startup begin", pszGetTCName);
-                       if (tc_array[i].startup) {
-                               tc_array[i].startup();
-                       }
-                       dlog_print(DLOG_INFO, "NativeTCT", "%s : Startup end", pszGetTCName);
-
-                       dlog_print(DLOG_INFO, "NativeTCT", "%s : Body begin", pszGetTCName);
-                       tc_array[i].function();
-                       dlog_print(DLOG_INFO, "NativeTCT", "%s", pszGetTCName);
-                       dlog_print(DLOG_INFO, "NativeTCT", "%s : Body end", pszGetTCName);
-
-                       dlog_print(DLOG_INFO, "NativeTCT", "%s : Cleanup function pointer assigned", pszGetTCName);
-                       if (tc_array[i].cleanup){
-                               cleanup_func = tc_array[i].cleanup;
-                       }
-
-                       return FALSE;
-               }
-       }
-
-       dlog_print(DLOG_ERROR, "NativeTCT", "[%s:%d] Unable to execute %s : Unknown Test Case Name", __FUNCTION__, __LINE__, pszGetTCName);
-       PRINT_UTC_LOG("\\n[%s][Line : %d]Unable to execute %s : Unknown Test Case Name\\n", __FILE__, __LINE__, pszGetTCName);
-       PRINT_TC_RESULT("%d", 1);
-       FREE_MEMORY_TC(pszGetTCName);
-       ui_app_exit();
-
-       return FALSE;
-}
-
-static void app_control(app_control_h app_control, void *data)
-{
-
-       int nRet = 0;
-       nRet = app_control_get_extra_data(app_control, "testcase_name", &pszGetTCName);
-       if(nRet != APP_CONTROL_ERROR_NONE)
-       {
-               dlog_print(DLOG_ERROR, "NativeTCT", "[%s:%d] app_control_get_extra_data returns error = %d", __FUNCTION__, __LINE__, nRet);
-               PRINT_UTC_LOG("\\n[%s][Line : %d]Unable to fetch test case name: app_control_get_extra_data API call fails\\n", __FILE__, __LINE__);
-               PRINT_TC_RESULT("%d",1);
-               FREE_MEMORY_TC(pszGetTCName);
-               return;
-       }
-
-       run_testcases(NULL);
-
-
-       return;
-}
-
-static bool app_create(void *data)
-{
-       return true;
-}
-
-static void app_terminate(void *data)
-{
-       dlog_print(DLOG_INFO, "NativeTCT", "[%s:%d] Application Package is now Terminating", __FUNCTION__, __LINE__);
-}
-
-int main(int argc, char *argv[])
-{
-       int ret;
-
-       //setting gcda file location for coverage
-       setenv("GCOV_PREFIX", "/tmp", 1);
-       dlog_print(DLOG_INFO, "NativeTCT", "[%s:%d] Coverage *.gcda File location set to /tmp/home/abuild/rpmbuild/BUILD/ ", __FUNCTION__, __LINE__);
-
-       ui_app_lifecycle_callback_s event_callback = {0,};
-       event_callback.create = app_create;
-       event_callback.terminate = app_terminate;
-       event_callback.app_control = app_control;
-
-       dlog_print(DLOG_INFO, "NativeTCT", "[%s:%d] Application Main Function is Invoked", __FUNCTION__, __LINE__);
-
-       ret = ui_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);
-               PRINT_TC_RESULT("%d", 1);
-               return ret;
-       }
-
-       CLOSE_UTC_ERRLOG();
-       PRINT_TC_RESULT("%d", utc_result);
-       if (cleanup_func) {
-               dlog_print(DLOG_INFO, "NativeTCT", "%s : Cleanup begin", pszGetTCName);
-               cleanup_func();
-               dlog_print(DLOG_INFO, "NativeTCT", "%s : Cleanup end", pszGetTCName);
-       }
-       FREE_MEMORY_TC(pszGetTCName);
-
-       dlog_print(DLOG_INFO, "NativeTCT", "[%s:%d] Application Package is Terminated", __FUNCTION__, __LINE__);
-       return ret;
-}
diff --git a/src/utc/component-based-application/tct-component-based-application-core_mobile.h b/src/utc/component-based-application/tct-component-based-application-core_mobile.h
deleted file mode 100644 (file)
index 15d3eee..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-//
-// Copyright (c) 2019 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.
-//
-#ifndef __TCT_COMPONENT_BASED_APPLICATION_NATIVE_H__
-#define __TCT_COMPONENT_BASED_APPLICATION_NATIVE_H__
-
-#include "testcase.h"
-#include "tct_common.h"
-
-extern void utc_component_based_application_startup(void);
-extern void utc_component_based_application_cleanup(void);
-
-extern int utc_component_based_app_main_p(void);
-extern int utc_component_based_app_main_n(void);
-extern int utc_component_based_app_add_frame_component_p(void);
-extern int utc_component_based_app_add_frame_component_n(void);
-extern int utc_component_based_app_add_service_component_p(void);
-extern int utc_component_based_app_add_service_component_n(void);
-extern int utc_frame_component_get_display_status_p(void);
-extern int utc_frame_component_get_display_status_n(void);
-extern int utc_frame_component_get_window_p(void);
-extern int utc_frame_component_get_window_n(void);
-extern int utc_component_register_action_p(void);
-extern int utc_component_register_action_n(void);
-extern int utc_component_deregister_action_p(void);
-extern int utc_component_deregister_action_n(void);
-extern int utc_component_send_launch_request_sync_p(void);
-extern int utc_component_send_launch_request_sync_n(void);
-extern int utc_component_send_launch_request_async_p(void);
-extern int utc_component_send_launch_request_async_n(void);
-extern int utc_component_based_app_exit_p(void);
-extern int utc_component_finish_p(void);
-extern int utc_component_finish_n(void);
-
-testcase tc_array[] = {
-    {"utc_component_based_app_main_p", utc_component_based_app_main_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_based_app_main_n", utc_component_based_app_main_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_based_app_add_frame_component_p", utc_component_based_app_add_frame_component_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_based_app_add_frame_component_n", utc_component_based_app_add_frame_component_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_based_app_add_service_component_p", utc_component_based_app_add_service_component_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_based_app_add_service_component_n", utc_component_based_app_add_service_component_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_frame_component_get_display_status_p", utc_frame_component_get_display_status_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_frame_component_get_display_status_n", utc_frame_component_get_display_status_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_frame_component_get_window_p", utc_frame_component_get_window_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_frame_component_get_window_n", utc_frame_component_get_window_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_register_action_p", utc_component_register_action_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_register_action_n", utc_component_register_action_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_deregister_action_p", utc_component_deregister_action_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_deregister_action_n", utc_component_deregister_action_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_send_launch_request_sync_p", utc_component_send_launch_request_sync_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-       {"utc_component_send_launch_request_sync_n", utc_component_send_launch_request_sync_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-       {"utc_component_send_launch_request_async_p", utc_component_send_launch_request_async_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-       {"utc_component_send_launch_request_async_n", utc_component_send_launch_request_async_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_based_app_exit_p", utc_component_based_app_exit_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_finish_p", utc_component_finish_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_finish_n", utc_component_finish_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-       {NULL, NULL}
-};
-
-#endif // __TCT_COMPONENT_BASED_APPLICATION_NATIVE_H__
diff --git a/src/utc/component-based-application/tct-component-based-application-core_tizeniot.h b/src/utc/component-based-application/tct-component-based-application-core_tizeniot.h
deleted file mode 100644 (file)
index 15d3eee..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-//
-// Copyright (c) 2019 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.
-//
-#ifndef __TCT_COMPONENT_BASED_APPLICATION_NATIVE_H__
-#define __TCT_COMPONENT_BASED_APPLICATION_NATIVE_H__
-
-#include "testcase.h"
-#include "tct_common.h"
-
-extern void utc_component_based_application_startup(void);
-extern void utc_component_based_application_cleanup(void);
-
-extern int utc_component_based_app_main_p(void);
-extern int utc_component_based_app_main_n(void);
-extern int utc_component_based_app_add_frame_component_p(void);
-extern int utc_component_based_app_add_frame_component_n(void);
-extern int utc_component_based_app_add_service_component_p(void);
-extern int utc_component_based_app_add_service_component_n(void);
-extern int utc_frame_component_get_display_status_p(void);
-extern int utc_frame_component_get_display_status_n(void);
-extern int utc_frame_component_get_window_p(void);
-extern int utc_frame_component_get_window_n(void);
-extern int utc_component_register_action_p(void);
-extern int utc_component_register_action_n(void);
-extern int utc_component_deregister_action_p(void);
-extern int utc_component_deregister_action_n(void);
-extern int utc_component_send_launch_request_sync_p(void);
-extern int utc_component_send_launch_request_sync_n(void);
-extern int utc_component_send_launch_request_async_p(void);
-extern int utc_component_send_launch_request_async_n(void);
-extern int utc_component_based_app_exit_p(void);
-extern int utc_component_finish_p(void);
-extern int utc_component_finish_n(void);
-
-testcase tc_array[] = {
-    {"utc_component_based_app_main_p", utc_component_based_app_main_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_based_app_main_n", utc_component_based_app_main_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_based_app_add_frame_component_p", utc_component_based_app_add_frame_component_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_based_app_add_frame_component_n", utc_component_based_app_add_frame_component_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_based_app_add_service_component_p", utc_component_based_app_add_service_component_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_based_app_add_service_component_n", utc_component_based_app_add_service_component_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_frame_component_get_display_status_p", utc_frame_component_get_display_status_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_frame_component_get_display_status_n", utc_frame_component_get_display_status_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_frame_component_get_window_p", utc_frame_component_get_window_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_frame_component_get_window_n", utc_frame_component_get_window_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_register_action_p", utc_component_register_action_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_register_action_n", utc_component_register_action_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_deregister_action_p", utc_component_deregister_action_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_deregister_action_n", utc_component_deregister_action_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_send_launch_request_sync_p", utc_component_send_launch_request_sync_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-       {"utc_component_send_launch_request_sync_n", utc_component_send_launch_request_sync_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-       {"utc_component_send_launch_request_async_p", utc_component_send_launch_request_async_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-       {"utc_component_send_launch_request_async_n", utc_component_send_launch_request_async_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_based_app_exit_p", utc_component_based_app_exit_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_finish_p", utc_component_finish_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_finish_n", utc_component_finish_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-       {NULL, NULL}
-};
-
-#endif // __TCT_COMPONENT_BASED_APPLICATION_NATIVE_H__
diff --git a/src/utc/component-based-application/tct-component-based-application-core_tv.h b/src/utc/component-based-application/tct-component-based-application-core_tv.h
deleted file mode 100644 (file)
index 15d3eee..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-//
-// Copyright (c) 2019 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.
-//
-#ifndef __TCT_COMPONENT_BASED_APPLICATION_NATIVE_H__
-#define __TCT_COMPONENT_BASED_APPLICATION_NATIVE_H__
-
-#include "testcase.h"
-#include "tct_common.h"
-
-extern void utc_component_based_application_startup(void);
-extern void utc_component_based_application_cleanup(void);
-
-extern int utc_component_based_app_main_p(void);
-extern int utc_component_based_app_main_n(void);
-extern int utc_component_based_app_add_frame_component_p(void);
-extern int utc_component_based_app_add_frame_component_n(void);
-extern int utc_component_based_app_add_service_component_p(void);
-extern int utc_component_based_app_add_service_component_n(void);
-extern int utc_frame_component_get_display_status_p(void);
-extern int utc_frame_component_get_display_status_n(void);
-extern int utc_frame_component_get_window_p(void);
-extern int utc_frame_component_get_window_n(void);
-extern int utc_component_register_action_p(void);
-extern int utc_component_register_action_n(void);
-extern int utc_component_deregister_action_p(void);
-extern int utc_component_deregister_action_n(void);
-extern int utc_component_send_launch_request_sync_p(void);
-extern int utc_component_send_launch_request_sync_n(void);
-extern int utc_component_send_launch_request_async_p(void);
-extern int utc_component_send_launch_request_async_n(void);
-extern int utc_component_based_app_exit_p(void);
-extern int utc_component_finish_p(void);
-extern int utc_component_finish_n(void);
-
-testcase tc_array[] = {
-    {"utc_component_based_app_main_p", utc_component_based_app_main_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_based_app_main_n", utc_component_based_app_main_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_based_app_add_frame_component_p", utc_component_based_app_add_frame_component_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_based_app_add_frame_component_n", utc_component_based_app_add_frame_component_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_based_app_add_service_component_p", utc_component_based_app_add_service_component_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_based_app_add_service_component_n", utc_component_based_app_add_service_component_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_frame_component_get_display_status_p", utc_frame_component_get_display_status_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_frame_component_get_display_status_n", utc_frame_component_get_display_status_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_frame_component_get_window_p", utc_frame_component_get_window_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_frame_component_get_window_n", utc_frame_component_get_window_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_register_action_p", utc_component_register_action_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_register_action_n", utc_component_register_action_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_deregister_action_p", utc_component_deregister_action_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_deregister_action_n", utc_component_deregister_action_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_send_launch_request_sync_p", utc_component_send_launch_request_sync_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-       {"utc_component_send_launch_request_sync_n", utc_component_send_launch_request_sync_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-       {"utc_component_send_launch_request_async_p", utc_component_send_launch_request_async_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-       {"utc_component_send_launch_request_async_n", utc_component_send_launch_request_async_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_based_app_exit_p", utc_component_based_app_exit_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_finish_p", utc_component_finish_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_finish_n", utc_component_finish_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-       {NULL, NULL}
-};
-
-#endif // __TCT_COMPONENT_BASED_APPLICATION_NATIVE_H__
diff --git a/src/utc/component-based-application/tct-component-based-application-core_wearable.h b/src/utc/component-based-application/tct-component-based-application-core_wearable.h
deleted file mode 100644 (file)
index 15d3eee..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-//
-// Copyright (c) 2019 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.
-//
-#ifndef __TCT_COMPONENT_BASED_APPLICATION_NATIVE_H__
-#define __TCT_COMPONENT_BASED_APPLICATION_NATIVE_H__
-
-#include "testcase.h"
-#include "tct_common.h"
-
-extern void utc_component_based_application_startup(void);
-extern void utc_component_based_application_cleanup(void);
-
-extern int utc_component_based_app_main_p(void);
-extern int utc_component_based_app_main_n(void);
-extern int utc_component_based_app_add_frame_component_p(void);
-extern int utc_component_based_app_add_frame_component_n(void);
-extern int utc_component_based_app_add_service_component_p(void);
-extern int utc_component_based_app_add_service_component_n(void);
-extern int utc_frame_component_get_display_status_p(void);
-extern int utc_frame_component_get_display_status_n(void);
-extern int utc_frame_component_get_window_p(void);
-extern int utc_frame_component_get_window_n(void);
-extern int utc_component_register_action_p(void);
-extern int utc_component_register_action_n(void);
-extern int utc_component_deregister_action_p(void);
-extern int utc_component_deregister_action_n(void);
-extern int utc_component_send_launch_request_sync_p(void);
-extern int utc_component_send_launch_request_sync_n(void);
-extern int utc_component_send_launch_request_async_p(void);
-extern int utc_component_send_launch_request_async_n(void);
-extern int utc_component_based_app_exit_p(void);
-extern int utc_component_finish_p(void);
-extern int utc_component_finish_n(void);
-
-testcase tc_array[] = {
-    {"utc_component_based_app_main_p", utc_component_based_app_main_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_based_app_main_n", utc_component_based_app_main_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_based_app_add_frame_component_p", utc_component_based_app_add_frame_component_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_based_app_add_frame_component_n", utc_component_based_app_add_frame_component_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_based_app_add_service_component_p", utc_component_based_app_add_service_component_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_based_app_add_service_component_n", utc_component_based_app_add_service_component_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_frame_component_get_display_status_p", utc_frame_component_get_display_status_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_frame_component_get_display_status_n", utc_frame_component_get_display_status_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_frame_component_get_window_p", utc_frame_component_get_window_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_frame_component_get_window_n", utc_frame_component_get_window_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_register_action_p", utc_component_register_action_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_register_action_n", utc_component_register_action_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_deregister_action_p", utc_component_deregister_action_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_deregister_action_n", utc_component_deregister_action_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_send_launch_request_sync_p", utc_component_send_launch_request_sync_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-       {"utc_component_send_launch_request_sync_n", utc_component_send_launch_request_sync_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-       {"utc_component_send_launch_request_async_p", utc_component_send_launch_request_async_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-       {"utc_component_send_launch_request_async_n", utc_component_send_launch_request_async_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_based_app_exit_p", utc_component_based_app_exit_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_finish_p", utc_component_finish_p, utc_component_based_application_startup, utc_component_based_application_cleanup},
-    {"utc_component_finish_n", utc_component_finish_n, utc_component_based_application_startup, utc_component_based_application_cleanup},
-       {NULL, NULL}
-};
-
-#endif // __TCT_COMPONENT_BASED_APPLICATION_NATIVE_H__
diff --git a/src/utc/component-based-application/utc-component-based-app.c b/src/utc/component-based-application/utc-component-based-app.c
deleted file mode 100644 (file)
index 06e49b3..0000000
+++ /dev/null
@@ -1,621 +0,0 @@
-//
-// Copyright (c) 2019 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 <component_based_app.h>
-#include <component_manager.h>
-#include <app_control.h>
-#include <system_info.h>
-#include <dlog.h>
-#include <message_port.h>
-
-#include "assert.h"
-#include "assert_common.h"
-
-#define TIZEN_FEATURE_SCREEN   "http://tizen.org/feature/screen"
-
-static const char *g_app_id = "org.example.componentbased";
-static const char *g_frame_comp_id = "frame_comp_test";
-static const char *g_service_comp_id = "service_comp_test";
-static const char *g_extra_key = "component_utc_func";
-static int g_local_port_id;
-static const char *g_utc_name;
-
-static void __message_cb(int local_port_id, const char *remote_app_id,
-               const char *remote_port, bool trusted_remote_port,
-               bundle *message, void *user_data) {
-       char *extra = NULL;
-       char *result = NULL;
-
-       dlog_print(DLOG_INFO, LOG_TAG, "remote_app_id(%s), remote_port(%s)",
-                       remote_app_id, remote_port);
-
-       bundle_get_str(message, g_extra_key, &extra);
-       if (!extra)
-               return;
-
-       if (g_utc_name && !strcmp(extra, g_utc_name)) {
-               bundle_get_str(message, "result", &result);
-               if (result && !strcmp(result, "success"))
-                       normal_exit(0);
-               else
-                       normal_exit(1);
-       }
-}
-
-void utc_component_based_application_startup(void)
-{
-       char* app_id;
-
-       if (g_local_port_id == 0) {
-               app_get_id(&app_id);
-               g_local_port_id = message_port_register_local_port("NativeTCT",
-                               __message_cb, NULL);
-       }
-}
-
-void utc_component_based_application_cleanup(void)
-{
-}
-
-static int __app_control_send(const char *app_id, const char *component_id,
-                               const char *extra_data)
-{
-       app_control_h handle = NULL;
-       app_control_h reply;
-       app_control_result_e result = APP_CONTROL_RESULT_FAILED;
-       int ret;
-
-       ret = app_control_create(&handle);
-       if (ret != APP_CONTROL_ERROR_NONE) {
-               dlog_print(DLOG_ERROR, LOG_TAG, "Failed to create app control");
-               return -1;
-       }
-
-       ret = app_control_set_app_id(handle, app_id);
-       if (ret != APP_CONTROL_ERROR_NONE) {
-               dlog_print(DLOG_ERROR, LOG_TAG, "Failed to set application ID");
-               goto end;
-       }
-
-       if (component_id) {
-               ret = app_control_set_component_id(handle, component_id);
-               if (ret != APP_CONTROL_ERROR_NONE) {
-                       dlog_print(DLOG_ERROR, LOG_TAG,
-                                       "Failed to set component ID");
-                       goto end;
-               }
-       }
-
-       if (extra_data) {
-               ret = app_control_add_extra_data(handle, g_extra_key, extra_data);
-               if (ret != APP_CONTROL_ERROR_NONE) {
-                       dlog_print(DLOG_ERROR, LOG_TAG,
-                                       "Failed to add extra data");
-                       goto end;
-               }
-       }
-
-       ret = app_control_send_launch_request_sync(handle,
-                       &reply, &result);
-       if (ret != APP_CONTROL_ERROR_NONE) {
-               dlog_print(DLOG_ERROR, LOG_TAG,
-                               "Failed to send launch request async");
-       }
-
-end:
-       if (handle)
-               app_control_destroy(handle);
-
-       return result;
-}
-
-static void result_cb(app_control_h h, app_control_error_e result, void *user_data)
-{
-       dlog_print(DLOG_INFO, LOG_TAG, "reult_cb result[%d]", result);
-}
-
-static void reply_cb(app_control_h req,
-               app_control_h reply, app_control_error_e result, void *user_data)
-{
-       dlog_print(DLOG_INFO, LOG_TAG, "reply_cb result[%d]", result);
-
-       if (result == APP_CONTROL_RESULT_SUCCEEDED)
-               normal_exit(0);
-       else
-               normal_exit(1);
-}
-
-static int __app_control_send_async(const char *app_id, const char *component_id,
-                               const char *extra_data)
-{
-       app_control_h handle = NULL;
-       int ret;
-
-               dlog_print(DLOG_ERROR, LOG_TAG, " app control async");
-       ret = app_control_create(&handle);
-       if (ret != APP_CONTROL_ERROR_NONE) {
-               dlog_print(DLOG_ERROR, LOG_TAG, "Failed to create app control");
-               return -1;
-       }
-
-       ret = app_control_set_app_id(handle, app_id);
-       if (ret != APP_CONTROL_ERROR_NONE) {
-               dlog_print(DLOG_ERROR, LOG_TAG, "Failed to set application ID");
-               goto end;
-       }
-
-       if (component_id) {
-               ret = app_control_set_component_id(handle, component_id);
-               if (ret != APP_CONTROL_ERROR_NONE) {
-                       dlog_print(DLOG_ERROR, LOG_TAG,
-                                       "Failed to set component ID");
-                       goto end;
-               }
-       }
-
-       ret = app_control_add_extra_data(handle, g_extra_key, extra_data);
-       if (ret != APP_CONTROL_ERROR_NONE) {
-               dlog_print(DLOG_ERROR, LOG_TAG,
-                               "Failed to add extra data");
-               goto end;
-       }
-
-       ret = app_control_send_launch_request_async(handle,
-                       result_cb, reply_cb, NULL);
-       if (ret != APP_CONTROL_ERROR_NONE) {
-               dlog_print(DLOG_ERROR, LOG_TAG,
-                               "Failed to send launch request async");
-       }
-
-end:
-       if (handle)
-               app_control_destroy(handle);
-
-       return ret;
-}
-
-static Evas_Object* __frame_component_create_cb(
-               component_h context,
-               void *user_data)
-{
-       return NULL;
-}
-
-static void __frame_component_start_cb(
-               component_h context,
-               app_control_h app_control,
-               bool restarted,
-               void *user_data)
-{
-}
-
-static void __frame_component_resume_cb(
-               component_h context,
-               void *user_data)
-{
-}
-
-static void __frame_component_pause_cb(
-               component_h context,
-               void *user_data)
-{
-}
-
-static void __frame_component_stop_cb(
-               component_h context,
-               void *user_data)
-{
-}
-
-static void __frame_component_destroy_cb(
-               component_h context,
-               void *user_data)
-{
-}
-
-static void __frame_component_restore_content_cb(
-               component_h context,
-               bundle *content,
-               void *user_data)
-{
-}
-
-static void __frame_component_save_content_cb(
-               component_h context,
-               bundle *content,
-               void *user_data)
-{
-}
-
-static void __frame_component_action_cb(component_h context,
-               const char *action, app_control_h app_control,
-               void *user_data)
-{
-}
-
-static void __frame_component_device_orientation_changed_cb(
-               component_h context,
-               component_device_orientation_e orientation,
-               void *user_data)
-{
-}
-
-static void __frame_component_language_changed_cb(
-               component_h context,
-               const char *language,
-               void *user_data)
-{
-}
-
-static void __frame_component_region_format_changed_cb(
-               component_h context,
-               const char *region,
-               void *user_data)
-{
-}
-
-static void __frame_component_low_battery_cb(
-               component_h context,
-               component_low_battery_status_e status,
-               void *user_data)
-{
-}
-
-static void __frame_component_low_memory_cb(
-               component_h context,
-               component_low_memory_status_e status,
-               void *user_data)
-{
-}
-
-static void __frame_component_suspended_state_changed_cb(
-               component_h context,
-               component_suspended_state_e state,
-               void *user_data)
-{
-}
-
-static bool __service_component_create_cb(
-               component_h context,
-               void *user_data)
-{
-       return false;
-}
-
-static void __service_component_start_command_cb(
-               component_h context,
-               app_control_h app_control,
-               bool restarted,
-               void *user_data)
-{
-}
-
-static void __service_component_destroy_cb(
-               component_h context,
-               void *user_data)
-{
-}
-
-static void __service_component_save_content_cb(
-               component_h context,
-               bundle *content,
-               void *user_data)
-{
-}
-
-static void __service_component_action_cb(component_h context,
-               const char *action, app_control_h app_control,
-               void *user_data)
-{
-}
-
-static void __service_component_device_orientation_changed_cb(
-               component_h context,
-               component_device_orientation_e orientation,
-               void *user_data)
-{
-}
-
-static void __service_component_language_changed_cb(
-               component_h context,
-               const char *language,
-               void *user_data)
-{
-}
-
-static void __service_component_region_format_changed_cb(
-               component_h context,
-               const char *region,
-               void *user_data)
-{
-}
-
-static void __service_component_low_battery_cb(
-               component_h context,
-               component_low_battery_status_e status,
-               void *user_data)
-{
-}
-
-static void __service_component_low_memory_cb(
-               component_h context,
-               component_low_memory_status_e status,
-               void *user_data)
-{
-}
-
-static void __service_component_suspended_state_changed_cb(
-               component_h context,
-               component_suspended_state_e state,
-               void *user_data)
-{
-}
-
-/**
- * @testcase           utc_component_based_app_main_p
- * @since_tizen                5.5
- * @description                Run component based application with arguments.
- */
-int utc_component_based_app_main_p(void)
-{
-       int ret;
-
-       ret =  __app_control_send(g_app_id, g_service_comp_id,
-                       "utc_component_based_app_main");
-       assert_eq_with_exit(ret, APP_CONTROL_RESULT_SUCCEEDED);
-
-       normal_exit(0);
-       return 0;
-}
-
-/**
- * @testcase           utc_component_based_app_main_n
- * @since_tizen                5.5
- * @description                Run component based application with invalid parameter.
- */
-int utc_component_based_app_main_n(void)
-{
-       int ret;
-
-       ret = component_based_app_main(0, NULL, NULL, NULL);
-       assert_eq_without_exit(ret, APP_ERROR_INVALID_PARAMETER);
-
-       normal_exit(0);
-       return 0;
-}
-
-/**
- * @testcase           utc_component_based_app_add_frame_component_p
- * @since_tizen                5.5
- * @description                Adds frame component to component based application with arguments.
- */
-int utc_component_based_app_add_frame_component_p(void)
-{
-       component_class_h comp = NULL;
-       const char *comp_id = "frame_comp_test";
-
-       frame_component_lifecycle_callback_s cb = {
-               .create = __frame_component_create_cb,
-               .start = __frame_component_start_cb,
-               .resume = __frame_component_resume_cb,
-               .pause = __frame_component_pause_cb,
-               .stop = __frame_component_stop_cb,
-               .destroy = __frame_component_destroy_cb,
-               .restore_content = __frame_component_restore_content_cb,
-               .save_content = __frame_component_save_content_cb,
-               .action = __frame_component_action_cb,
-               .device_orientation_changed = __frame_component_device_orientation_changed_cb,
-               .language_changed = __frame_component_language_changed_cb,
-               .region_format_changed = __frame_component_region_format_changed_cb,
-               .low_battery = __frame_component_low_battery_cb,
-               .low_memory = __frame_component_low_memory_cb,
-               .suspended_state_changed = __frame_component_suspended_state_changed_cb
-       };
-
-       comp = component_based_app_add_frame_component(comp, comp_id, &cb, NULL);
-       assert_with_exit(comp != NULL);
-       assert_with_exit(get_last_result() == APP_ERROR_NONE);
-
-       normal_exit(0);
-       return 0;
-}
-
-/**
- * @testcase           utc_component_based_app_add_frame_component_n
- * @since_tizen                5.5
- * @description                Adds frame component to component based application with invalid parameter.
- */
-int utc_component_based_app_add_frame_component_n(void)
-{
-       component_class_h comp = NULL;
-       const char *comp_id = "frame_comp_test";
-
-       comp = component_based_app_add_frame_component(comp, comp_id, NULL, NULL);
-       assert_with_exit(get_last_result() == APP_ERROR_INVALID_PARAMETER);
-
-       normal_exit(0);
-       return 0;
-}
-
-/**
- * @testcase           utc_component_based_app_add_service_component_p
- * @since_tizen                5.5
- * @description                Adds service component to component based application with arguments.
- */
-int utc_component_based_app_add_service_component_p(void)
-{
-       component_class_h comp = NULL;
-       const char *comp_id = "service_comp_test";
-
-       service_component_lifecycle_callback_s cb = {
-               .create = __service_component_create_cb,
-               .start_command = __service_component_start_command_cb,
-               .destroy = __service_component_destroy_cb,
-               .save_content = __service_component_save_content_cb,
-               .action = __service_component_action_cb,
-               .device_orientation_changed = __service_component_device_orientation_changed_cb,
-               .language_changed = __service_component_language_changed_cb,
-               .region_format_changed = __service_component_region_format_changed_cb,
-               .low_battery = __service_component_low_battery_cb,
-               .low_memory = __service_component_low_memory_cb,
-               .suspended_state_changed = __service_component_suspended_state_changed_cb
-       };
-
-       comp = component_based_app_add_service_component(comp, comp_id, &cb, NULL);
-       assert_with_exit(comp != NULL);
-       assert_with_exit(get_last_result() == APP_ERROR_NONE);
-
-       normal_exit(0);
-       return 0;
-}
-
-/**
- * @testcase           utc_component_based_app_add_service_component_n
- * @since_tizen                5.5
- * @description                Adds service component to component based application with invalid parameter.
- */
-int utc_component_based_app_add_service_component_n(void)
-{
-       component_class_h comp = NULL;
-       const char *comp_id = "service_comp_test";
-
-       comp = component_based_app_add_service_component(comp, comp_id, NULL, NULL);
-       assert_with_exit(get_last_result() == APP_ERROR_INVALID_PARAMETER);
-
-       normal_exit(0);
-       return 0;
-}
-
-
-/**
- * @testcase           utc_frame_component_get_display_status_p
- * @since_tizen                5.5
- * @description                Gets the display status of frame component.
- */
-int utc_frame_component_get_display_status_p(void)
-{
-       int ret;
-       bool is_screen = false;
-
-       /* For IOT headless */
-       system_info_get_platform_bool(TIZEN_FEATURE_SCREEN, &is_screen);
-       dlog_print(DLOG_INFO, "NativeTCT", "%d", is_screen);
-       if (!is_screen) {
-               normal_exit(0);
-               return 0;
-    }
-
-       ret =  __app_control_send_async(g_app_id, g_frame_comp_id,
-                       "utc_frame_component_get_display_status");
-       assert_eq_with_exit(ret, APP_CONTROL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_frame_component_get_display_status_n
- * @since_tizen                5.5
- * @description                Gets the display status of frame component with invalid parameter.
- */
-int utc_frame_component_get_display_status_n(void)
-{
-       int ret;
-       component_display_status_e display;
-
-       ret =  frame_component_get_display_status(NULL, &display);
-       assert_eq_with_exit(ret, COMPONENT_ERROR_INVALID_PARAMETER);
-
-       normal_exit(0);
-       return 0;
-}
-
-/**
- * @testcase           utc_frame_component_get_window_p
- * @since_tizen                5.5
- * @description                Gets the window of frame component.
- */
-int utc_frame_component_get_window_p(void)
-{
-       int ret;
-       bool is_screen = false;
-       bundle *message;
-
-       /* For IOT headless */
-       system_info_get_platform_bool(TIZEN_FEATURE_SCREEN, &is_screen);
-       dlog_print(DLOG_INFO, "NativeTCT", "%d", is_screen);
-       if (!is_screen) {
-               normal_exit(0);
-               return 0;
-       }
-
-       __app_control_send_async(g_app_id, g_frame_comp_id,
-                       "utc_frame_component_get_window");
-
-       message = bundle_create();
-       g_utc_name = "utc_frame_component_get_window";
-       bundle_add_str(message, g_extra_key, g_utc_name);
-       ret = message_port_send_message(g_app_id, g_frame_comp_id, message);
-       bundle_free(message);
-       assert_eq_with_exit(ret, MESSAGE_PORT_ERROR_NONE);
-       return 0;
-}
-
-/**
- * @testcase           utc_frame_component_get_window_n
- * @since_tizen                5.5
- * @description                Gets the window of frame component with invalid parameter.
- */
-int utc_frame_component_get_window_n(void)
-{
-       int ret;
-       Evas_Object     *window;
-
-       ret =  frame_component_get_window(NULL, &window);
-       assert_eq_with_exit(ret, COMPONENT_ERROR_INVALID_PARAMETER);
-
-       normal_exit(0);
-       return 0;
-}
-
-/**
- * @testcase           utc_component_based_app_exit_p
- * @since_tizen                5.5
- * @description                Exit component based application.
- */
-int utc_component_based_app_exit_p(void)
-{
-       int ret;
-       bool running = true;
-       int retry_count = 0;
-
-       ret =  __app_control_send_async(g_app_id, g_service_comp_id,
-                       "utc_component_based_app_exit");
-       assert_eq_with_exit(ret, APP_CONTROL_ERROR_NONE);
-
-        do {
-               component_manager_is_running(g_service_comp_id, &running);
-                if (!running)
-                       break;
-
-                usleep(500000);
-                retry_count++;
-        } while (retry_count <= 10);
-
-       assert_eq_with_exit(running, false);
-
-       normal_exit(0);
-       return 0;
-}
diff --git a/src/utc/component-based-application/utc-component-common.c b/src/utc/component-based-application/utc-component-common.c
deleted file mode 100644 (file)
index 9ea47e7..0000000
+++ /dev/null
@@ -1,313 +0,0 @@
-//
-// Copyright (c) 2019 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 <component_based_app.h>
-#include <component_common.h>
-#include <component_manager.h>
-#include <app_control.h>
-
-#include "assert.h"
-#include "assert_common.h"
-
-
-static const char *g_app_id = "org.example.componentbased";
-static const char *g_service_comp_id = "service_comp_test";
-static const char *g_extra_key = "component_utc_func";
-
-static int __app_control_send(const char *app_id, const char *component_id,
-                               const char *extra_data)
-{
-       app_control_h handle = NULL;
-       app_control_h reply;
-       app_control_result_e result = APP_CONTROL_RESULT_FAILED;
-       int ret;
-
-       ret = app_control_create(&handle);
-       if (ret != APP_CONTROL_ERROR_NONE) {
-               dlog_print(DLOG_ERROR, LOG_TAG, "Failed to create app control");
-               return -1;
-       }
-
-       ret = app_control_set_app_id(handle, app_id);
-       if (ret != APP_CONTROL_ERROR_NONE) {
-               dlog_print(DLOG_ERROR, LOG_TAG, "Failed to set application ID");
-               goto end;
-       }
-
-       if (component_id) {
-               ret = app_control_set_component_id(handle, component_id);
-               if (ret != APP_CONTROL_ERROR_NONE) {
-                       dlog_print(DLOG_ERROR, LOG_TAG,
-                                       "Failed to set component ID");
-                       goto end;
-               }
-       }
-
-       ret = app_control_add_extra_data(handle, g_extra_key, extra_data);
-       if (ret != APP_CONTROL_ERROR_NONE) {
-               dlog_print(DLOG_ERROR, LOG_TAG,
-                               "Failed to add extra data");
-               goto end;
-       }
-
-       ret = app_control_send_launch_request_sync(handle,
-                       &reply, &result);
-       if (ret != APP_CONTROL_ERROR_NONE) {
-               dlog_print(DLOG_ERROR, LOG_TAG,
-                               "Failed to send launch request sync");
-       }
-
-end:
-       if (handle)
-               app_control_destroy(handle);
-
-       return result;
-}
-
-/**
- * @testcase           utc_component_get_id_p
- * @since_tizen                5.5
- * @description                Get component id.
- */
-int utc_component_get_id_p(void)
-{
-       int ret;
-
-       ret =  __app_control_send(g_app_id, g_service_comp_id,
-                       "utc_component_get_id");
-       assert_eq_with_exit(ret, APP_CONTROL_RESULT_SUCCEEDED);
-
-       normal_exit(0);
-       return 0;
-}
-
-/**
- * @testcase           utc_component_get_id_n
- * @since_tizen                5.5
- * @description                Get component id with invalid parameter.
- */
-int utc_component_get_id_n(void)
-{
-       int ret;
-       char *id;
-
-       ret =  component_get_id(NULL, &id);
-       assert_eq_with_exit(ret, COMPONENT_ERROR_INVALID_PARAMETER);
-
-       normal_exit(0);
-       return 0;
-}
-
-/**
- * @testcase           utc_component_get_instance_id_p
- * @since_tizen                5.5
- * @description                Get component instance id.
- */
-int utc_component_get_instance_id_p(void)
-{
-       int ret;
-
-       ret =  __app_control_send(g_app_id, g_service_comp_id,
-                       "utc_component_get_instance_id");
-       assert_eq_with_exit(ret, APP_CONTROL_RESULT_SUCCEEDED);
-
-       normal_exit(0);
-       return 0;
-}
-
-/**
- * @testcase           utc_component_get_instance_id_n
- * @since_tizen                5.5
- * @description                Get component instance id with invalid parameter.
- */
-int utc_component_get_instance_id_n(void)
-{
-       int ret;
-       char *id;
-
-       ret =  component_get_instance_id(NULL, &id);
-       assert_eq_with_exit(ret, COMPONENT_ERROR_INVALID_PARAMETER);
-
-       normal_exit(0);
-       return 0;
-}
-
-/**
- * @testcase           utc_component_register_action_p
- * @since_tizen                5.5
- * @description                Register appcontrol action.
- */
-int utc_component_register_action_p(void)
-{
-       int ret;
-
-       ret =  __app_control_send(g_app_id, g_service_comp_id,
-                       "utc_component_register_action");
-       assert_eq_with_exit(ret, APP_CONTROL_RESULT_SUCCEEDED);
-
-       normal_exit(0);
-       return 0;
-}
-
-/**
- * @testcase           utc_component_register_action_n
- * @since_tizen                5.5
- * @description                Register appcontrol action with invalid parameter.
- */
-int utc_component_register_action_n(void)
-{
-       int ret;
-       const char *action = "action";
-
-       ret =  component_register_action(NULL, action);
-       assert_eq_with_exit(ret, COMPONENT_ERROR_INVALID_PARAMETER);
-
-       normal_exit(0);
-       return 0;
-}
-
-/**
- * @testcase           utc_component_deregister_action_p
- * @since_tizen                5.5
- * @description                Deregister appcontrol action.
- */
-int utc_component_deregister_action_p(void)
-{
-       int ret;
-
-       ret =  __app_control_send(g_app_id, g_service_comp_id,
-                       "utc_component_deregister_action");
-       assert_eq_with_exit(ret, APP_CONTROL_RESULT_SUCCEEDED);
-
-       normal_exit(0);
-       return 0;
-}
-
-/**
- * @testcase           utc_component_deregister_action_n
- * @since_tizen                5.5
- * @description                Deregister appcontrol action with invalid parameter.
- */
-int utc_component_deregister_action_n(void)
-{
-       int ret;
-       const char *action = "action";
-
-       ret =  component_deregister_action(NULL, action);
-       assert_eq_with_exit(ret, COMPONENT_ERROR_INVALID_PARAMETER);
-
-       normal_exit(0);
-       return 0;
-}
-
-/**
- * @testcase           utc_component_send_launch_request_sync_p
- * @since_tizen                5.5
- * @description                Sends the launch request synchronously.
- */
-int utc_component_send_launch_request_sync_p(void)
-{
-       int ret;
-
-       ret =  __app_control_send(g_app_id, g_service_comp_id,
-                       "utc_component_launch_sync");
-       assert_eq_with_exit(ret, APP_CONTROL_RESULT_SUCCEEDED);
-
-       normal_exit(0);
-       return 0;
-}
-
-/**
- * @testcase           utc_component_send_launch_request_sync_n
- * @since_tizen                5.5
- * @description                Sends the launch request synchronously with invalid parameter.
- */
-int utc_component_send_launch_request_sync_n(void)
-{
-       int ret;
-
-       ret = component_send_launch_request_sync(NULL, NULL, NULL, NULL);
-       assert_eq_with_exit(ret, COMPONENT_ERROR_INVALID_PARAMETER);
-
-       normal_exit(0);
-       return 0;
-}
-
-/**
- * @testcase           utc_component_send_launch_request_async_p
- * @since_tizen                5.5
- * @description                Sends the launch request asynchronously.
- */
-int utc_component_send_launch_request_async_p(void)
-{
-       int ret;
-
-       ret =  __app_control_send(g_app_id, g_service_comp_id,
-                       "utc_component_launch_async");
-       assert_eq_with_exit(ret, APP_CONTROL_RESULT_SUCCEEDED);
-
-       normal_exit(0);
-       return 0;
-}
-
-/**
- * @testcase           utc_component_send_launch_request_async_n
- * @since_tizen                5.5
- * @description                Sends the launch request asynchronously with invalid parameter.
- */
-int utc_component_send_launch_request_async_n(void)
-{
-       int ret;
-
-       ret =  component_send_launch_request_async(NULL, NULL, NULL, NULL, NULL);
-       assert_eq_with_exit(ret, COMPONENT_ERROR_INVALID_PARAMETER);
-
-       normal_exit(0);
-       return 0;
-}
-
-/**
- * @testcase           utc_component_finish_p
- * @since_tizen                5.5
- * @description                Finishes the component instance.
- */
-int utc_component_finish_p(void)
-{
-       int ret;
-
-       ret =  __app_control_send(g_app_id, g_service_comp_id,
-                       "utc_component_finish");
-       assert_eq_with_exit(ret, APP_CONTROL_RESULT_SUCCEEDED);
-
-       normal_exit(0);
-       return 0;
-}
-
-/**
- * @testcase           utc_component_finish_n
- * @since_tizen                5.5
- * @description                Finishes the component instance with invalid parameter.
- */
-int utc_component_finish_n(void)
-{
-       int ret;
-
-       ret =  component_finish(NULL);
-       assert_eq_with_exit(ret, COMPONENT_ERROR_INVALID_PARAMETER);
-
-       normal_exit(0);
-       return 0;
-}