From: Tarun Kumar Date: Tue, 10 Oct 2023 06:28:03 +0000 (+0530) Subject: [CTC][messages][ACR-1795] Removed deprecated message API's X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F76%2F299776%2F1;p=test%2Ftct%2Fnative%2Fapi.git [CTC][messages][ACR-1795] Removed deprecated message API's Change-Id: Ib33babe8cd4b6196e0f52ec3e0722f7a7ce9f048 Signed-off-by: Tarun Kumar --- diff --git a/packaging/ctc/native-telephony-ctc.spec b/packaging/ctc/native-telephony-ctc.spec deleted file mode 100755 index 7c5842ab8..000000000 --- a/packaging/ctc/native-telephony-ctc.spec +++ /dev/null @@ -1,83 +0,0 @@ -%define MODULE_NAME telephony -%define MODULE_LIBNAME capi-telephony -Name: native-%{MODULE_NAME}-ctc -Summary: Native API Compatibility Test (%{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(dlog) -BuildRequires: pkgconfig(elementary) -BuildRequires: pkgconfig(glib-2.0) -BuildRequires: cmake -BuildRequires: pkgconfig(bundle) -BuildRequires: pkgconfig(capi-messaging-messages) -BuildRequires: pkgconfig(capi-system-info) -BuildRequires: pkgconfig(capi-base-common) - -%description -Core API Compatibility Test (%{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="ctc" -DDEVICE_BUILD_TYPE="mobile" -DASANBUILD="true" -DCMAKE_INSTALL_PREFIX=%{_prefix} - %endif - %if %{?DEVICE_BUILD_TYPE_WEARABLE:1}0 - cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="ctc" -DDEVICE_BUILD_TYPE="wearable" -DASANBUILD="true" -DCMAKE_INSTALL_PREFIX=%{_prefix} - %endif - %if %{?DEVICE_BUILD_TYPE_TV:1}0 - cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="ctc" -DDEVICE_BUILD_TYPE="tv" -DASANBUILD="true" -DCMAKE_INSTALL_PREFIX=%{_prefix} - %endif - %if %{?DEVICE_BUILD_TYPE_TIZENIOT:1}0 - cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="ctc" -DDEVICE_BUILD_TYPE="tizeniot" -DASANBUILD="true" -DCMAKE_INSTALL_PREFIX=%{_prefix} - %endif -%else - %if %{?DEVICE_BUILD_TYPE_MOBILE:1}0 - cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="ctc" -DDEVICE_BUILD_TYPE="mobile" -DASANBUILD="false" -DCMAKE_INSTALL_PREFIX=%{_prefix} - %endif - %if %{?DEVICE_BUILD_TYPE_WEARABLE:1}0 - cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="ctc" -DDEVICE_BUILD_TYPE="wearable" -DASANBUILD="false" -DCMAKE_INSTALL_PREFIX=%{_prefix} - %endif - %if %{?DEVICE_BUILD_TYPE_TV:1}0 - cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="ctc" -DDEVICE_BUILD_TYPE="tv" -DASANBUILD="false" -DCMAKE_INSTALL_PREFIX=%{_prefix} - %endif - %if %{?DEVICE_BUILD_TYPE_TIZENIOT:1}0 - cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="ctc" -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}/tmp/ - -mkdir -p %{buildroot}/usr/share/packages/ -cp packaging/ctc/native-%{MODULE_NAME}-ctc.xml %{buildroot}/usr/share/packages/ -mkdir -p %{buildroot}%{APP_PATH}%{name}/bin -#cp templates/external_wrapper.sh %{buildroot}%{APP_PATH}%{name}/bin - -%post -%postun - - -%files -%{APP_PATH}%{name}/* -/usr/share/packages/native-%{MODULE_NAME}-ctc.xml -/usr/share/license/%{name} - diff --git a/packaging/ctc/native-telephony-ctc.xml b/packaging/ctc/native-telephony-ctc.xml deleted file mode 100755 index ba9ea79c9..000000000 --- a/packaging/ctc/native-telephony-ctc.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - test - Native API test Application - - - - - - - - - - http://tizen.org/privilege/mediastorage - http://tizen.org/privilege/telephony - http://tizen.org/privilege/message.read - http://tizen.org/privilege/message.write - - diff --git a/src/ctc/telephony/CMakeLists.txt b/src/ctc/telephony/CMakeLists.txt deleted file mode 100755 index c1a8e6397..000000000 --- a/src/ctc/telephony/CMakeLists.txt +++ /dev/null @@ -1,42 +0,0 @@ -SET(PKG_NAME "telephony") - -SET(EXEC_NAME "tct-${PKG_NAME}-ctc") -SET(RPM_NAME "native-${PKG_NAME}-ctc") - -SET(CAPI_LIB "capi-telephony") -SET(TC_SOURCES - CTs-telephony-common.c - CTs-telephony.c -) - -PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED - ${CAPI_LIB} - capi-appfw-application - bundle - glib-2.0 - capi-messaging-messages - capi-system-info - dlog -) - -INCLUDE_DIRECTORIES( - ${${CAPI_LIB}_INCLUDE_DIRS} -) - -ADD_EXECUTABLE(${EXEC_NAME} tct-${PKG_NAME}-native.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() diff --git a/src/ctc/telephony/CTs-telephony-common.c b/src/ctc/telephony/CTs-telephony-common.c deleted file mode 100755 index bcffcad32..000000000 --- a/src/ctc/telephony/CTs-telephony-common.c +++ /dev/null @@ -1,32 +0,0 @@ -#include "CTs-telephony-common.h" - -//Add helper function definitions here - -/** - * @function MessagesGetError - * @description Maps error enums to string values - * @parameter nRet : error code returned - * @return error string - */ -char* MessagesGetError(int nRet) -{ - char *szErrorVal = NULL; - - switch( nRet ) - { - case MESSAGES_ERROR_INVALID_PARAMETER: szErrorVal = "MESSAGES_ERROR_INVALID_PARAMETER"; break; - case MESSAGES_ERROR_OUT_OF_MEMORY: szErrorVal = "MESSAGES_ERROR_OUT_OF_MEMORY"; break; - case MESSAGES_ERROR_SERVER_NOT_READY: szErrorVal = "MESSAGES_ERROR_SERVER_NOT_READY"; break; - case MESSAGES_ERROR_COMMUNICATION_WITH_SERVER_FAILED: szErrorVal = "MESSAGES_ERROR_COMMUNICATION_WITH"; break; - case MESSAGES_ERROR_OPERATION_FAILED: szErrorVal = "MESSAGES_ERROR_OPERATION_FAILED"; break; - case MESSAGES_ERROR_SENDING_FAILED: szErrorVal = "MESSAGES_ERROR_SENDING_FAILED"; break; - case MESSAGES_ERROR_OUT_OF_RANGE: szErrorVal = "MESSAGES_ERROR_OUT_OF_RANGE"; break; - case MESSAGES_ERROR_NO_SIM_CARD: szErrorVal = "MESSAGES_ERROR_NO_SIM_CARD"; break; - case MESSAGES_ERROR_NO_DATA: szErrorVal = "MESSAGES_ERROR_NO_DATA"; break; - case MESSAGES_ERROR_PERMISSION_DENIED: szErrorVal = "MESSAGES_ERROR_PERMISSION_DENIED"; break; - case MESSAGES_ERROR_NOT_SUPPORTED: szErrorVal = "MESSAGES_ERROR_NOT_SUPPORTED"; break; - case MESSAGES_ERROR_NONE: szErrorVal = "MESSAGES_ERROR_NONE"; break; - default: szErrorVal = "MESSAGES_ERROR_UNKNOWN"; break; - } - return szErrorVal; -} \ No newline at end of file diff --git a/src/ctc/telephony/CTs-telephony-common.h b/src/ctc/telephony/CTs-telephony-common.h deleted file mode 100755 index 23100bccb..000000000 --- a/src/ctc/telephony/CTs-telephony-common.h +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef _CTS_TELEPHONY_COMMON_H_ -#define _CTS_TELEPHONY_COMMON_H_ - -//Add test package related includes here -#include "tct_common.h" -#include - -/** @addtogroup ctc-telephony -* @ingroup ctc -* @{ -*/ - -#define API_NAMESPACE "TELEPHONY_CTC" -#define TELEPHONY_FEATURE "http://tizen.org/feature/network.telephony" -#define SMS_FEATURE "http://tizen.org/feature/network.telephony.sms" - -#define START_TEST {\ - FPRINTF("[Line : %d][%s] Starting test : %s\\n", __LINE__, API_NAMESPACE, __FUNCTION__);\ -} - -char* MessagesGetError(int nRet); - -/** @} */ //end of ctc-telephony - -#endif //_CTS_TELEPHONY_COMMON_H_ diff --git a/src/ctc/telephony/CTs-telephony.c b/src/ctc/telephony/CTs-telephony.c deleted file mode 100755 index 765e320c8..000000000 --- a/src/ctc/telephony/CTs-telephony.c +++ /dev/null @@ -1,145 +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 "CTs-telephony-common.h" - -/** @addtogroup ctc-telephony -* @ingroup ctc -* @{ -*/ - -//& set: Telephony - -/** -* @function CTs_telephony_startup -* @description Called before each test -* @parameter NA -* @return NA -*/ -void CTs_telephony_startup(void) -{ - struct stat stBuff; - if ( stat(ERR_LOG, &stBuff) == 0 ) - { - if (remove(ERR_LOG)) - { - FPRINTF("[Line : %d][%s] TEST SUIT start-up FAIL because the ERR_LOG file is not removed\\n", __LINE__, API_NAMESPACE); - } - } - -#if DEBUG - FPRINTF("[Line : %d][%s] TEST SUIT start-up: CTs_Telephony_p\\n", __LINE__, API_NAMESPACE); -#endif -} - -/** -* @function CTs_telephony_cleanup -* @description Called after each test -* @parameter NA -* @return NA -*/ -void CTs_telephony_cleanup(void) -{ -#if DEBUG - FPRINTF("[Line : %d][%s] TEST SUIT clean-up: CTs_Telephony_p\\n", __LINE__, API_NAMESPACE); -#endif - return; -} - -/** @addtogroup ctc-telephony-testcases -* @brief Integration testcases for module telephony -* @ingroup ctc-telephony -* @{ -*/ - -//& purpose: A purpose of sending SMS in device if it supports. -//&type: auto -/** -* @testcase CTc_telephony_IsSupportedSMS_MMS_p -* @since_tizen 2.3 -* @author SRID(saurabh.s9) -* @reviewer SRID(gupta.sanjay) -* @type auto -* @scenario Gets a boolean value of the platform feature\n -* Gets a boolean value of the platform feature for SMS sending -* @apicovered system_info_get_platform_bool -* @passcase Covered api should return zero success value -* @failcase Covered api returns negative error value -* @precondition NA -* @postcondition NA -*/ -int CTc_telephony_IsSupportedSMS_p(void) -{ - START_TEST; - - bool bIsTelephonySupported; - IS_FEATURE_SUPPORTED(TELEPHONY_FEATURE, bIsTelephonySupported, API_NAMESPACE) - if ( !bIsTelephonySupported ) - { - FPRINTF("[Line : %d][%s] Telephony is not supported\\n", __LINE__, API_NAMESPACE); - return 0; - } - - FPRINTF("[Line : %d][%s] Telephony feature is supported\\n", __LINE__, API_NAMESPACE); - - bool bIsSmsSupported; - IS_FEATURE_SUPPORTED(SMS_FEATURE, bIsSmsSupported, API_NAMESPACE) - - messages_service_h hMessageService = NULL; - if ( !bIsSmsSupported ) - { - FPRINTF("[Line : %d][%s] Telephony is supported but SMS (messaging) is not supported\\n", __LINE__, API_NAMESPACE); - - int nRet = messages_open_service(&hMessageService); - if ( nRet != TIZEN_ERROR_NOT_SUPPORTED ) - { - FPRINTF("[Line : %d][%s] messages_open_service return %s for unsupported SMS feature\\n",__LINE__, API_NAMESPACE, MessagesGetError(nRet)); - return 1; - } - - FPRINTF("[Line : %d][%s] messages_open_service returned TIZEN_ERROR_NOT_SUPPORTED for unsupported SMS feature\\n",__LINE__, API_NAMESPACE); - return 0; - } - - FPRINTF("[Line : %d][%s] SMS feature is supported\\n", __LINE__, API_NAMESPACE); - - int nRet = messages_open_service(&hMessageService); - if ( nRet != MESSAGES_ERROR_NONE ) - { - FPRINTF("[Line : %d][%s] messages_open_service returned %s for supported SMS feature\\n",__LINE__, API_NAMESPACE, MessagesGetError(nRet)); - return 1; - } - - if(hMessageService == NULL) - { - FPRINTF("[Line : %d][%s] messages_open_service failed. hMessageService is NULL\\n",__LINE__, API_NAMESPACE); - return 1; - } - - FPRINTF("[Line : %d][%s] messages_open_service API didn't return any error for supported telephony feature\\n",__LINE__, API_NAMESPACE); - - nRet = messages_close_service(hMessageService); - if ( nRet != MESSAGES_ERROR_NONE ) - { - FPRINTF("[Line : %d][%s] messages_close_service returned %s for supported SMS feature\\n",__LINE__, API_NAMESPACE, MessagesGetError(nRet)); - return 1; - } - - FPRINTF("[Line : %d][%s] messages_close_service API didn't return any error for supported telephony feature\\n",__LINE__, API_NAMESPACE); - return 0; -} - -/** @} */ //end of ctc-telephony -/** @} */ //end of ctc-telephony-testcases \ No newline at end of file diff --git a/src/ctc/telephony/tct-telephony-native.c b/src/ctc/telephony/tct-telephony-native.c deleted file mode 100755 index 57678ef0c..000000000 --- a/src/ctc/telephony/tct-telephony-native.c +++ /dev/null @@ -1,137 +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 -#include -#include "tct_common.h" - -#ifdef MOBILE //Starts MOBILE -#include "tct-telephony-native_mobile.h" -#endif //MOBILE //End MOBILE - -#ifdef WEARABLE //Starts WEARABLE -#include "tct-telephony-native_wearable.h" -#endif //WEARABLE //End WEARABLE - -#ifdef TV //Starts TV -#include "tct-telephony-native_tv.h" -#endif //TV //End TV - -#ifdef TIZENIOT //Starts TIZENIOT -#include "tct-telephony-native_tizeniot.h" -#endif //TIZENIOT //End TIZENIOT - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include - -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/ctc/telephony/tct-telephony-native_mobile.h b/src/ctc/telephony/tct-telephony-native_mobile.h deleted file mode 100755 index a1ae85472..000000000 --- a/src/ctc/telephony/tct-telephony-native_mobile.h +++ /dev/null @@ -1,32 +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. -// -#ifndef __TCT_TELEPHONY-NATIVE_H__ -#define __TCT_TELEPHONY-NATIVE_H__ - -#include "testcase.h" -#include "tct_common.h" - -extern void CTs_telephony_startup(void); -extern void CTs_telephony_cleanup(void); - -extern int CTc_telephony_IsSupportedSMS_p(void); - -testcase tc_array[] = { - {"CTc_telephony_IsSupportedSMS_p",CTc_telephony_IsSupportedSMS_p,CTs_telephony_startup,CTs_telephony_cleanup}, - {NULL, NULL} -}; - -#endif // __TCT_TELEPHONY-NATIVE_H__ diff --git a/src/ctc/telephony/tct-telephony-native_tizeniot.h b/src/ctc/telephony/tct-telephony-native_tizeniot.h deleted file mode 100755 index a1ae85472..000000000 --- a/src/ctc/telephony/tct-telephony-native_tizeniot.h +++ /dev/null @@ -1,32 +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. -// -#ifndef __TCT_TELEPHONY-NATIVE_H__ -#define __TCT_TELEPHONY-NATIVE_H__ - -#include "testcase.h" -#include "tct_common.h" - -extern void CTs_telephony_startup(void); -extern void CTs_telephony_cleanup(void); - -extern int CTc_telephony_IsSupportedSMS_p(void); - -testcase tc_array[] = { - {"CTc_telephony_IsSupportedSMS_p",CTc_telephony_IsSupportedSMS_p,CTs_telephony_startup,CTs_telephony_cleanup}, - {NULL, NULL} -}; - -#endif // __TCT_TELEPHONY-NATIVE_H__ diff --git a/src/ctc/telephony/tct-telephony-native_wearable.h b/src/ctc/telephony/tct-telephony-native_wearable.h deleted file mode 100755 index a1ae85472..000000000 --- a/src/ctc/telephony/tct-telephony-native_wearable.h +++ /dev/null @@ -1,32 +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. -// -#ifndef __TCT_TELEPHONY-NATIVE_H__ -#define __TCT_TELEPHONY-NATIVE_H__ - -#include "testcase.h" -#include "tct_common.h" - -extern void CTs_telephony_startup(void); -extern void CTs_telephony_cleanup(void); - -extern int CTc_telephony_IsSupportedSMS_p(void); - -testcase tc_array[] = { - {"CTc_telephony_IsSupportedSMS_p",CTc_telephony_IsSupportedSMS_p,CTs_telephony_startup,CTs_telephony_cleanup}, - {NULL, NULL} -}; - -#endif // __TCT_TELEPHONY-NATIVE_H__ diff --git a/tct_unsupported.txt b/tct_unsupported.txt index e9eebc974..ff05c15d6 100755 --- a/tct_unsupported.txt +++ b/tct_unsupported.txt @@ -324,7 +324,6 @@ tv:armv7l:itc:mediaeditor; tv:armv7l:itc:resource-monitor; ## ctc ## -tv:armv7l:ctc:telephony; tv:armv7l:ctc:location-manager; tv:armv7l:ctc:mediacodec; tv:armv7l:ctc:player;