diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-06-15 16:05:17 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-06-23 19:54:39 +0300 |
commit | 54c2a331d72057cddf94277cad83ec99acdda6fa (patch) | |
tree | 67443c4b1887f78086a7dfbf4b8b78718da23e7a /pedestrian_routing_tests | |
parent | 3e109cfa2b077156c488fdce7de46abf8ecfa6b8 (diff) |
[routing][tests] Fixing pedestrian_routing_test after fixing an issue on UI crash on long routing planning completion.
Diffstat (limited to 'pedestrian_routing_tests')
-rw-r--r-- | pedestrian_routing_tests/pedestrian_routing_tests.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pedestrian_routing_tests/pedestrian_routing_tests.cpp b/pedestrian_routing_tests/pedestrian_routing_tests.cpp index 3c7598eb07..95632a8372 100644 --- a/pedestrian_routing_tests/pedestrian_routing_tests.cpp +++ b/pedestrian_routing_tests/pedestrian_routing_tests.cpp @@ -6,6 +6,7 @@ #include "routing/features_road_graph.hpp" #include "routing/road_graph_router.hpp" #include "routing/route.hpp" +#include "routing/pedestrian_directions.hpp" #include "routing/pedestrian_model.hpp" #include "routing/router_delegate.hpp" @@ -94,9 +95,10 @@ unique_ptr<routing::IRouter> CreatePedestrianAStarTestRouter(Index & index, stor auto UKGetter = [&](m2::PointD const & pt) { return cig.GetRegionCountryId(pt); }; unique_ptr<routing::IVehicleModelFactory> vehicleModelFactory(new SimplifiedPedestrianModelFactory()); unique_ptr<routing::IRoutingAlgorithm> algorithm(new routing::AStarRoutingAlgorithm()); + unique_ptr<routing::IDirectionsEngine> directionsEngine(new routing::PedestrianDirectionsEngine()); unique_ptr<routing::IRouter> router(new routing::RoadGraphRouter( "test-astar-pedestrian", index, UKGetter, routing::IRoadGraph::Mode::IgnoreOnewayTag, - move(vehicleModelFactory), move(algorithm), nullptr)); + move(vehicleModelFactory), move(algorithm), move(directionsEngine))); return router; } @@ -105,9 +107,10 @@ unique_ptr<routing::IRouter> CreatePedestrianAStarBidirectionalTestRouter(Index auto UKGetter = [&](m2::PointD const & pt) { return cig.GetRegionCountryId(pt); }; unique_ptr<routing::IVehicleModelFactory> vehicleModelFactory(new SimplifiedPedestrianModelFactory()); unique_ptr<routing::IRoutingAlgorithm> algorithm(new routing::AStarBidirectionalRoutingAlgorithm()); + unique_ptr<routing::IDirectionsEngine> directionsEngine(new routing::PedestrianDirectionsEngine()); unique_ptr<routing::IRouter> router(new routing::RoadGraphRouter( "test-astar-bidirectional-pedestrian", index, UKGetter, routing::IRoadGraph::Mode::IgnoreOnewayTag, - move(vehicleModelFactory), move(algorithm), nullptr)); + move(vehicleModelFactory), move(algorithm), move(directionsEngine))); return router; } |