From a8793dce22467ad1f0ba2ef6850725458d9852e0 Mon Sep 17 00:00:00 2001 From: Amritanshu Pandia Date: Wed, 29 Jun 2016 16:06:38 +0530 Subject: [PATCH] [ITC][contacts-service2][ACR-627][TSAM-4756 - Removed unsupported APIs for wearable profile] Change-Id: I12c392f143b0f291c0740b60fa28fce84160f30c Signed-off-by: Amritanshu Pandia --- .../contacts-service2/ITs-contacts-service2-sim.c | 82 ---------------------- .../tct-contacts-service2-native_wearable.h | 4 -- 2 files changed, 86 deletions(-) diff --git a/src/itc/contacts-service2/ITs-contacts-service2-sim.c b/src/itc/contacts-service2/ITs-contacts-service2-sim.c index 9e36fd2..3275835 100755 --- a/src/itc/contacts-service2/ITs-contacts-service2-sim.c +++ b/src/itc/contacts-service2/ITs-contacts-service2-sim.c @@ -76,88 +76,6 @@ void ITs_contacts_service2_sim_cleanup(void) * @{ */ -#ifdef WEARABLE //Starts WEARABLE -//& purpose: Checks whether SIM initialization is completed or not. -//& type: auto - -/** -* @testcase ITc_contacts_sim_get_initialization_status_p -* @since_tizen 2.3 -* @author SRID(sk.roy) -* @reviewer SRID(gupta.sanjay) -* @type auto -* @description Checks whether SIM initialization is completed or not. -* @scenario Connect to database\n -* Check initialization status\n -* Disconnect from database -* @apicovered contacts_sim_get_initialization_status() -* @passcase When ccontacts_sim_get_initialization_status() is successful. -* @failcase If target API fails or any precondition API fails. -* @precondition contacts_connect2() should be called to open a connection to the contacts service.e -* @postcondition None -*/ -int ITc_contacts_sim_get_initialization_status_p(void) -{ - if ( !g_bFeatureIsSupported ) - { - FPRINTF("[Line : %d][%s] Telephony feature is not supported, Leaving test\\n", __LINE__, API_NAMESPACE); - return 0; - } - - START_TEST; - - bool bIsCompleted = false; - - // Target API - int nRet = contacts_sim_get_initialization_status(&bIsCompleted); - PRINT_RESULT(CONTACTS_ERROR_NONE, nRet, "contacts_sim_get_initialization_status", ContactsServiceGetError(nRet)); - if ( bIsCompleted == false ) - { - FPRINTF("[Line : %d][%s] Sim not initialized\\n", __LINE__ , API_NAMESPACE); - return 1; - } - - return 0; -} - -//& purpose: Imports all contacts from SIM to Contacts Database. -//& type: auto - -/** -* @testcase ITc_contacts_sim_import_all_contacts_p -* @since_tizen 2.3 -* @author SRID(sk.roy) -* @reviewer SRID(gupta.sanjay) -* @type auto -* @description Imports all contacts from SIM to Contacts Database. -* @scenario Connect to database\n -* Imports all contacts from SIM to Contacts Database\n -* Disconnect from database -* @apicovered contacts_sim_import_all_contacts() -* @passcase When contacts_sim_import_all_contacts() is successful. -* @failcase If target API fails or any precondition API fails. -* @precondition contacts_connect2() should be called to open a connection to the contacts service.e -* @postcondition None -*/ -int ITc_contacts_sim_import_all_contacts_p(void) -{ - if ( !g_bFeatureIsSupported ) - { - FPRINTF("[Line : %d][%s] Telephony feature is not supported, Leaving test\\n", __LINE__, API_NAMESPACE); - return 0; - } - - START_TEST; - - // Target API - int nRet = contacts_sim_import_all_contacts(); - PRINT_RESULT(CONTACTS_ERROR_NONE, nRet, "contacts_sim_import_all_contacts", ContactsServiceGetError(nRet)); - - return 0; -} - -#endif //End WEARABLE - //& purpose: Checks whether SIM of the given SIM slot number is initialized //& type: auto diff --git a/src/itc/contacts-service2/tct-contacts-service2-native_wearable.h b/src/itc/contacts-service2/tct-contacts-service2-native_wearable.h index e169f19..4564b2d 100755 --- a/src/itc/contacts-service2/tct-contacts-service2-native_wearable.h +++ b/src/itc/contacts-service2/tct-contacts-service2-native_wearable.h @@ -117,8 +117,6 @@ extern int ITc_contacts_setting_set_get_name_display_order_p(void); extern int ITc_contacts_setting_set_get_name_sorting_order_p(void); extern int ITc_contacts_setting_add_remove_name_display_order_changed_cb_p(void); extern int ITc_contacts_setting_add_remove_name_sorting_order_changed_cb_p(void); -extern int ITc_contacts_sim_get_initialization_status_p(void); -extern int ITc_contacts_sim_import_all_contacts_p(void); extern int ITc_contacts_sim_get_initialization_status_by_sim_slot_no_p(void); extern int ITc_contacts_sim_import_all_contacts_by_sim_slot_no_p(void); extern int ITc_contacts_record_create_destroy_sip_p(void); @@ -207,8 +205,6 @@ testcase tc_array[] = { {"ITc_contacts_setting_set_get_name_sorting_order_p", ITc_contacts_setting_set_get_name_sorting_order_p, ITs_contacts_service2_setting_startup, ITs_contacts_service2_setting_cleanup}, {"ITc_contacts_setting_add_remove_name_display_order_changed_cb_p", ITc_contacts_setting_add_remove_name_display_order_changed_cb_p, ITs_contacts_service2_setting_startup, ITs_contacts_service2_setting_cleanup}, {"ITc_contacts_setting_add_remove_name_sorting_order_changed_cb_p", ITc_contacts_setting_add_remove_name_sorting_order_changed_cb_p, ITs_contacts_service2_setting_startup, ITs_contacts_service2_setting_cleanup}, - {"ITc_contacts_sim_get_initialization_status_p", ITc_contacts_sim_get_initialization_status_p, ITs_contacts_service2_sim_startup, ITs_contacts_service2_sim_cleanup}, - {"ITc_contacts_sim_import_all_contacts_p", ITc_contacts_sim_import_all_contacts_p, ITs_contacts_service2_sim_startup, ITs_contacts_service2_sim_cleanup}, {"ITc_contacts_sim_get_initialization_status_by_sim_slot_no_p", ITc_contacts_sim_get_initialization_status_by_sim_slot_no_p, ITs_contacts_service2_sim_startup, ITs_contacts_service2_sim_cleanup}, {"ITc_contacts_sim_import_all_contacts_by_sim_slot_no_p", ITc_contacts_sim_import_all_contacts_by_sim_slot_no_p, ITs_contacts_service2_sim_startup, ITs_contacts_service2_sim_cleanup}, {"ITc_contacts_record_create_destroy_sip_p", ITc_contacts_record_create_destroy_sip_p, ITs_contacts_service2_sip_startup, ITs_contacts_service2_sip_cleanup}, -- 2.7.4