From 850b121fbe4c93334c0cd9762daab2e8571a6db4 Mon Sep 17 00:00:00 2001 From: Shilpa Jindal Date: Fri, 17 Jun 2016 10:07:39 +0530 Subject: [PATCH] [ITC][location-manager][ACR-668][Removed testcase for deprecated API] Change-Id: Id6f8ac0a8f3ec4bcb28e3addae5c50d6d9b7ab32 Signed-off-by: Shilpa Jindal --- src/itc/location-manager/ITs-location-manager.c | 36 ---------------------- .../tct-location-manager-native_mobile.h | 5 ++- .../tct-location-manager-native_wearable.h | 2 -- 3 files changed, 2 insertions(+), 41 deletions(-) diff --git a/src/itc/location-manager/ITs-location-manager.c b/src/itc/location-manager/ITs-location-manager.c index 88be1c3..d135e07 100755 --- a/src/itc/location-manager/ITs-location-manager.c +++ b/src/itc/location-manager/ITs-location-manager.c @@ -564,42 +564,6 @@ int ITc_location_manager_set_unset_service_state_changed_cb_p(void) return 0; } -//& purpose: Gets the current application's location accessibility status. -//& type: auto - -/** -* @testcase ITc_location_manager_get_accessibility_state_p -* @since_tizen 2.3 -* @author SRID(sameer.g1) -* @reviewer SRID(gupta.sanjay) -* @type auto -* @description Gets the current application's location accessibility status. -* @scenario Create manager\n -* Get the current application's location accessibility status\n -* Destroy manager -* @apicovered location_manager_get_accessibility_state -* @passcase When location_manager_get_accessibility_state is successful -* @failcase If target API fails or any precondition API fails -* @precondition None -* @postcondition None -*/ -int ITc_location_manager_get_accessibility_state_p(void) -{ - START_TEST_MANAGER; - - location_accessibility_state_e eState; - - // Target API - location_error_e nRet = location_manager_get_accessibility_state(&eState); - PRINT_RESULT(LOCATIONS_ERROR_NONE, nRet, "location_manager_get_accessibility_state", LocationManagerGetError(nRet)); - if(strcmp(LocationManagerGetAccessiblilityState(eState),"Unknown") == 0) - { - FPRINTF("[Line : %d][%s] location_manager_get_accessibility_state failed, error = state returned is Unknown\\n", __LINE__, API_NAMESPACE); - return 1; - } - return 0; -} - //& purpose: Gets the current accuracy information //& type: auto diff --git a/src/itc/location-manager/tct-location-manager-native_mobile.h b/src/itc/location-manager/tct-location-manager-native_mobile.h index ad1e0d1..3a9ed3b 100755 --- a/src/itc/location-manager/tct-location-manager-native_mobile.h +++ b/src/itc/location-manager/tct-location-manager-native_mobile.h @@ -44,7 +44,7 @@ extern int ITc_gps_status_set_unset_satellite_updated_cb_p(void); extern int ITc_location_manager_start_stop_p(void); extern int ITc_location_manager_create_destroy_p(void); extern int ITc_location_manager_set_unset_service_state_changed_cb_p(void); -extern int ITc_location_manager_get_accessibility_state_p(void); + extern int ITc_location_manager_get_accuracy_p(void); extern int ITc_location_manager_get_distance_p(void); extern int ITc_location_manager_get_last_accuracy_p(void); @@ -88,8 +88,7 @@ testcase tc_array[] = { {"ITc_gps_status_set_unset_satellite_updated_cb_p", ITc_gps_status_set_unset_satellite_updated_cb_p, ITs_location_gps_status_startup, ITs_location_gps_status_cleanup}, {"ITc_location_manager_start_stop_p", ITc_location_manager_start_stop_p, ITs_location_manager_startup, ITs_location_manager_cleanup}, {"ITc_location_manager_create_destroy_p", ITc_location_manager_create_destroy_p, ITs_location_manager_startup, ITs_location_manager_cleanup}, - {"ITc_location_manager_set_unset_service_state_changed_cb_p", ITc_location_manager_set_unset_service_state_changed_cb_p, ITs_location_manager_startup, ITs_location_manager_cleanup}, - {"ITc_location_manager_get_accessibility_state_p", ITc_location_manager_get_accessibility_state_p, ITs_location_manager_startup, ITs_location_manager_cleanup}, + {"ITc_location_manager_set_unset_service_state_changed_cb_p", ITc_location_manager_set_unset_service_state_changed_cb_p, ITs_location_manager_startup, ITs_location_manager_cleanup}, {"ITc_location_manager_get_accuracy_p", ITc_location_manager_get_accuracy_p, ITs_location_manager_startup, ITs_location_manager_cleanup}, {"ITc_location_manager_get_distance_p", ITc_location_manager_get_distance_p, ITs_location_manager_startup, ITs_location_manager_cleanup}, {"ITc_location_manager_get_last_accuracy_p", ITc_location_manager_get_last_accuracy_p, ITs_location_manager_startup, ITs_location_manager_cleanup}, diff --git a/src/itc/location-manager/tct-location-manager-native_wearable.h b/src/itc/location-manager/tct-location-manager-native_wearable.h index ad1e0d1..1358228 100755 --- a/src/itc/location-manager/tct-location-manager-native_wearable.h +++ b/src/itc/location-manager/tct-location-manager-native_wearable.h @@ -44,7 +44,6 @@ extern int ITc_gps_status_set_unset_satellite_updated_cb_p(void); extern int ITc_location_manager_start_stop_p(void); extern int ITc_location_manager_create_destroy_p(void); extern int ITc_location_manager_set_unset_service_state_changed_cb_p(void); -extern int ITc_location_manager_get_accessibility_state_p(void); extern int ITc_location_manager_get_accuracy_p(void); extern int ITc_location_manager_get_distance_p(void); extern int ITc_location_manager_get_last_accuracy_p(void); @@ -89,7 +88,6 @@ testcase tc_array[] = { {"ITc_location_manager_start_stop_p", ITc_location_manager_start_stop_p, ITs_location_manager_startup, ITs_location_manager_cleanup}, {"ITc_location_manager_create_destroy_p", ITc_location_manager_create_destroy_p, ITs_location_manager_startup, ITs_location_manager_cleanup}, {"ITc_location_manager_set_unset_service_state_changed_cb_p", ITc_location_manager_set_unset_service_state_changed_cb_p, ITs_location_manager_startup, ITs_location_manager_cleanup}, - {"ITc_location_manager_get_accessibility_state_p", ITc_location_manager_get_accessibility_state_p, ITs_location_manager_startup, ITs_location_manager_cleanup}, {"ITc_location_manager_get_accuracy_p", ITc_location_manager_get_accuracy_p, ITs_location_manager_startup, ITs_location_manager_cleanup}, {"ITc_location_manager_get_distance_p", ITc_location_manager_get_distance_p, ITs_location_manager_startup, ITs_location_manager_cleanup}, {"ITc_location_manager_get_last_accuracy_p", ITc_location_manager_get_last_accuracy_p, ITs_location_manager_startup, ITs_location_manager_cleanup}, -- 2.7.4