From a2e63998fb47662227a8d707ffb62d51b99be205 Mon Sep 17 00:00:00 2001 From: Olga Khlopkova Date: Thu, 19 Sep 2019 13:31:39 +0300 Subject: [PATCH] Modified test case for speed camera notification --- .../speed_camera_notifications_tests.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/routing/routing_integration_tests/speed_camera_notifications_tests.cpp b/routing/routing_integration_tests/speed_camera_notifications_tests.cpp index 7299364438..142751b118 100644 --- a/routing/routing_integration_tests/speed_camera_notifications_tests.cpp +++ b/routing/routing_integration_tests/speed_camera_notifications_tests.cpp @@ -320,25 +320,15 @@ UNIT_TEST(SpeedCameraNotification_AutoAlwaysMode_7) TEST(!CheckBeepSignal(routingSession), ()); } - // Intermediate Move for correct calculating of passedDistance. - { - double const speedKmPH = 40.0; - ChangePosition({55.76559, 37.59016}, speedKmPH, routingSession); - TEST_EQUAL(CheckZone(routingSession, speedKmPH), SpeedCameraManager::Interval::VoiceNotificationZone, ()); - TEST(!CheckVoiceNotification(routingSession), ()); - TEST(!CheckBeepSignal(routingSession), ()); - } - - // No exceed speed limit in beep zone, but we did VoiceNotification earlier, + // No exceed speed limit in beep zone, we did no VoiceNotification, // so now we make BeedSignal. { double const speedKmPH = 40.0; - ChangePosition({55.76527, 37.58970}, speedKmPH, routingSession); + ChangePosition({55.76559, 37.59016}, speedKmPH, routingSession); TEST_EQUAL(CheckZone(routingSession, speedKmPH), SpeedCameraManager::Interval::BeepSignalZone, ()); TEST(!CheckVoiceNotification(routingSession), ()); TEST(CheckBeepSignal(routingSession), ()); } - } }