From: Priya Kohli Date: Wed, 16 Sep 2020 06:35:28 +0000 (+0530) Subject: [ITC][location-manager][ACR-1593][Added location_manager_get_velocity_accuracy API] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ba6f5e6678f0af96e29d117b1aa03bdb24d4783;p=test%2Ftct%2Fnative%2Fapi.git [ITC][location-manager][ACR-1593][Added location_manager_get_velocity_accuracy API] Change-Id: I2a8de23c10fad3b5e9c7edd3653747983c875af7 Signed-off-by: Priya Kohli --- diff --git a/src/itc/location-manager/ITs-location-manager.c b/src/itc/location-manager/ITs-location-manager.c index b31fc69a2..8066bdb8f 100755 --- a/src/itc/location-manager/ITs-location-manager.c +++ b/src/itc/location-manager/ITs-location-manager.c @@ -1606,5 +1606,31 @@ int ITc_location_manager_is_enabled_mock_location_p(void) return 0; } + +/** +* @testcase ITc_location_manager_get_velocity_accuracy_p +* @since_tizen 6.0 +* @author SRID(priya.kohli) +* @reviewer SRID(shobhit.v) +* @type auto +* @description Gets the current velocity accuracy information. +* @scenario Gets the current velocity accuracy information. +* @apicovered location_manager_get_velocity_accuracy +* @passcase When location_manager_get_velocity_accuracy is successful +* @failcase If target API fails or any precondition API fails +* @precondition The location service state must be LOCATIONS_SERVICE_ENABLED with location_manager_start +* @postcondition None +*/ +int ITc_location_manager_get_velocity_accuracy_p(void) +{ + START_TEST_MANAGER; + + double dVelocityAccuracy = -1; + + location_error_e nRet = location_manager_get_velocity_accuracy(g_stManager, &dVelocityAccuracy); + PRINT_RESULT(LOCATIONS_ERROR_NONE, nRet, "location_manager_get_velocity_accuracy", LocationManagerGetError(nRet)); + + return 0; +} /** @} */ /** @} */ 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 d0672f277..b817a2405 100755 --- a/src/itc/location-manager/tct-location-manager-native_mobile.h +++ b/src/itc/location-manager/tct-location-manager-native_mobile.h @@ -56,6 +56,7 @@ extern int ITc_location_manager_set_unset_distance_based_location_changed_cb_p(v extern int ITc_location_manager_enable_mock_location_p(void); extern int ITc_location_manager_set_clear_mock_location_p(void); extern int ITc_location_manager_is_enabled_mock_location_p(void); +extern int ITc_location_manager_get_velocity_accuracy_p(void); extern int ITc_location_bounds_create_destory_rect_p(void); extern int ITc_location_bounds_get_rect_coords_p(void); extern int ITc_location_bounds_create_destory_circle_p(void); @@ -105,6 +106,7 @@ testcase tc_array[] = { {"ITc_location_manager_enable_mock_location_p",ITc_location_manager_enable_mock_location_p,ITs_location_manager_startup,ITs_location_manager_cleanup}, {"ITc_location_manager_set_clear_mock_location_p",ITc_location_manager_set_clear_mock_location_p,ITs_location_manager_startup,ITs_location_manager_cleanup}, {"ITc_location_manager_is_enabled_mock_location_p",ITc_location_manager_is_enabled_mock_location_p,ITs_location_manager_startup,ITs_location_manager_cleanup}, + {"ITc_location_manager_get_velocity_accuracy_p",ITc_location_manager_get_velocity_accuracy_p,ITs_location_manager_startup,ITs_location_manager_cleanup}, {"ITc_location_bounds_create_destory_rect_p",ITc_location_bounds_create_destory_rect_p,ITs_location_bounds_startup,ITs_location_bounds_cleanup}, {"ITc_location_bounds_get_rect_coords_p",ITc_location_bounds_get_rect_coords_p,ITs_location_bounds_startup,ITs_location_bounds_cleanup}, {"ITc_location_bounds_create_destory_circle_p",ITc_location_bounds_create_destory_circle_p,ITs_location_bounds_startup,ITs_location_bounds_cleanup}, diff --git a/src/itc/location-manager/tct-location-manager-native_tizeniot.h b/src/itc/location-manager/tct-location-manager-native_tizeniot.h index d0672f277..b817a2405 100755 --- a/src/itc/location-manager/tct-location-manager-native_tizeniot.h +++ b/src/itc/location-manager/tct-location-manager-native_tizeniot.h @@ -56,6 +56,7 @@ extern int ITc_location_manager_set_unset_distance_based_location_changed_cb_p(v extern int ITc_location_manager_enable_mock_location_p(void); extern int ITc_location_manager_set_clear_mock_location_p(void); extern int ITc_location_manager_is_enabled_mock_location_p(void); +extern int ITc_location_manager_get_velocity_accuracy_p(void); extern int ITc_location_bounds_create_destory_rect_p(void); extern int ITc_location_bounds_get_rect_coords_p(void); extern int ITc_location_bounds_create_destory_circle_p(void); @@ -105,6 +106,7 @@ testcase tc_array[] = { {"ITc_location_manager_enable_mock_location_p",ITc_location_manager_enable_mock_location_p,ITs_location_manager_startup,ITs_location_manager_cleanup}, {"ITc_location_manager_set_clear_mock_location_p",ITc_location_manager_set_clear_mock_location_p,ITs_location_manager_startup,ITs_location_manager_cleanup}, {"ITc_location_manager_is_enabled_mock_location_p",ITc_location_manager_is_enabled_mock_location_p,ITs_location_manager_startup,ITs_location_manager_cleanup}, + {"ITc_location_manager_get_velocity_accuracy_p",ITc_location_manager_get_velocity_accuracy_p,ITs_location_manager_startup,ITs_location_manager_cleanup}, {"ITc_location_bounds_create_destory_rect_p",ITc_location_bounds_create_destory_rect_p,ITs_location_bounds_startup,ITs_location_bounds_cleanup}, {"ITc_location_bounds_get_rect_coords_p",ITc_location_bounds_get_rect_coords_p,ITs_location_bounds_startup,ITs_location_bounds_cleanup}, {"ITc_location_bounds_create_destory_circle_p",ITc_location_bounds_create_destory_circle_p,ITs_location_bounds_startup,ITs_location_bounds_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 d0672f277..b817a2405 100755 --- a/src/itc/location-manager/tct-location-manager-native_wearable.h +++ b/src/itc/location-manager/tct-location-manager-native_wearable.h @@ -56,6 +56,7 @@ extern int ITc_location_manager_set_unset_distance_based_location_changed_cb_p(v extern int ITc_location_manager_enable_mock_location_p(void); extern int ITc_location_manager_set_clear_mock_location_p(void); extern int ITc_location_manager_is_enabled_mock_location_p(void); +extern int ITc_location_manager_get_velocity_accuracy_p(void); extern int ITc_location_bounds_create_destory_rect_p(void); extern int ITc_location_bounds_get_rect_coords_p(void); extern int ITc_location_bounds_create_destory_circle_p(void); @@ -105,6 +106,7 @@ testcase tc_array[] = { {"ITc_location_manager_enable_mock_location_p",ITc_location_manager_enable_mock_location_p,ITs_location_manager_startup,ITs_location_manager_cleanup}, {"ITc_location_manager_set_clear_mock_location_p",ITc_location_manager_set_clear_mock_location_p,ITs_location_manager_startup,ITs_location_manager_cleanup}, {"ITc_location_manager_is_enabled_mock_location_p",ITc_location_manager_is_enabled_mock_location_p,ITs_location_manager_startup,ITs_location_manager_cleanup}, + {"ITc_location_manager_get_velocity_accuracy_p",ITc_location_manager_get_velocity_accuracy_p,ITs_location_manager_startup,ITs_location_manager_cleanup}, {"ITc_location_bounds_create_destory_rect_p",ITc_location_bounds_create_destory_rect_p,ITs_location_bounds_startup,ITs_location_bounds_cleanup}, {"ITc_location_bounds_get_rect_coords_p",ITc_location_bounds_get_rect_coords_p,ITs_location_bounds_startup,ITs_location_bounds_cleanup}, {"ITc_location_bounds_create_destory_circle_p",ITc_location_bounds_create_destory_circle_p,ITs_location_bounds_startup,ITs_location_bounds_cleanup},