+++ /dev/null
-%define MODULE_NAME shortcut
-%define MODULE_LIBNAME shortcut
-Name: native-%{MODULE_NAME}-itc
-Summary: Native API Integration TC (%{name})
-Version: 0.1
-Release: 0
-Group: Development/Tools
-License: Apache-2.0
-Source0: %{name}-%{version}.tar.gz
-BuildRequires: pkgconfig(%{MODULE_LIBNAME})
-BuildRequires: pkgconfig(capi-appfw-application)
-BuildRequires: pkgconfig(glib-2.0)
-BuildRequires: cmake
-BuildRequires: pkgconfig(bundle)
-BuildRequires: pkgconfig(capi-system-info)
-BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(db-util)
-BuildRequires: pkgconfig(sqlite3)
-BuildRequires: pkgconfig(libxml-2.0)
-BuildRequires: pkgconfig(vconf)
-BuildRequires: pkgconfig(capi-base-common)
-BuildRequires: pkgconfig(aul)
-BuildRequires: pkgconfig(elementary)
-BuildRequires: pkgconfig(capi-appfw-app-manager)
-
-%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="itc" -DDEVICE_BUILD_TYPE="mobile" -DASANBUILD="true" -DCMAKE_INSTALL_PREFIX=%{_prefix}
- %endif
- %if %{?DEVICE_BUILD_TYPE_WEARABLE:1}0
- cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="itc" -DDEVICE_BUILD_TYPE="wearable" -DASANBUILD="true" -DCMAKE_INSTALL_PREFIX=%{_prefix}
- %endif
- %if %{?DEVICE_BUILD_TYPE_TV:1}0
- cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="itc" -DDEVICE_BUILD_TYPE="tv" -DASANBUILD="true" -DCMAKE_INSTALL_PREFIX=%{_prefix}
- %endif
- %if %{?DEVICE_BUILD_TYPE_TIZENIOT:1}0
- cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="itc" -DDEVICE_BUILD_TYPE="tizeniot" -DASANBUILD="true" -DCMAKE_INSTALL_PREFIX=%{_prefix}
- %endif
-%else
- %if %{?DEVICE_BUILD_TYPE_MOBILE:1}0
- cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="itc" -DDEVICE_BUILD_TYPE="mobile" -DASANBUILD="false" -DCMAKE_INSTALL_PREFIX=%{_prefix}
- %endif
- %if %{?DEVICE_BUILD_TYPE_WEARABLE:1}0
- cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="itc" -DDEVICE_BUILD_TYPE="wearable" -DASANBUILD="false" -DCMAKE_INSTALL_PREFIX=%{_prefix}
- %endif
- %if %{?DEVICE_BUILD_TYPE_TV:1}0
- cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="itc" -DDEVICE_BUILD_TYPE="tv" -DASANBUILD="false" -DCMAKE_INSTALL_PREFIX=%{_prefix}
- %endif
- %if %{?DEVICE_BUILD_TYPE_TIZENIOT:1}0
- cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="itc" -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}%{APP_PATH}%{name}/bin
-mkdir -p %{buildroot}%{APP_PATH}%{name}/data
-
-%post
-chmod -R 777 %{APP_PATH}%{name}/data
-
-%postun
-pkgcmd -un org.tizen.shorcut_test &
-
-
-%files
-%{APP_PATH}%{name}/*
-/usr/share/packages/native-%{MODULE_NAME}-itc.xml
-/usr/share/license/%{name}
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" package="native-shortcut-itc" version="0.1.0" api-version="6.0">
- <label>NativeShortcutTest</label>
- <author email="mymail@tizentest.com" href="www.tizentest.com">test</author>
- <description>Native API test Application</description>
- <ui-application appid="native.shortcut-itc" exec="/usr/apps/native-shortcut-itc/bin/tct-shortcut-native" nodisplay="false" multiple="false" type="capp" taskmanage="true">
- <background-category value="background-network"/>
- <background-category value="download"/>
- <background-category value="iot-communication"/>
- <background-category value="location"/>
- <background-category value="media"/>
- <background-category value="sensor"/>
- </ui-application>
- <privileges>
- <privilege>http://tizen.org/privilege/shortcut</privilege>
- </privileges>
-</manifest>
chsmack -a "User::App::Shared" $APP_DATA_DIR/*
chsmack -e "User::App::Shared" $APP_DATA_DIR/*
;;
- "org.tizen.shortcut-native-itc")
- echo "Installing pre-requisites for the package $1"
- cp icon.png $DEVICE_SUITE_TARGET_30/icon.png
- chown -R 5000:5000 $DEVICE_SUITE_TARGET_30/icon.png
- chmod -R 777 $DEVICE_SUITE_TARGET_30/icon.png
- chsmack -a "User::App::Shared" $DEVICE_SUITE_TARGET_30/icon.png
- chsmack -e "User::App::Shared" $DEVICE_SUITE_TARGET_30/icon.png
- ;;
"org.tizen.service-adaptor-native-itc")
echo "Installing pre-requisites for the package $1"
cp Original.png $DEVICE_SUITE_TARGET_30/Original.png
+++ /dev/null
-SET(PKG_NAME "shortcut")
-
-SET(EXEC_NAME "tct-${PKG_NAME}-native")
-SET(RPM_NAME "native-${PKG_NAME}-itc")
-
-SET(CAPI_LIB "shortcut capi-appfw-application bundle glib-2.0 capi-system-info dlog db-util sqlite3 libxml-2.0 vconf capi-base-common aul ")
-SET(TC_SOURCES
- ITs-shortcut-common.c
- ITs-shortcut.c
-)
-
-PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED
- ${CAPI_LIB}
- capi-appfw-application
- bundle
- glib-2.0
- capi-system-info
- dlog
- db-util
- sqlite3
- libxml-2.0
- vconf
- capi-base-common
- aul
- dlog
- capi-appfw-app-manager
-)
-
-INCLUDE_DIRECTORIES(
- ${${CAPI_LIB}_INCLUDE_DIRS}
-)
-
-ADD_EXECUTABLE(${EXEC_NAME} ${EXEC_NAME}.c ${TC_SOURCES} ${COMMON_FILE} ${COMMON_APP_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()
+++ /dev/null
-//
-// 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 "ITs-shortcut-common.h"
-
-/** @addtogroup itc-shortcut
-* @ingroup itc
-* @{
-*/
-
-//Add helper function definitions here
-
-/**
- * @function ShortcutError
- * @description Maps error enums to string values
- * @parameter nRet : error code returned
- * @return error string
- */
-char* ShortcutError(int nRet)
-{
- char *szErrorVal = NULL;
-
- switch ( nRet )
- {
- case SHORTCUT_ERROR_NONE: szErrorVal = "SHORTCUT_ERROR_NONE"; break;
- case SHORTCUT_ERROR_NO_SPACE: szErrorVal = "SHORTCUT_ERROR_NO_SPACE"; break;
- case SHORTCUT_ERROR_EXIST: szErrorVal = "SHORTCUT_ERROR_EXIST"; break;
- case SHORTCUT_ERROR_FAULT: szErrorVal = "SHORTCUT_ERROR_FAULT"; break;
- case SHORTCUT_ERROR_NOT_SUPPORTED: szErrorVal = "SHORTCUT_ERROR_NOT_SUPPORTED"; break;
- case SHORTCUT_ERROR_RESOURCE_BUSY: szErrorVal = "SHORTCUT_ERROR_RESOURCE_BUSY"; break;
- case SHORTCUT_ERROR_INVALID_PARAMETER: szErrorVal = "SHORTCUT_ERROR_INVALID_PARAMETER"; break;
- case SHORTCUT_ERROR_COMM: szErrorVal = "SHORTCUT_ERROR_COMM"; break;
- case SHORTCUT_ERROR_OUT_OF_MEMORY: szErrorVal = "SHORTCUT_ERROR_OUT_OF_MEMORY"; break;
- case SHORTCUT_ERROR_IO_ERROR: szErrorVal = "SHORTCUT_ERROR_IO_ERROR"; break;
- case SHORTCUT_ERROR_PERMISSION_DENIED: szErrorVal = "SHORTCUT_ERROR_PERMISSION_DENIED"; break;
- default: szErrorVal = "Unknown Error"; break;
- }
-
- return szErrorVal;
-}
-/**
- * @function ShortcutTimeoutFunction
- * @description Called if some callback is not invoked for a particular timeout
- * @parameter gpointer data
- * @return gboolean
- */
-gboolean ShortcutTimeoutFunction(gpointer data)
-{
- GMainLoop *pMainLoop = NULL;
- pMainLoop = (GMainLoop *)data;
- if ( pMainLoop != NULL )
- {
- g_main_loop_quit(pMainLoop);
- }
- return false;
-}
-
-/** @} */
\ No newline at end of file
+++ /dev/null
-//
-// 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.
-//
-#ifndef _ITS_SHORTCUT_COMMON_H_
-#define _ITS_SHORTCUT_COMMON_H_
-
-//Add test package related includes here
-#include "tct_common.h"
-#include "tct_app_common.h"
-//#include <shortcut.h>
-#include <shortcut_manager.h>
-#include <stdio.h>
-#include <string.h>
-#include <pthread.h>
-#include <glib.h>
-#include <app.h>
-#include <Elementary.h>
-
-/** @addtogroup itc-shortcut
-* @ingroup itc
-* @{
-*/
-
-int g_nTimeoutId;
-GMainLoop *g_pShortcutMainLoop;
-bool g_bCallbackHit;
-bool g_bRequestCBCallbackHit;
-bool g_b2CallbackValueCheck;
-bool g_bCallbackHitRemoveCb;
-
-#define API_NAMESPACE "SHORTCUT_ITC"
-#define TEST_SHORTCUT_APPID "org.tizen.shortcut_test"
-#define TIMEOUT_CB 15000
-#define SHORTCUTPERIOD -1.0f
-#define DUPLICATEALLOWED 1
-#define PKGID "native.shortcut-itc"
-#define TESTSTRING "Test"
-#define SHORTCUT_FEATURE "http://tizen.org/feature/shortcut"
-
-#define START_TEST {\
- FPRINTF("[Line : %d][%s] Starting test : %s\\n", __LINE__, API_NAMESPACE, __FUNCTION__);\
-}
-
-#define RUN_POLLING_LOOP {\
- g_pShortcutMainLoop = g_main_loop_new(NULL, false);\
- g_nTimeoutId = g_timeout_add(TIMEOUT_CB, ShortcutTimeoutFunction, g_pShortcutMainLoop);\
- g_main_loop_run(g_pShortcutMainLoop);\
- g_source_remove(g_nTimeoutId);\
- g_pShortcutMainLoop = NULL;\
- g_nTimeoutId = 0;\
-}
-
-#define QUIT_GMAIN_LOOP {\
- if ( g_pShortcutMainLoop )\
- {\
- g_main_loop_quit(g_pShortcutMainLoop);\
- g_pShortcutMainLoop = NULL;\
- }\
-}\
-
-
-#define QUIT_GMAIN_LOOP_CONDITIONAL(CallbackHit1, CallbackHit2) {\
- if(CallbackHit1 && CallbackHit2)\
- {\
- if ( g_pShortcutMainLoop )\
- {\
- g_main_loop_quit(g_pShortcutMainLoop);\
- g_pShortcutMainLoop = NULL;\
- }\
- }\
-}\
-
-#define CHECK_CALLBACK_STATUS(szApiName, bCallbackHit, bRequestCallbackHit) {\
- if ( (bCallbackHit == false) || (bRequestCallbackHit == false))\
- {\
- FPRINTF("[Line : %d][%s] After %s, Issues Found with CallBack\\n", __LINE__, API_NAMESPACE, szApiName);\
- return 1;\
- }\
- else\
- {\
- FPRINTF("[Line : %d][%s] After %s, callback invoked\\n", __LINE__, API_NAMESPACE, szApiName);\
- bCallbackHit = false;\
- bRequestCallbackHit = false;\
- }\
-}
-
-//Add helper function declarations here
-char* ShortcutError(int nRet);
-gboolean ShortcutTimeoutFunction(gpointer data);
-
-/** @} */
-#endif //_ITS_SHORTCUT_COMMON_H_
+++ /dev/null
-//
-// 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 "ITs-shortcut-common.h"
-
-//& set: Shortcut
-
-/** @addtogroup itc-shortcut
-* @ingroup itc
-* @{
-*/
-
-const char *g_pszICON_PATH = NULL;
-bool g_bShortcutNotSupported = false;
-
-/*********************************************************CallBack Start*********************************************************/
-/**
- * @function ShortcutAddToHomeWidgetCB
- * @description Callback function
- * @parameter int ret, void *data
- * @return int
- */
-static int ShortcutAddToHomeWidgetCB(int ret, void *data)
-{
-#if DEBUG
- FPRINTF("[Line : %d][%s] ShortcutAddToHomeWidgetCB callback called\\n", __LINE__, API_NAMESPACE);
-#endif
-
- if((data == NULL) || (strcmp(data, TESTSTRING) != 0))
- {
- g_bCallbackHit = false;
- FPRINTF("[Line : %d][%s] Invalid data passed to callback\\n", __LINE__, API_NAMESPACE);
- QUIT_GMAIN_LOOP;
- return 0;
- }
-
- if ( ret < 0 )
- {
- FPRINTF("[Line : %d][%s] Failed to add shortcut : %s\\n", __LINE__, API_NAMESPACE, strerror(errno));
- QUIT_GMAIN_LOOP;
- return 0;
- }
- else
- {
- g_bCallbackHit = true;
- }
-
- if(g_b2CallbackValueCheck)
- {
- QUIT_GMAIN_LOOP_CONDITIONAL(g_bCallbackHit, g_bRequestCBCallbackHit);
- }
- else
- {
- QUIT_GMAIN_LOOP;
- }
-
-
- return 0;
-}
-
-/**
- * @function ShortcutAddToHomeCB
- * @description Callback function
- * @parameter int ret, void *data
- * @return int
- */
-static int ShortcutAddToHomeCB(int ret, void *data)
-{
- FPRINTF("[Line : %d][%s] ShortcutAddToHomeCB callback called\\n", __LINE__, API_NAMESPACE);
-
- if((data == NULL) || (strcmp(data, TESTSTRING) != 0))
- {
- g_bCallbackHit = false;
- FPRINTF("[Line : %d][%s] Invalid data passed to callback\\n", __LINE__, API_NAMESPACE);
- QUIT_GMAIN_LOOP;
- return 0;
- }
-
- if ( ret < 0 )
- {
- FPRINTF("[Line : %d][%s] Failed to add shortcut : %s\\n", __LINE__, API_NAMESPACE, strerror(errno));
- QUIT_GMAIN_LOOP;
- return 0;
- }
- else
- {
- g_bCallbackHit = true;
- }
-
- if(g_b2CallbackValueCheck)
- {
- QUIT_GMAIN_LOOP_CONDITIONAL(g_bCallbackHit, g_bRequestCBCallbackHit);
- }
- else
- {
- QUIT_GMAIN_LOOP;
- }
-
- return 0;
-}
-
-/**
- * @function ShortcutRequestCB
- * @description Callback function
- * @parameter const char *package_name, const char *name, int type, const char *content_info, const char *icon, int pid, double period, int allow_duplicate, void *data
- * @return int
- */
-static int ShortcutRequestCB(const char *package_name, const char *name, int type, const char *content_info, const char *icon, int pid, double period, int allow_duplicate, void *data)
-{
- FPRINTF("[Line : %d][%s] ShortcutRequestCB callback called\\n", __LINE__, API_NAMESPACE);
-
- if((data == NULL) || (strcmp(data, TESTSTRING) != 0))
- {
- g_bRequestCBCallbackHit = false;
- FPRINTF("[Line : %d][%s] Invalid data passed to callback\\n", __LINE__, API_NAMESPACE);
- QUIT_GMAIN_LOOP;
- return 0;
- }
-
- if(package_name == NULL)
- {
- FPRINTF("[Line : %d][%s] package name is invalid in callback function\\n", __LINE__, API_NAMESPACE);
- g_bRequestCBCallbackHit = false;
- }
- else if(name == NULL)
- {
- FPRINTF("[Line : %d][%s] name is invalid in callback function\\n", __LINE__, API_NAMESPACE);
- g_bRequestCBCallbackHit = false;
- }
- else if(type < 0)
- {
- FPRINTF("[Line : %d][%s] type is invalid in callback function\\n", __LINE__, API_NAMESPACE);
- g_bRequestCBCallbackHit = false;
- }
- else if(pid < 0)
- {
- FPRINTF("[Line : %d][%s] pid is invalid in callback function\\n", __LINE__, API_NAMESPACE);
- g_bRequestCBCallbackHit = false;
- }
- else
- {
- g_bRequestCBCallbackHit = true;
- }
-
- if(g_bRequestCBCallbackHit == false)
- {
- QUIT_GMAIN_LOOP;
- }
-
- else
- {
- if(g_b2CallbackValueCheck)
- {
- QUIT_GMAIN_LOOP_CONDITIONAL(g_bCallbackHit, g_bRequestCBCallbackHit);
- }
- else
- {
- QUIT_GMAIN_LOOP;
- }
- }
-
- return 0;
-}
-
-/**
- * @function ShortcutListCallBack
- * @description Callback function
- * @parameter const char *package_name, const char *icon, const char *name, const char *extra_key, const char *extra_data, void *user_data
- * @return int
- */
-static int ShortcutListCallBack(const char *package_name, const char *icon, const char *name, const char *extra_key, const char *extra_data, void *user_data)
-{
- FPRINTF("[Line : %d][%s] ShortcutListCallBack callback called\\n", __LINE__, API_NAMESPACE);
-
- if((user_data == NULL) || (strcmp(user_data, TESTSTRING) != 0))
- {
- g_bCallbackHit = false;
- FPRINTF("[Line : %d][%s] Invalid user_data passed to callback\\n", __LINE__, API_NAMESPACE);
- QUIT_GMAIN_LOOP;
- return -1;
- }
-
- if(package_name == NULL)
- {
- FPRINTF("[Line : %d][%s] package name is invalid in callback function\\n", __LINE__, API_NAMESPACE);
- g_bCallbackHit = false;
- }
- else if(name == NULL)
- {
- FPRINTF("[Line : %d][%s] name is invalid in callback function\\n", __LINE__, API_NAMESPACE);
- g_bCallbackHit = false;
- }
- else
- {
- g_bCallbackHit = true;
- }
-
- if(g_bCallbackHit == false)
- {
- QUIT_GMAIN_LOOP;
- }
-
- else
- {
- if(g_b2CallbackValueCheck)
- {
- QUIT_GMAIN_LOOP_CONDITIONAL(g_bCallbackHit, g_bRequestCBCallbackHit);
- }
- else
- {
- QUIT_GMAIN_LOOP;
- }
- }
-
- return -1;
-}
-
-/**
- * @function ShortcutRemoveCb
- * @description Callback function
- * @parameter const char *package_name, const char *name, int sender_pid, void *user_data
- * @return int
- */
-static int ShortcutRemoveCb(const char *package_name, const char *name, int sender_pid, void *user_data)
-{
- g_bCallbackHitRemoveCb = true;
- FPRINTF("[Line : %d][%s] Inside ShortcutRemoveCb callback function\\n", __LINE__, API_NAMESPACE);
- QUIT_GMAIN_LOOP;
- return 0;
-}
-
-/**
- * @function ShortcutRemoveFromHomeCB
- * @description Callback function
- * @parameter int ret, void *data
- * @return int
- */
-static int ShortcutRemoveFromHomeCB(int ret, void *data)
-{
- FPRINTF("[Line : %d][%s] ShortcutRemoveFromHomeCB callback called\\n", __LINE__, API_NAMESPACE);
- if ( ret < 0 )
- {
- FPRINTF("[Line : %d][%s] Failed to remove shortcut : %s\\n", __LINE__, API_NAMESPACE, strerror(errno));
- QUIT_GMAIN_LOOP;
- return 0;
- }
-
- QUIT_GMAIN_LOOP
- return 0;
-}
-/**********************************************************CallBack End**********************************************************/
-
-
-/**
- * @function ITs_shortcut_startup
- * @description Called before each test
- * @parameter NA
- * @return NA
- */
-void ITs_shortcut_startup(void)
-{
- g_b2CallbackValueCheck = false;
-
- struct stat stBuff;
- if ( stat(ERR_LOG, &stBuff) == 0 )
- {
- remove(ERR_LOG);
- }
-#if DEBUG
- FPRINTF("[Line: %d][%s] TEST SUIT start-up: ITs_Shortcut_p\\n", __LINE__, API_NAMESPACE);
-#endif
- g_bShortcutNotSupported = false;
-
-#ifdef MOBILE //Starts MOBILE
- if ( !TCTCheckSystemInfoFeatureSupported(SHORTCUT_FEATURE, API_NAMESPACE) )
- {
- g_bShortcutNotSupported = true;
- }
-#endif //End mobile
- char pszValue[CONFIG_VALUE_LEN_MAX] = {0,};
- if ( true == GetValueForTCTSetting("DEVICE_SUITE_TARGET_30", pszValue, API_NAMESPACE ))
- {
- FPRINTF("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received = %s\\n", __LINE__, API_NAMESPACE, pszValue);
- int path_size = strlen(pszValue)+strlen("/icon.png")+1;
- g_pszICON_PATH=(char*)calloc(path_size, sizeof(char));
- if( g_pszICON_PATH == NULL)
- {
- FPRINTF("[Line : %d][%s] Memory Allocation failed for g_pszICON_PATH \\n", __LINE__, API_NAMESPACE);
- return;
- }
- snprintf(g_pszICON_PATH, path_size, "%s/icon.png", pszValue);
- }
- else
- {
- FPRINTF("[Line : %d][%s] GetValueForTCTSetting returned error for 'DEVICE_SUITE_TARGET_30'\\n", __LINE__, API_NAMESPACE);
- }
-
- TCT_CheckInstalledApp(1, TEST_SHORTCUT_APPID);
- elm_init(0, NULL);
- return;
-}
-
-
-/**
- * @function ITs_shortcut_cleanup
- * @description Called after each test
- * @parameter NA
- * @return NA
- */
-void ITs_shortcut_cleanup(void)
-{
-#if DEBUG
- FPRINTF("[Line: %d][%s] TEST SUIT clean-up: ITs_Shortcut_p\\n", __LINE__, API_NAMESPACE);
-#endif
-
- elm_shutdown();
-
- if (g_pszICON_PATH) {
- free(g_pszICON_PATH);
- g_pszICON_PATH = NULL;
- }
-
- return;
-}
-
-/** @addtogroup itc-shortcut-testcases
-* @brief Integration testcases for module shortcut
-* @ingroup itc-shortcut
-* @{
-*/
-
-/**
-* @testcase ITc_shortcut_add_to_home_p
-* @since_tizen 2.4
-* @author SRID(abhishek1.g)
-* @reviewer SRID(gupta.sanjay)
-* @type auto
-* @description Test shortcut_add_to_home
-* @scenario Call shortcut_add_to_home
-* @apicovered shortcut_add_to_home
-* @passcase If target API returns SHORTCUT_ERROR_NONE
-* @failcase If API fails to complete the scenario cycle
-* @precondition Prepare the callback function
-* @postcondition You have to check the return status from the callback function which is passed by the argument.
-*/
-//& purpose: Test shortcut_add_to_home
-//& type: auto
-
-int ITc_shortcut_add_to_home_p(void)
-{
- START_TEST;
- g_b2CallbackValueCheck = true;
-
- int nRet = -1;
- char *pszName = "Test";
-
- g_bCallbackHit = false;
- g_bRequestCBCallbackHit = false;
-
- nRet = shortcut_set_request_cb(ShortcutRequestCB, TESTSTRING);
-#ifdef MOBILE //Starts MOBILE
- if (g_bShortcutNotSupported)
- {
- if(nRet != SHORTCUT_ERROR_NOT_SUPPORTED)
- {
- FPRINTF("[Line: %d][%s] Feature is mismatch \\n", __LINE__, API_NAMESPACE);
- return 1;
- }
- else
- {
- FPRINTF("[Line: %d][%s] Feature is Not Supported \\n", __LINE__, API_NAMESPACE);
- return 0;
- }
- }
-#endif //End mobile
- PRINT_RESULT(SHORTCUT_ERROR_NONE, nRet, "shortcut_set_request_cb", ShortcutError(nRet));
-
- nRet = shortcut_add_to_home(pszName, LAUNCH_BY_APP, TEST_SHORTCUT_APPID, g_pszICON_PATH, DUPLICATEALLOWED, ShortcutAddToHomeCB, TESTSTRING);
- RUN_POLLING_LOOP;
- PRINT_RESULT_CLEANUP(SHORTCUT_ERROR_NONE, nRet, "shortcut_add_to_home", ShortcutError(nRet), shortcut_unset_request_cb());
- CHECK_CALLBACK_STATUS("shortcut_add_to_home", g_bCallbackHit, g_bRequestCBCallbackHit);
-
- shortcut_unset_request_cb();
- return 0;
-}
-
-/**
-* @testcase ITc_shortcut_add_to_home_widget_p
-* @since_tizen 2.4
-* @author SRID(abhishek1.g)
-* @reviewer SRID(gupta.sanjay)
-* @type auto
-* @description Test shortcut_add_to_home_widget
-* @scenario Call shortcut_add_to_home_widget
-* @apicovered shortcut_add_to_home_widget
-* @passcase If target API returns SHORTCUT_ERROR_NONE
-* @failcase If API fails to complete the scenario cycle
-* @precondition Prepare the callback function
-* @postcondition You have to check the return status from the callback function which is passed by the argument.
-*/
-//& purpose: Test shortcut_add_to_home_widget
-//& type: auto
-
-int ITc_shortcut_add_to_home_widget_p(void)
-{
- START_TEST;
- g_b2CallbackValueCheck = true;
-
- int nRet = -1;
- char *pszName = "Test";
-
- shortcut_widget_size_e eShortcutWidgetSize[] = {WIDGET_SIZE_DEFAULT,
- WIDGET_SIZE_1x1,
- WIDGET_SIZE_2x1,
- WIDGET_SIZE_2x2,
- WIDGET_SIZE_4x1,
- WIDGET_SIZE_4x2,
- WIDGET_SIZE_4x3,
- WIDGET_SIZE_4x4,
- WIDGET_SIZE_4x5,
- WIDGET_SIZE_4x6,
- WIDGET_SIZE_EASY_DEFAULT,
- WIDGET_SIZE_EASY_1x1,
- WIDGET_SIZE_EASY_3x1,
- WIDGET_SIZE_EASY_3x3};
-
-
- int enum_size1 = sizeof(eShortcutWidgetSize) / sizeof(shortcut_widget_size_e);
- int enum_counter1 = 0;
-
- for ( enum_counter1=0; enum_counter1<enum_size1; enum_counter1++)
- {
- g_bCallbackHit = false;
- g_bRequestCBCallbackHit = false;
-
- nRet = shortcut_set_request_cb(ShortcutRequestCB, TESTSTRING);
-#ifdef MOBILE //Starts MOBILE
- if (g_bShortcutNotSupported)
- {
- if(nRet != SHORTCUT_ERROR_NOT_SUPPORTED)
- {
- FPRINTF("[Line: %d][%s] Feature is mismatch \\n", __LINE__, API_NAMESPACE);
- return 1;
- }
- else
- {
- FPRINTF("[Line: %d][%s] Feature is Not Supported \\n", __LINE__, API_NAMESPACE);
- return 0;
- }
- }
-#endif //End mobile
- PRINT_RESULT(SHORTCUT_ERROR_NONE, nRet, "shortcut_set_request_cb", ShortcutError(nRet));
-
- nRet = shortcut_add_to_home_widget(pszName, eShortcutWidgetSize[enum_counter1], TEST_SHORTCUT_APPID, g_pszICON_PATH, SHORTCUTPERIOD, DUPLICATEALLOWED, ShortcutAddToHomeWidgetCB, TESTSTRING);
- RUN_POLLING_LOOP;
- PRINT_RESULT_CLEANUP(SHORTCUT_ERROR_NONE, nRet, "shortcut_add_to_home_widget", ShortcutError(nRet), shortcut_unset_request_cb());
- CHECK_CALLBACK_STATUS("shortcut_add_to_home_widget", g_bCallbackHit, g_bRequestCBCallbackHit);
- shortcut_unset_request_cb();
- }
-
- return 0;
-}
-
-/**
-* @testcase ITc_shortcut_set_request_cb_p
-* @since_tizen 2.4
-* @author SRID(abhishek1.g)
-* @reviewer SRID(gupta.sanjay)
-* @type auto
-* @description Test shortcut_set_request_cb
-* @scenario Call shortcut_set_request_cb
-* @apicovered shortcut_set_request_cb
-* @passcase If target API returns SHORTCUT_ERROR_NONE
-* @failcase If API fails to complete the scenario cycle
-* @precondition Prepare the callback function
-* @postcondition You have to check the return status from the callback function which is passed by the argument.
-*/
-//& purpose: Test shortcut_set_request_cb
-//& type: auto
-
-int ITc_shortcut_set_unset_request_cb_p(void)
-{
- START_TEST;
- g_b2CallbackValueCheck = true;
-
- int nRet = -1;
- char *pszName = "Test";
-
- g_bCallbackHit = false;
- g_bRequestCBCallbackHit = false;
-
- nRet = shortcut_set_request_cb(ShortcutRequestCB, TESTSTRING);
-#ifdef MOBILE //Starts MOBILE
- if (g_bShortcutNotSupported)
- {
- if(nRet != SHORTCUT_ERROR_NOT_SUPPORTED)
- {
- FPRINTF("[Line: %d][%s] Feature is mismatch \\n", __LINE__, API_NAMESPACE);
- return 1;
- }
- else
- {
- FPRINTF("[Line: %d][%s] Feature is Not Supported \\n", __LINE__, API_NAMESPACE);
- return 0;
- }
- }
-#endif //End mobile
- PRINT_RESULT(SHORTCUT_ERROR_NONE, nRet, "shortcut_set_request_cb", ShortcutError(nRet));
-
- nRet = shortcut_add_to_home(pszName, LAUNCH_BY_APP, TEST_SHORTCUT_APPID, g_pszICON_PATH, DUPLICATEALLOWED, ShortcutAddToHomeCB, TESTSTRING);
- RUN_POLLING_LOOP;
- PRINT_RESULT_CLEANUP(SHORTCUT_ERROR_NONE, nRet, "shortcut_add_to_home", ShortcutError(nRet), shortcut_unset_request_cb());
- CHECK_CALLBACK_STATUS("shortcut_set_request_cb", g_bCallbackHit, g_bRequestCBCallbackHit);
-
- shortcut_unset_request_cb();
- return 0;
-}
-
-/**
-* @testcase ITc_shortcut_get_list_p
-* @since_tizen 2.4
-* @author SRID(abhishek1.g)
-* @reviewer SRID(gupta.sanjay)
-* @type auto
-* @description Test shortcut_get_list
-* @scenario Call shortcut_get_list
-* @apicovered shortcut_get_list
-* @passcase If target API returns SHORTCUT_ERROR_NONE
-* @failcase If API fails to complete the scenario cycle
-* @precondition Prepare the callback function
-* @postcondition You have to check the return status from the callback function which is passed by the argument.
-*/
-//& purpose: Test shortcut_get_list
-//& type: auto
-
-int ITc_shortcut_get_list_p(void)
-{
- START_TEST;
- int nRet = -1;
-
- g_bCallbackHit = false;
- g_bRequestCBCallbackHit = true;
- nRet = shortcut_get_list(TEST_SHORTCUT_APPID, ShortcutListCallBack, TESTSTRING);
-#ifdef MOBILE //Starts MOBILE
- if (g_bShortcutNotSupported)
- {
- if(nRet != SHORTCUT_ERROR_NOT_SUPPORTED)
- {
- FPRINTF("[Line: %d][%s] Feature is mismatch \\n", __LINE__, API_NAMESPACE);
- return 1;
- }
- else
- {
- FPRINTF("[Line: %d][%s] Feature is Not Supported \\n", __LINE__, API_NAMESPACE);
- return 0;
- }
- }
-#endif //End mobile
- if(nRet < 0)
- {
- FPRINTF("[Line : %d][%s] shortcut_get_list Failed,return invalid number of items\\n", __LINE__, API_NAMESPACE);
- return 1;
- }
- CHECK_CALLBACK_STATUS("shortcut_get_list", g_bCallbackHit, g_bRequestCBCallbackHit);
-
- return 0;
-}
-
-/**
-* @testcase ITc_shortcut_set_unset_remove_cb_p
-* @since_tizen 3.0
-* @author SRID(a.pandia1)
-* @reviewer SRID(shobhit.v)
-* @type auto
-* @description Registers and unregisters the callback function to listen the remove requests from applications
-* @scenario Call shortcut_set_remove_cb, shortcut_unset_remove_cb
-* @apicovered shortcut_set_remove_cb, shortcut_unset_remove_cb
-* @passcase If target API returns SHORTCUT_ERROR_NONE
-* @failcase If API fails to complete the scenario cycle
-* @precondition Prepare the callback function
-* @postcondition You have to check the return status from the callback function which is passed by the argument.
-*/
-//& purpose: Registers and unregisters the callback function to listen the remove requests from applications
-//& type: auto
-
-int ITc_shortcut_set_unset_remove_cb_p(void)
-{
- START_TEST;
- g_b2CallbackValueCheck = true;
-
- int nRet = -1;
- char *pszName = "Test";
-
- g_bCallbackHit = false;
- g_bRequestCBCallbackHit = false;
-
- nRet = shortcut_set_request_cb(ShortcutRequestCB, TESTSTRING);
-#ifdef MOBILE //Starts MOBILE
- if (g_bShortcutNotSupported)
- {
- if(nRet != SHORTCUT_ERROR_NOT_SUPPORTED)
- {
- FPRINTF("[Line: %d][%s] Feature is mismatch \\n", __LINE__, API_NAMESPACE);
- return 1;
- }
- else
- {
- FPRINTF("[Line: %d][%s] Feature is Not Supported \\n", __LINE__, API_NAMESPACE);
- return 0;
- }
- }
-#endif //End mobile
- PRINT_RESULT(SHORTCUT_ERROR_NONE, nRet, "shortcut_set_request_cb", ShortcutError(nRet));
-
- nRet = shortcut_add_to_home(pszName, LAUNCH_BY_APP, TEST_SHORTCUT_APPID, g_pszICON_PATH, DUPLICATEALLOWED, ShortcutAddToHomeCB, TESTSTRING);
- RUN_POLLING_LOOP;
- PRINT_RESULT_CLEANUP(SHORTCUT_ERROR_NONE, nRet, "shortcut_add_to_home", ShortcutError(nRet), shortcut_unset_request_cb());
- CHECK_CALLBACK_STATUS("shortcut_set_request_cb", g_bCallbackHit, g_bRequestCBCallbackHit);
-
- g_bCallbackHitRemoveCb = false;
- // Target API
- nRet = shortcut_set_remove_cb(ShortcutRemoveCb, NULL);
- PRINT_RESULT_CLEANUP(SHORTCUT_ERROR_NONE, nRet, "shortcut_set_remove_cb", ShortcutError(nRet), shortcut_unset_request_cb());
-
- // Callback Triggering API
- nRet = shortcut_remove_from_home(pszName, ShortcutRemoveFromHomeCB, NULL);
- PRINT_RESULT_CLEANUP(SHORTCUT_ERROR_NONE, nRet, "shortcut_remove_from_home", ShortcutError(nRet), shortcut_unset_remove_cb();shortcut_unset_request_cb());
-
- RUN_POLLING_LOOP;
- if(!g_bCallbackHitRemoveCb)
- {
- FPRINTF("[Line : %d][%s] Failed to hit callback ShortcutRemoveCb\\n", __LINE__, API_NAMESPACE);
- shortcut_unset_remove_cb();
- shortcut_unset_request_cb();
- return 1;
- }
-
- // Target API
- shortcut_unset_remove_cb();
-
- shortcut_unset_request_cb();
- return 0;
-}
-/** @} */
-/** @} */
+++ /dev/null
-//
-// 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 <stdio.h>
-#include <string.h>
-#include "tct_common.h"
-
-#ifdef MOBILE //Starts MOBILE
-#include "tct-shortcut-native_mobile.h"
-#endif //MOBILE //End MOBILE
-
-#ifdef WEARABLE //Starts WEARABLE
-#include "tct-shortcut-native_wearable.h"
-#endif //WEARABLE //End WEARABLE
-
-#ifdef TV //Starts TV
-#include "tct-shortcut-native_tv.h"
-#endif //TV //End TV
-
-#ifdef TIZENIOT //Starts TIZENIOT
-#include "tct-shortcut-native_tizeniot.h"
-#endif //TIZENIOT //End TIZENIOT
-
-
-#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 <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <errno.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;
-}
+++ /dev/null
-//
-// 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.
-//
-#ifndef __TCT_SHORTCUT-NATIVE_H__
-#define __TCT_SHORTCUT-NATIVE_H__
-
-#include "testcase.h"
-#include "tct_common.h"
-
-extern void ITs_shortcut_startup(void);
-extern void ITs_shortcut_cleanup(void);
-
-extern int ITc_shortcut_add_to_home_p(void);
-extern int ITc_shortcut_add_to_home_widget_p(void);
-extern int ITc_shortcut_set_unset_request_cb_p(void);
-extern int ITc_shortcut_get_list_p(void);
-extern int ITc_shortcut_set_unset_remove_cb_p(void);
-
-testcase tc_array[] = {
- {"ITc_shortcut_add_to_home_p",ITc_shortcut_add_to_home_p,ITs_shortcut_startup,ITs_shortcut_cleanup},
- {"ITc_shortcut_add_to_home_widget_p",ITc_shortcut_add_to_home_widget_p,ITs_shortcut_startup,ITs_shortcut_cleanup},
- {"ITc_shortcut_set_unset_request_cb_p",ITc_shortcut_set_unset_request_cb_p,ITs_shortcut_startup,ITs_shortcut_cleanup},
- {"ITc_shortcut_get_list_p",ITc_shortcut_get_list_p,ITs_shortcut_startup,ITs_shortcut_cleanup},
- {"ITc_shortcut_set_unset_remove_cb_p",ITc_shortcut_set_unset_remove_cb_p,ITs_shortcut_startup,ITs_shortcut_cleanup},
- {NULL, NULL}
-};
-
-#endif // __TCT_SHORTCUT-NATIVE_H__
+++ /dev/null
-//
-// 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.
-//
-#ifndef __TCT_SHORTCUT-NATIVE_H__
-#define __TCT_SHORTCUT-NATIVE_H__
-
-#include "testcase.h"
-#include "tct_common.h"
-
-extern void ITs_shortcut_startup(void);
-extern void ITs_shortcut_cleanup(void);
-
-extern int ITc_shortcut_add_to_home_p(void);
-extern int ITc_shortcut_add_to_home_widget_p(void);
-extern int ITc_shortcut_set_unset_request_cb_p(void);
-extern int ITc_shortcut_get_list_p(void);
-extern int ITc_shortcut_set_unset_remove_cb_p(void);
-
-testcase tc_array[] = {
- {"ITc_shortcut_add_to_home_p",ITc_shortcut_add_to_home_p,ITs_shortcut_startup,ITs_shortcut_cleanup},
- {"ITc_shortcut_add_to_home_widget_p",ITc_shortcut_add_to_home_widget_p,ITs_shortcut_startup,ITs_shortcut_cleanup},
- {"ITc_shortcut_set_unset_request_cb_p",ITc_shortcut_set_unset_request_cb_p,ITs_shortcut_startup,ITs_shortcut_cleanup},
- {"ITc_shortcut_get_list_p",ITc_shortcut_get_list_p,ITs_shortcut_startup,ITs_shortcut_cleanup},
- {"ITc_shortcut_set_unset_remove_cb_p",ITc_shortcut_set_unset_remove_cb_p,ITs_shortcut_startup,ITs_shortcut_cleanup},
- {NULL, NULL}
-};
-
-#endif // __TCT_SHORTCUT-NATIVE_H__
+++ /dev/null
-//
-// 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.
-//
-#ifndef __TCT_SHORTCUT-NATIVE_H__
-#define __TCT_SHORTCUT-NATIVE_H__
-
-#include "testcase.h"
-#include "tct_common.h"
-
-
-
-testcase tc_array[] = {
- {NULL, NULL}
-};
-
-#endif // __TCT_SHORTCUT-NATIVE_H__
wearable:aarch64:itc:service-adaptor;
wearable:x86:itc:service-adaptor;
wearable:x86_64:itc:service-adaptor;
-wearable:armv7l:itc:shortcut;
-wearable:aarch64:itc:shortcut;
-wearable:x86:itc:shortcut;
-wearable:x86_64:itc:shortcut;
wearable:armv7l:itc:video-util;
wearable:aarch64:itc:video-util;
wearable:x86:itc:video-util;
tizeniot:x86:itc:battery-monitor;
tizeniot:x86_64:itc:battery-monitor;
tizeniot:riscv64:itc:battery-monitor;
-tizeniot:armv7l:itc:shortcut;
-tizeniot:aarch64:itc:shortcut;
-tizeniot:x86:itc:shortcut;
-tizeniot:x86_64:itc:shortcut;
## ctc ##
tv:armv7l:itc:wifi-direct;
tv:armv7l:itc:job-scheduler;
tv:armv7l:itc:minicontrol;
-tv:armv7l:itc:shortcut;
tv:armv7l:itc:smartcard;
tv:armv7l:itc:mediacodec;
tv:armv7l:itc:capi-mediademuxer;