From c746a15ff1b9b09d5295c9a25413a169e4008684 Mon Sep 17 00:00:00 2001 From: "kj7.sung" Date: Tue, 27 Sep 2016 13:26:35 +0900 Subject: [PATCH] [ITC][location-manager][Non-ACR][TSAM-7930] Signed-off-by: kj7.sung Change-Id: I37deb6537a06e0b44a0d82935cecea3147870074 --- .../location-manager/ITs-location-manager.c | 276 +++++++++--------- 1 file changed, 144 insertions(+), 132 deletions(-) diff --git a/src/itc/location-manager/ITs-location-manager.c b/src/itc/location-manager/ITs-location-manager.c index 7c7b3d667..1443c4135 100755 --- a/src/itc/location-manager/ITs-location-manager.c +++ b/src/itc/location-manager/ITs-location-manager.c @@ -25,10 +25,10 @@ //Callbacks /** -* @function LocationPositionUpdatedCB -* @description Called periodically with updated position information +* @function LocationPositionUpdatedCB +* @description Called periodically with updated position information * @parameter double latitude, double longitude, double altitude, time_t timestamp, void *user_data -* @return NA +* @return NA */ static void LocationPositionUpdatedCB(double latitude, double longitude, double altitude, time_t timestamp, void *user_data) { @@ -44,10 +44,10 @@ static void LocationPositionUpdatedCB(double latitude, double longitude, double } /** -* @function LocationVelocityUpdatedCB -* @description Called periodically with updated velocity information +* @function LocationVelocityUpdatedCB +* @description Called periodically with updated velocity information * @parameter double speed, double direction, double climb, time_t timestamp, void *user_data -* @return NA +* @return NA */ static void LocationVelocityUpdatedCB(double speed, double direction, double climb, time_t timestamp, void *user_data) { @@ -63,10 +63,10 @@ static void LocationVelocityUpdatedCB(double speed, double direction, double cli } /** -* @function LocationZoneChangedCB -* @description Called when the user defined zones are entered or left. +* @function LocationZoneChangedCB +* @description Called when the user defined zones are entered or left. * @parameter location_boundary_state_e state, double latitude, double longitude, double altitude, time_t timestamp, void *user_data -* @return NA +* @return NA */ static void LocationZoneChangedCB(location_boundary_state_e state, double latitude, double longitude, double altitude, time_t timestamp, void *user_data) { @@ -82,10 +82,10 @@ static void LocationZoneChangedCB(location_boundary_state_e state, double latitu } /** -* @function LocationServiceStateChangeCb -* @description Called when state is changed +* @function LocationServiceStateChangeCb +* @description Called when state is changed * @parameter location_service_state_e state, void *user_data -* @return NA +* @return NA */ void LocationServiceStateChangeCb(location_service_state_e state, void *user_data) { @@ -119,10 +119,10 @@ void LocationServiceStateChangeCb(location_service_state_e state, void *user_dat } /** -* @function LocationServiceMethodStateChangeCb -* @description Called when state is changed +* @function LocationServiceMethodStateChangeCb +* @description Called when state is changed * @parameter location_service_state_e state, void *user_data -* @return NA +* @return NA */ void LocationServiceMethodStateChangeCb(location_service_state_e state, void *user_data) { @@ -156,10 +156,10 @@ void LocationServiceMethodStateChangeCb(location_service_state_e state, void *us } /** -* @function LocationBoundsCB -* @description Called iteratively to notify you of location bounds +* @function LocationBoundsCB +* @description Called iteratively to notify you of location bounds * @parameter location_bounds_h bounds, void *user_data -* @return NA +* @return NA */ static bool LocationBoundsCB(location_bounds_h bounds, void *user_data) { @@ -185,10 +185,10 @@ static bool LocationBoundsCB(location_bounds_h bounds, void *user_data) } /** -* @function LocationSettingChangedCB -* @description Called when the user defined zones are entered or exited. +* @function LocationSettingChangedCB +* @description Called when the user defined zones are entered or exited. * @parameter location_method_e method, bool enable, void *user_data -* @return NA +* @return NA */ static void LocationSettingChangedCB(location_method_e method, bool enable, void *user_data) { @@ -204,10 +204,10 @@ static void LocationSettingChangedCB(location_method_e method, bool enable, void } /** -* @function LocationUpdatedCB -* @description Called at defined interval with updated location information +* @function LocationUpdatedCB +* @description Called at defined interval with updated location information * @parameter location_error_e error, double latitude, double longitude, double altitude, time_t timestamp, double speed, double direction, double climb, void *user_data -* @return NA +* @return NA */ static void LocationUpdatedCB(location_error_e error, double latitude, double longitude, double altitude, time_t timestamp, double speed, double direction, double climb, void *user_data) { @@ -226,10 +226,10 @@ FPRINTF("[Line : %d][%s] LocationUpdatedCB callback called. error=[%d]\\n", __LI } /* - * @function LocationChangedCB - * @description Called at defined interval with updated location information. + * @function LocationChangedCB + * @description Called at defined interval with updated location information. * @parameter double latitude, double longitude, double altitude, double speed, double direction, double horizontal_accuracy, time_t timestamp, void *user_data - * @return NA + * @return NA */ static void LocationChangedCB(double latitude, double longitude, double altitude, double speed, double direction, double horizontal_accuracy, time_t timestamp, void *user_data) { @@ -245,10 +245,10 @@ static void LocationChangedCB(double latitude, double longitude, double altitude } /** -* @function ITs_location_manager_startup -* @description Called before each test, set the service boolean true +* @function ITs_location_manager_startup +* @description Called before each test, set the service boolean true * @parameter NA -* @return NA +* @return NA */ void ITs_location_manager_startup(void) { @@ -272,10 +272,10 @@ void ITs_location_manager_startup(void) } /** -* @function ITs_location_manager_cleanup -* @description Called after each test +* @function ITs_location_manager_cleanup +* @description Called after each test * @parameter NA -* @return NA +* @return NA */ void ITs_location_manager_cleanup(void) { @@ -291,8 +291,8 @@ void ITs_location_manager_cleanup(void) } /** @addtogroup itc-location-manager-testcases -* @brief Integration testcases for module location-manager -* @ingroup itc-location-manager +* @brief Integration testcases for module location-manager +* @ingroup itc-location-manager * @{ */ @@ -300,15 +300,15 @@ void ITs_location_manager_cleanup(void) //& type: auto /** -* @testcase ITc_location_manager_start_stop_p +* @testcase ITc_location_manager_start_stop_p * @since_tizen 2.3 * @author SRID(sameer.g1) * @reviewer SRID(gupta.sanjay) -* @type auto +* @type auto * @description Starts/stops the location service. * @scenario Create location manager\n * Start location service\n -* Stop the location service\n +* Stop the location service\n * Destroy location manager * @apicovered location_manager_start, location_manager_stop * @passcase When location_manager_start and location_manager_stop are successful @@ -385,14 +385,14 @@ int ITc_location_manager_start_stop_p(void) //& type: auto /** -* @testcase ITc_location_manager_create_destroy_p +* @testcase ITc_location_manager_create_destroy_p * @since_tizen 2.3 * @author SRID(sameer.g1) * @reviewer SRID(gupta.sanjay) -* @type auto +* @type auto * @description Create location manager and destroy it * @scenario Create manager\n -* Destroy manager +* Destroy manager * @apicovered location_manager_create, location_manager_destroy * @passcase When location_manager_create and location_manager_destroy are successful * @failcase If target API fails or any precondition API fails @@ -466,7 +466,7 @@ int ITc_location_manager_create_destroy_p(void) continue; } else - { + { PRINT_RESULT(LOCATIONS_ERROR_NONE, nRet, "location_manager_create", LocationManagerGetError(nRet)); } @@ -483,15 +483,15 @@ int ITc_location_manager_create_destroy_p(void) //& type: auto /** -* @testcase ITc_location_manager_set_unset_service_state_changed_cb_p +* @testcase ITc_location_manager_set_unset_service_state_changed_cb_p * @since_tizen 2.3 * @author SRID(sameer.g1) * @reviewer SRID(gupta.sanjay) -* @type auto +* @type auto * @description Registers/Unregisters a callback function to be invoked when the location service state is changed. * @scenario Registers a callback function to be invoked when the location service state is changed\n * Check if callback is invoked\n -* Unregisters the callback function +* Unregisters the callback function * @apicovered location_manager_set_service_state_changed_cb, location_manager_unset_service_state_changed_cb * @passcase When location_manager_set_service_state_changed_cb and location_manager_unset_service_state_changed_cb are successful * @failcase If target API fails or any precondition API fails @@ -570,15 +570,15 @@ int ITc_location_manager_set_unset_service_state_changed_cb_p(void) //& type: auto /** -* @testcase ITc_location_manager_get_accuracy_p +* @testcase ITc_location_manager_get_accuracy_p * @since_tizen 2.3 * @author SRID(sameer.g1) * @reviewer SRID(gupta.sanjay) -* @type auto +* @type auto * @description Gets the current accuracy information * @scenario Create and start location manager\n * Get the current accuracy information\n -* Stop and Destroy location manager +* Stop and Destroy location manager * @apicovered location_manager_get_accuracy * @passcase When location_manager_get_accuracy is successful * @failcase If target API fails or any precondition API fails @@ -608,15 +608,15 @@ int ITc_location_manager_get_accuracy_p(void) //& type: auto /** -* @testcase ITc_location_manager_get_distance_p +* @testcase ITc_location_manager_get_distance_p * @since_tizen 2.3 * @author SRID(sameer.g1) * @reviewer SRID(gupta.sanjay) -* @type auto +* @type auto * @description Gets the distance in meters between two locations. * @scenario Create and start location manager\n * Get the distance in meters between two locations\n -* Stop and Destroy location manager +* Stop and Destroy location manager * @apicovered location_manager_get_distance * @passcase When location_manager_get_distance is successful * @failcase If target API fails or any precondition API fails @@ -646,15 +646,15 @@ int ITc_location_manager_get_distance_p(void) //& type: auto /** -* @testcase ITc_location_manager_get_last_accuracy_p +* @testcase ITc_location_manager_get_last_accuracy_p * @since_tizen 2.3 * @author SRID(sameer.g1) * @reviewer SRID(gupta.sanjay) -* @type auto +* @type auto * @description Gets the last recorded accuracy information * @scenario Create and start location manager\n * Get the last recorded accuracy information\n -* Stop and Destroy location manager +* Stop and Destroy location manager * @apicovered location_manager_get_last_accuracy * @passcase When location_manager_get_last_accuracy is successful * @failcase If target API fails or any precondition API fails @@ -685,15 +685,15 @@ int ITc_location_manager_get_last_accuracy_p(void) //& type: auto /** -* @testcase ITc_location_manager_get_last_location_p +* @testcase ITc_location_manager_get_last_location_p * @since_tizen 2.3 * @author SRID(sameer.g1) * @reviewer SRID(gupta.sanjay) -* @type auto +* @type auto * @description Gets the last location information * @scenario Create and start location manager\n * Get the last location information\n -* Stop and Destroy location manager +* Stop and Destroy location manager * @apicovered location_manager_get_last_location * @passcase When location_manager_get_last_location is successful * @failcase If target API fails or any precondition API fails @@ -724,15 +724,15 @@ int ITc_location_manager_get_last_location_p(void) //& type: auto /** -* @testcase ITc_location_manager_get_last_position_p +* @testcase ITc_location_manager_get_last_position_p * @since_tizen 2.3 * @author SRID(sameer.g1) * @reviewer SRID(gupta.sanjay) -* @type auto +* @type auto * @description Gets the last recorded position information * @scenario Create and start location manager\n * Get the last recorded position information\n -* Stop and Destroy location manager +* Stop and Destroy location manager * @apicovered location_manager_get_last_position * @passcase When location_manager_get_last_position is successful * @failcase If target API fails or any precondition API fails @@ -762,15 +762,15 @@ int ITc_location_manager_get_last_position_p(void) //& type: auto /** -* @testcase ITc_location_manager_get_last_velocity_p +* @testcase ITc_location_manager_get_last_velocity_p * @since_tizen 2.3 * @author SRID(sameer.g1) * @reviewer SRID(gupta.sanjay) -* @type auto +* @type auto * @description Gets the last recorded velocity information * @scenario Create and start location manager\n * Get the last recorded velocity information\n -* Stop and Destroy location manager +* Stop and Destroy location manager * @apicovered location_manager_get_last_velocity * @passcase When location_manager_get_last_velocity is successful * @failcase If target API fails or any precondition API fails @@ -800,15 +800,15 @@ int ITc_location_manager_get_last_velocity_p(void) //& type: auto /** -* @testcase ITc_location_manager_get_location_p +* @testcase ITc_location_manager_get_location_p * @since_tizen 2.3 * @author SRID(sameer.g1) * @reviewer SRID(gupta.sanjay) -* @type auto +* @type auto * @description Gets the current position information * @scenario Create and start location manager\n * Get the current position information\n -* Stop and Destroy location manager +* Stop and Destroy location manager * @apicovered location_manager_get_location * @passcase When location_manager_get_location is successful * @failcase If target API fails or any precondition API fails @@ -840,16 +840,16 @@ int ITc_location_manager_get_location_p(void) //& type: auto /** -* @testcase ITc_location_manager_get_is_supported_method_p +* @testcase ITc_location_manager_get_is_supported_method_p * @since_tizen 2.3 * @author SRID(sameer.g1) * @reviewer SRID(gupta.sanjay) -* @type auto +* @type auto * @description Gets/checks the given location manager's method. * @scenario Create and start location manager\n * Get the given location manager's method\n * Checks whether the given location method is available or not\n -* Stop and Destroy location manager +* Stop and Destroy location manager * @apicovered location_manager_get_method , location_manager_is_supported_method * @passcase When location_manager_get_method, location_manager_is_supported_method are successful * @failcase If target API fails or any precondition API fails @@ -880,15 +880,15 @@ int ITc_location_manager_get_is_supported_method_p(void) //& type: auto /** -* @testcase ITc_location_manager_get_position_p +* @testcase ITc_location_manager_get_position_p * @since_tizen 2.3 * @author SRID(sameer.g1) * @reviewer SRID(gupta.sanjay) -* @type auto +* @type auto * @description Gets the current position information * @scenario Create and start location manager\n * Get the current position information\n -* Stop and Destroy location manager +* Stop and Destroy location manager * @apicovered location_manager_get_position * @passcase When location_manager_get_position is successful * @failcase If target API fails or any precondition API fails @@ -918,15 +918,15 @@ int ITc_location_manager_get_position_p(void) //& type: auto /** -* @testcase ITc_location_manager_get_velocity_p +* @testcase ITc_location_manager_get_velocity_p * @since_tizen 2.3 * @author SRID(sameer.g1) * @reviewer SRID(gupta.sanjay) -* @type auto +* @type auto * @description Gets the current position information * @scenario Create and start location manager\n * Get the current position information\n -* Stop and Destroy location manager +* Stop and Destroy location manager * @apicovered location_manager_get_velocity * @passcase When location_manager_get_velocity is successful * @failcase If target API fails or any precondition API fails @@ -957,14 +957,14 @@ int ITc_location_manager_get_velocity_p(void) //& type: auto /** -* @testcase ITc_location_manager_add_remove_boundary_circle_p +* @testcase ITc_location_manager_add_remove_boundary_circle_p * @since_tizen 2.3 * @author SRID(sameer.g1) * @reviewer SRID(gupta.sanjay) -* @type auto +* @type auto * @description Adds/Removes bounds for a given location manager. * @scenario Adds bounds for a given location manager\n -* Deletes bounds for a given location manager. +* Deletes bounds for a given location manager. * @apicovered location_manager_add_boundary, location_manager_remove_boundary * @passcase When location_manager_add_boundary and location_manager_remove_boundary are successful * @failcase If target API fails or any precondition API fails @@ -1005,14 +1005,14 @@ int ITc_location_manager_add_remove_boundary_circle_p(void) //& type: auto /** -* @testcase ITc_location_manager_add_remove_boundary_rect_p +* @testcase ITc_location_manager_add_remove_boundary_rect_p * @since_tizen 2.3 * @author SRID(shobhit.v) * @reviewer SRID(gupta.sanjay) -* @type auto +* @type auto * @description Adds/Removes bounds for a given location manager. * @scenario Adds bounds for a given location manager\n -* Deletes bounds for a given location manager. +* Deletes bounds for a given location manager. * @apicovered location_manager_add_boundary, location_manager_remove_boundary * @passcase When location_manager_add_boundary and location_manager_remove_boundary are successful * @failcase If target API fails or any precondition API fails @@ -1055,14 +1055,14 @@ int ITc_location_manager_add_remove_boundary_rect_p(void) //& type: auto /** -* @testcase ITc_location_manager_add_remove_boundary_polygon_p +* @testcase ITc_location_manager_add_remove_boundary_polygon_p * @since_tizen 2.3 * @author SRID(shobhit.v) * @reviewer SRID(gupta.sanjay) -* @type auto +* @type auto * @description Adds/Removes bounds for a given location manager. * @scenario Adds bounds for a given location manager\n -* Deletes bounds for a given location manager. +* Deletes bounds for a given location manager. * @apicovered location_manager_add_boundary, location_manager_remove_boundary * @passcase When location_manager_add_boundary and location_manager_remove_boundary are successful * @failcase If target API fails or any precondition API fails @@ -1106,14 +1106,14 @@ int ITc_location_manager_add_remove_boundary_polygon_p(void) //& type: auto /** -* @testcase ITc_location_manager_set_unset_position_updated_cb_p +* @testcase ITc_location_manager_set_unset_position_updated_cb_p * @since_tizen 2.3 * @author SRID(sameer.g1) * @reviewer SRID(gupta.sanjay) -* @type auto +* @type auto * @description Registers/Unregisters a callback function to be invoked periodically with updated position information * @scenario Registers a callback function to be invoked periodically with updated position information\n -* Unregisters the callback function +* Unregisters the callback function * @apicovered location_manager_set_position_updated_cb, location_manager_unset_position_updated_cb * @passcase When location_manager_set_position_updated_cb and location_manager_unset_position_updated_cb are successful * @failcase If target API fails or any precondition API fails @@ -1141,14 +1141,14 @@ int ITc_location_manager_set_unset_position_updated_cb_p(void) //& type: auto /** -* @testcase ITc_location_manager_set_unset_velocity_updated_cb_p +* @testcase ITc_location_manager_set_unset_velocity_updated_cb_p * @since_tizen 2.3 * @author SRID(sameer.g1) * @reviewer SRID(gupta.sanjay) -* @type auto +* @type auto * @description Registers/Unregisters a callback function to be invoked periodically with updated velocity information * @scenario Registers a callback function to be invoked periodically with updated velocity information\n -* Unregisters the callback function +* Unregisters the callback function * @apicovered location_manager_set_velocity_updated_cb, location_manager_unset_velocity_updated_cb * @passcase When location_manager_set_velocity_updated_cb and location_manager_unset_velocity_updated_cb are successful * @failcase If target API fails or any precondition API fails @@ -1176,15 +1176,15 @@ int ITc_location_manager_set_unset_velocity_updated_cb(void) //& type: auto /** -* @testcase ITc_location_manager_set_unset_zone_changed_cb_p +* @testcase ITc_location_manager_set_unset_zone_changed_cb_p * @since_tizen 2.3 * @author SRID(sameer.g1) * @reviewer SRID(gupta.sanjay) -* @type auto +* @type auto * @description Registers/Unregisters a callback function to be invoked when the previously set boundary area is entered or left. * @scenario Registers a callback function to be invoked when the previously set boundary area is entered or left\n * Check if callback is invoked\n -* Unregisters the callback function +* Unregisters the callback function * @apicovered location_manager_set_zone_changed_cb, location_manager_unset_zone_changed_cb * @passcase When location_manager_set_zone_changed_cb and location_manager_unset_zone_changed_cb are successful * @failcase If target API fails or any precondition API fails @@ -1211,11 +1211,11 @@ int ITc_location_manager_set_unset_zone_changed_cb_p(void) //& type: auto /** -* @testcase ITc_location_manager_foreach_boundary_p +* @testcase ITc_location_manager_foreach_boundary_p * @since_tizen 2.3 * @author SRID(sameer.g1) * @reviewer SRID(gupta.sanjay) -* @type auto +* @type auto * @description Retrieves all location bounds by invoking a specific callback for each location bounds * @scenario Add boundary\n * Retrieve all location bounds by invoking a specific callback for each location bounds\n @@ -1271,14 +1271,14 @@ int ITc_location_manager_foreach_boundary_p(void) //& type: auto /** -* @testcase ITc_location_manager_set_unset_setting_changed_cb_p +* @testcase ITc_location_manager_set_unset_setting_changed_cb_p * @since_tizen 2.3 * @author SRID(sameer.g1) * @reviewer SRID(gupta.sanjay) -* @type auto +* @type auto * @description Registers/Unregisters a callback function to be invoked when the location setting is changed. * @scenario Registers a callback function to be invoked when the location setting is changed\n -* Unregisters the callback function +* Unregisters the callback function * @apicovered location_manager_set_setting_changed_cb, location_manager_unset_setting_changed_cb * @passcase When location_manager_set_setting_changed_cb and location_manager_unset_setting_changed_cb are successful * @failcase If target API fails or any precondition API fails @@ -1332,17 +1332,29 @@ int ITc_location_manager_set_unset_setting_changed_cb_p(void) } } - if ( eTestLocationMethod != -1 ) + if ( eTestLocationMethod >= LOCATIONS_METHOD_HYBRID ) { g_bCallbackHit = false; - // Target API - location_error_e nRet = location_manager_set_setting_changed_cb(location_method[nEnumCounter], LocationSettingChangedCB, NULL); - PRINT_RESULT(LOCATIONS_ERROR_NONE, nRet, "location_manager_set_setting_changed_cb", LocationManagerGetError(nRet)); + if ( eTestLocationMethod < LOCATIONS_METHOD_PASSIVE ) { + // Target API + location_error_e nRet = location_manager_set_setting_changed_cb(location_method[nEnumCounter], LocationSettingChangedCB, NULL); + PRINT_RESULT(LOCATIONS_ERROR_NONE, nRet, "location_manager_set_setting_changed_cb", LocationManagerGetError(nRet)); + + // Target API + nRet = location_manager_unset_setting_changed_cb(location_method[nEnumCounter]); + PRINT_RESULT(LOCATIONS_ERROR_NONE, nRet, "location_manager_unset_setting_changed_cb", LocationManagerGetError(nRet)); + } + else + { + // Target API + location_error_e nRet = location_manager_set_setting_changed_cb(location_method[nEnumCounter], LocationSettingChangedCB, NULL); + PRINT_RESULT(LOCATIONS_ERROR_INCORRECT_METHOD, nRet, "location_manager_set_setting_changed_cb", LocationManagerGetError(nRet)); - // Target API - nRet = location_manager_unset_setting_changed_cb(location_method[nEnumCounter]); - PRINT_RESULT(LOCATIONS_ERROR_NONE, nRet, "location_manager_unset_setting_changed_cb", LocationManagerGetError(nRet)); + // Target API + nRet = location_manager_unset_setting_changed_cb(location_method[nEnumCounter]); + PRINT_RESULT(LOCATIONS_ERROR_INCORRECT_METHOD, nRet, "location_manager_unset_setting_changed_cb", LocationManagerGetError(nRet)); + } } } @@ -1353,16 +1365,16 @@ int ITc_location_manager_set_unset_setting_changed_cb_p(void) //& type: auto /** -* @testcase ITc_location_manager_request_single_location_p +* @testcase ITc_location_manager_request_single_location_p * @since_tizen 2.3 -* @author SRID(sameer.g1) -* @reviewer SRID(gupta.sanjay) -* @type auto +* @author SRID(sameer.g1) +* @reviewer SRID(gupta.sanjay) +* @type auto * @description Request to update current location once. * @scenario Create location manager\n * Request to update current location once\n * check callback\n -* Destroy location manager +* Destroy location manager * @apicovered location_manager_request_single_location * @passcase When location_manager_request_single_location is successful * @failcase If target API fails or any precondition API fails @@ -1394,15 +1406,15 @@ int ITc_location_manager_request_single_location_p(void) //& type: auto /** -* @testcase ITc_location_manager_is_enabled_method_p +* @testcase ITc_location_manager_is_enabled_method_p * @since_tizen 2.3 * @author SRID(sameer.g1) * @reviewer SRID(gupta.sanjay) -* @type auto +* @type auto * @description Checks whether the given location method is enabled or not on setting. * @scenario Create manager\n * Check whether the given location method is enabled or not\n -* Destroy manager +* Destroy manager * @apicovered location_manager_is_enabled_method * @passcase When location_manager_is_enabled_method is successful * @failcase If target API fails or any precondition API fails @@ -1429,14 +1441,14 @@ int ITc_location_manager_is_enabled_method_p(void) //& purpose: Registers/Unregisters a callback function to be invoked at defined interval with updated location information. //& type: auto /** - * @testcase ITc_location_manager_set_unset_location_changed_cb_p + * @testcase ITc_location_manager_set_unset_location_changed_cb_p * @since_tizen 2.4 * @author SRID(arjun.kumar) * @reviewer SRID(gupta.sanjay) - * @type auto + * @type auto * @description Registers/unregistered a callback function to be invoked at defined interval with updated location information. * @scenario Registers a callback function to be invoked at defined interval with updated location information. \n - * Unregisters the callback function + * Unregisters the callback function * @apicovered location_manager_set_location_changed_cb , location_manager_unset_location_changed_cb * @passcase When location_manager_set_location_changed_cb and location_manager_unset_location_changed_cb are successful. * @failcase If target api fails or any precondition api fails. @@ -1463,14 +1475,14 @@ int ITc_location_manager_set_unset_location_changed_cb_p(void) //& purpose: Registers/unregisters a callback function to be invoked at minimum interval or minimum distance with updated position information. //& type: auto /** - * @testcase ITc_location_manager_set_unset_distance_based_location_changed_cb_p + * @testcase ITc_location_manager_set_unset_distance_based_location_changed_cb_p * @since_tizen 2.4 * @author SRID(arjun.kumar) * @reviewer SRID(gupta.sanjay) - * @type auto + * @type auto * @description Registers/unregisters a callback function to be invoked at minimum interval or minimum distance with updated position information. * @scenario Registers a callback function to be invoked at minimum interval or minimum distance with updated position information\n - * Unregisters the callback function + * Unregisters the callback function * @apicovered location_manager_set_distance_based_location_changed_cb , location_manager_unset_distance_based_location_changed_cb * @passcase When location_manager_set_location_changed_cb and location_manager_unset_location_changed_cb are successful. * @failcase If target api fails or any precondition api fails. @@ -1498,11 +1510,11 @@ int ITc_location_manager_set_unset_distance_based_location_changed_cb_p(void) //& purpose: enable the mock location when developer mode is enable //& type: auto /** - * @testcase ITc_location_manager_enable_mock_location_p + * @testcase ITc_location_manager_enable_mock_location_p * @since_tizen 3.0 * @author SRID(nibha.sharma) * @reviewer SRID(parshant.v) - * @type auto + * @type auto * @description enable the mock location when developer mode is enable * @scenario enable the mock location when developer mode is enable * @apicovered location_manager_enable_mock_location @@ -1527,11 +1539,11 @@ int ITc_location_manager_enable_mock_location_p(void) //& purpose: Sets and clears a mock location for the given location method //& type: auto /** - * @testcase ITc_location_manager_set_clear_mock_location_p + * @testcase ITc_location_manager_set_clear_mock_location_p * @since_tizen 3.0 - * @author SRID(nibha.sharma) - * @reviewer SRID(parshant.v) - * @type auto + * @author SRID(nibha.sharma) + * @reviewer SRID(parshant.v) + * @type auto * @description Sets and clears a mock location for the given location method * @scenario Sets and clears a mock location for the given location method * @apicovered location_manager_set_mock_location and location_manager_clear_mock_location @@ -1573,14 +1585,14 @@ int ITc_location_manager_set_clear_mock_location_p(void) //& purpose: Checks whether mock location is enabled or not //& type: auto /** - * @testcase ITc_location_manager_is_enabled_mock_location_p + * @testcase ITc_location_manager_is_enabled_mock_location_p * @since_tizen 3.0 - * @author SRID(nibha.sharma) - * @reviewer SRID(parshant.v) - * @type auto + * @author SRID(nibha.sharma) + * @reviewer SRID(parshant.v) + * @type auto * @description Checks whether mock location is enabled or not * @scenario Checks whether mock location is enabled or not - * @apicovered location_manager_is_enabled_mock_location + * @apicovered location_manager_is_enabled_mock_location * @passcase When location_manager_is_enabled_mock_location api is successful. * @failcase If target api fails or any precondition api fails. * @precondition enable mock location and create location manager for mock location @@ -1591,12 +1603,12 @@ int ITc_location_manager_is_enabled_mock_location_p(void) START_TEST_MANAGER; bool bEnable = false; - + // Target API location_error_e nRet = location_manager_is_enabled_mock_location(&bEnable); PRINT_RESULT(LOCATIONS_ERROR_NONE, nRet, "location_manager_is_enabled_mock_location", LocationManagerGetError(nRet)); FPRINTF("[Line : %d][%s] location_manager_is_enabled_mock_location returned enable = %d\\n", __LINE__, API_NAMESPACE, bEnable); - + return 0; } /** @} */ -- 2.34.1