[ITC][location-manager][ACR-1593][Added location_manager_get_velocity_accuracy API] 25/244225/4
authorPriya Kohli <priya.kohli@samsung.com>
Wed, 16 Sep 2020 06:35:28 +0000 (12:05 +0530)
committershobhit verma <shobhit.v@samsung.com>
Wed, 23 Sep 2020 10:36:45 +0000 (10:36 +0000)
Change-Id: I2a8de23c10fad3b5e9c7edd3653747983c875af7
Signed-off-by: Priya Kohli <priya.kohli@samsung.com>
src/itc/location-manager/ITs-location-manager.c
src/itc/location-manager/tct-location-manager-native_mobile.h
src/itc/location-manager/tct-location-manager-native_tizeniot.h
src/itc/location-manager/tct-location-manager-native_wearable.h

index b31fc69a26a152f0cb14272bbe509bc75ce3a5fb..8066bdb8fdb3e70e3fde79cfa3e7c655fffccb12 100755 (executable)
@@ -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;
+}
 /** @} */
 /** @} */
index d0672f27765855b2b57b90303fcbe33e7f68fd5d..b817a240543629cbb577668ca6011adc9e196df3 100755 (executable)
@@ -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},
index d0672f27765855b2b57b90303fcbe33e7f68fd5d..b817a240543629cbb577668ca6011adc9e196df3 100755 (executable)
@@ -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},
index d0672f27765855b2b57b90303fcbe33e7f68fd5d..b817a240543629cbb577668ca6011adc9e196df3 100755 (executable)
@@ -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},