Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantin Shalnev <c.shalnev@corp.mail.ru>2015-07-24 20:23:37 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:57:43 +0300
commitb0cf9fa6f67957670a53c1e98482f470e749d1fc (patch)
tree8f9d84e0cffefe5ef5b86e5d0474afc28bb3aafb /integration_tests
parent5444d6b412c8a59fae06b3f66d7956e4801fcd0f (diff)
Some functions and params were renamed with better understandable names
Diffstat (limited to 'integration_tests')
-rw-r--r--integration_tests/routing_test_tools.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/integration_tests/routing_test_tools.cpp b/integration_tests/routing_test_tools.cpp
index 317785cd7e..141ffe9bc8 100644
--- a/integration_tests/routing_test_tools.cpp
+++ b/integration_tests/routing_test_tools.cpp
@@ -211,7 +211,7 @@ namespace integration
double relativeError)
{
double const delta = expectedRouteMeters * relativeError;
- double const routeMeters = route.GetDistance();
+ double const routeMeters = route.GetTotalDistance();
TEST(my::AlmostEqualAbs(routeMeters, expectedRouteMeters, delta),
("Route time test failed. Expected:", expectedRouteMeters, "have:", routeMeters, "delta:", delta));
}
@@ -219,7 +219,7 @@ namespace integration
void TestRouteTime(Route const & route, double expectedRouteSeconds, double relativeError)
{
double const delta = expectedRouteSeconds * relativeError;
- double const routeSeconds = route.GetAllTime();
+ double const routeSeconds = route.GetTotalTime();
TEST(my::AlmostEqualAbs(routeSeconds, expectedRouteSeconds, delta),
("Route time test failed. Expected:", expectedRouteSeconds, "have:", routeSeconds, "delta:", delta));
}