From 310e1416ef68fe610ffdec4d03d692a4878a7069 Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Tue, 27 Mar 2018 11:06:31 +0300 Subject: [PATCH] Moving routing_algorithm.hpp and cpp to routing_tests. --- map/framework.cpp | 1 - map/routing_manager.cpp | 1 - routing/CMakeLists.txt | 2 -- routing/routing_tests/CMakeLists.txt | 2 ++ routing/routing_tests/astar_router_test.cpp | 2 +- .../{ => routing_tests}/routing_algorithm.cpp | 2 +- .../{ => routing_tests}/routing_algorithm.hpp | 0 xcode/routing/routing.xcodeproj/project.pbxproj | 16 ++++++++-------- 8 files changed, 12 insertions(+), 14 deletions(-) rename routing/{ => routing_tests}/routing_algorithm.cpp (99%) rename routing/{ => routing_tests}/routing_algorithm.hpp (100%) diff --git a/map/framework.cpp b/map/framework.cpp index 77ea5af550..b0c978a17a 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -16,7 +16,6 @@ #include "routing/index_router.hpp" #include "routing/online_absent_fetcher.hpp" #include "routing/route.hpp" -#include "routing/routing_algorithm.hpp" #include "routing/routing_helpers.hpp" #include "routing_common/num_mwm_id.hpp" diff --git a/map/routing_manager.cpp b/map/routing_manager.cpp index 0158f95543..be95a57522 100644 --- a/map/routing_manager.cpp +++ b/map/routing_manager.cpp @@ -11,7 +11,6 @@ #include "routing/index_router.hpp" #include "routing/online_absent_fetcher.hpp" #include "routing/route.hpp" -#include "routing/routing_algorithm.hpp" #include "routing/routing_helpers.hpp" #include "routing_common/num_mwm_id.hpp" diff --git a/routing/CMakeLists.txt b/routing/CMakeLists.txt index 1d86df5670..5f6e1d90d3 100644 --- a/routing/CMakeLists.txt +++ b/routing/CMakeLists.txt @@ -90,8 +90,6 @@ set( router.hpp router_delegate.cpp router_delegate.hpp - routing_algorithm.cpp - routing_algorithm.hpp routing_exceptions.hpp routing_helpers.cpp routing_helpers.hpp diff --git a/routing/routing_tests/CMakeLists.txt b/routing/routing_tests/CMakeLists.txt index 5a1f98e9ab..856cbf6d9d 100644 --- a/routing/routing_tests/CMakeLists.txt +++ b/routing/routing_tests/CMakeLists.txt @@ -24,6 +24,8 @@ set( road_graph_builder.hpp road_graph_nearest_edges_test.cpp route_tests.cpp + routing_algorithm.cpp + routing_algorithm.hpp routing_helpers_tests.cpp routing_session_test.cpp turns_generator_test.cpp diff --git a/routing/routing_tests/astar_router_test.cpp b/routing/routing_tests/astar_router_test.cpp index 1b41e723e0..3584aefa32 100644 --- a/routing/routing_tests/astar_router_test.cpp +++ b/routing/routing_tests/astar_router_test.cpp @@ -1,8 +1,8 @@ #include "testing/testing.hpp" #include "routing/routing_tests/road_graph_builder.hpp" +#include "routing/routing_tests/routing_algorithm.hpp" -#include "routing/routing_algorithm.hpp" #include "routing/features_road_graph.hpp" #include "routing/route.hpp" #include "routing/router_delegate.hpp" diff --git a/routing/routing_algorithm.cpp b/routing/routing_tests/routing_algorithm.cpp similarity index 99% rename from routing/routing_algorithm.cpp rename to routing/routing_tests/routing_algorithm.cpp index cc02d28a1c..f7821d899a 100644 --- a/routing/routing_algorithm.cpp +++ b/routing/routing_tests/routing_algorithm.cpp @@ -1,4 +1,4 @@ -#include "routing/routing_algorithm.hpp" +#include "routing/routing_tests/routing_algorithm.hpp" #include "routing/base/astar_algorithm.hpp" #include "routing/base/astar_progress.hpp" diff --git a/routing/routing_algorithm.hpp b/routing/routing_tests/routing_algorithm.hpp similarity index 100% rename from routing/routing_algorithm.hpp rename to routing/routing_tests/routing_algorithm.hpp diff --git a/xcode/routing/routing.xcodeproj/project.pbxproj b/xcode/routing/routing.xcodeproj/project.pbxproj index 00db9e3baf..dabbaf8951 100644 --- a/xcode/routing/routing.xcodeproj/project.pbxproj +++ b/xcode/routing/routing.xcodeproj/project.pbxproj @@ -83,6 +83,8 @@ 56099E2B1CC7C97D00A7772A /* turn_candidate.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 56099E271CC7C97D00A7772A /* turn_candidate.hpp */; }; 56099E331CC9247E00A7772A /* bicycle_directions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 56099E301CC9247E00A7772A /* bicycle_directions.cpp */; }; 56099E341CC9247E00A7772A /* bicycle_directions.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 56099E311CC9247E00A7772A /* bicycle_directions.hpp */; }; + 56290B87206A3232003892E0 /* routing_algorithm.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 56290B85206A3231003892E0 /* routing_algorithm.cpp */; }; + 56290B88206A3232003892E0 /* routing_algorithm.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 56290B86206A3231003892E0 /* routing_algorithm.hpp */; }; 56555E561D897C90009D786D /* libalohalitics.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6742ACE61C68A23B009CB89E /* libalohalitics.a */; }; 56555E581D897C9D009D786D /* liboauthcpp.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6742ACFA1C68A2D7009CB89E /* liboauthcpp.a */; }; 56555E591D897D28009D786D /* testingmain.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6742ACDE1C68A13F009CB89E /* testingmain.cpp */; }; @@ -270,8 +272,6 @@ 67C7D42E1B4EB48F00FE41AA /* turns_sound_settings.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 67C7D4261B4EB48F00FE41AA /* turns_sound_settings.hpp */; }; A120B34E1B4A7C0A002F3808 /* online_absent_fetcher.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A120B34A1B4A7C0A002F3808 /* online_absent_fetcher.cpp */; }; A120B34F1B4A7C0A002F3808 /* online_absent_fetcher.hpp in Headers */ = {isa = PBXBuildFile; fileRef = A120B34B1B4A7C0A002F3808 /* online_absent_fetcher.hpp */; }; - A120B3501B4A7C0A002F3808 /* routing_algorithm.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A120B34C1B4A7C0A002F3808 /* routing_algorithm.cpp */; }; - A120B3511B4A7C0A002F3808 /* routing_algorithm.hpp in Headers */ = {isa = PBXBuildFile; fileRef = A120B34D1B4A7C0A002F3808 /* routing_algorithm.hpp */; }; A120B3531B4A7C1C002F3808 /* astar_algorithm.hpp in Headers */ = {isa = PBXBuildFile; fileRef = A120B3521B4A7C1C002F3808 /* astar_algorithm.hpp */; }; A1616E2B1B6B60AB003F078E /* router_delegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A1616E291B6B60AB003F078E /* router_delegate.cpp */; }; A1616E2C1B6B60AB003F078E /* router_delegate.hpp in Headers */ = {isa = PBXBuildFile; fileRef = A1616E2A1B6B60AB003F078E /* router_delegate.hpp */; }; @@ -359,6 +359,8 @@ 56099E271CC7C97D00A7772A /* turn_candidate.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = turn_candidate.hpp; sourceTree = ""; }; 56099E301CC9247E00A7772A /* bicycle_directions.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = bicycle_directions.cpp; sourceTree = ""; }; 56099E311CC9247E00A7772A /* bicycle_directions.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = bicycle_directions.hpp; sourceTree = ""; }; + 56290B85206A3231003892E0 /* routing_algorithm.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = routing_algorithm.cpp; sourceTree = ""; }; + 56290B86206A3231003892E0 /* routing_algorithm.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = routing_algorithm.hpp; sourceTree = ""; }; 567059591F3AF96D0062672D /* checkpoint_predictor_test.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = checkpoint_predictor_test.cpp; sourceTree = ""; }; 5670595B1F3AF97F0062672D /* checkpoint_predictor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = checkpoint_predictor.cpp; sourceTree = ""; }; 5670595C1F3AF97F0062672D /* checkpoint_predictor.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = checkpoint_predictor.hpp; sourceTree = ""; }; @@ -496,8 +498,6 @@ 67C7D4261B4EB48F00FE41AA /* turns_sound_settings.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = turns_sound_settings.hpp; sourceTree = ""; }; A120B34A1B4A7C0A002F3808 /* online_absent_fetcher.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = online_absent_fetcher.cpp; sourceTree = ""; }; A120B34B1B4A7C0A002F3808 /* online_absent_fetcher.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = online_absent_fetcher.hpp; sourceTree = ""; }; - A120B34C1B4A7C0A002F3808 /* routing_algorithm.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = routing_algorithm.cpp; sourceTree = ""; }; - A120B34D1B4A7C0A002F3808 /* routing_algorithm.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = routing_algorithm.hpp; sourceTree = ""; }; A120B3521B4A7C1C002F3808 /* astar_algorithm.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = astar_algorithm.hpp; sourceTree = ""; }; A1616E291B6B60AB003F078E /* router_delegate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = router_delegate.cpp; sourceTree = ""; }; A1616E2A1B6B60AB003F078E /* router_delegate.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = router_delegate.hpp; sourceTree = ""; }; @@ -641,6 +641,8 @@ 6742ACA01C68A07C009CB89E /* routing_tests */ = { isa = PBXGroup; children = ( + 56290B85206A3231003892E0 /* routing_algorithm.cpp */, + 56290B86206A3231003892E0 /* routing_algorithm.hpp */, 567059591F3AF96D0062672D /* checkpoint_predictor_test.cpp */, 568194731F03A32400450EC3 /* road_access_test.cpp */, 568194741F03A32400450EC3 /* routing_helpers_tests.cpp */, @@ -850,8 +852,6 @@ A1616E2A1B6B60AB003F078E /* router_delegate.hpp */, 670EE5711B664796001E8064 /* router.cpp */, 6753440F1A3F644F00A0A8C3 /* router.hpp */, - A120B34C1B4A7C0A002F3808 /* routing_algorithm.cpp */, - A120B34D1B4A7C0A002F3808 /* routing_algorithm.hpp */, 0C08AA381DF8329B004195DD /* routing_exceptions.hpp */, 0C0DF9281DE898FF0055A22F /* routing_helpers.cpp */, 56EA2FD41D8FD8590083F01A /* routing_helpers.hpp */, @@ -973,6 +973,7 @@ 0C15B8021F02A61B0058E253 /* checkpoints.hpp in Headers */, 0C5F5D211E798B0400307B98 /* cross_mwm_connector_serialization.hpp in Headers */, 0C0DF9221DE898B70055A22F /* index_graph_starter.hpp in Headers */, + 56290B88206A3232003892E0 /* routing_algorithm.hpp in Headers */, 40A111CE1F2F6776005E6AD5 /* route_weight.hpp in Headers */, 0C090C881E4E276700D52AFD /* world_graph.hpp in Headers */, 0C08AA351DF83223004195DD /* index_graph_serialization.hpp in Headers */, @@ -984,7 +985,6 @@ A120B34F1B4A7C0A002F3808 /* online_absent_fetcher.hpp in Headers */, 0C62BFE61E8ADC3100055A79 /* coding.hpp in Headers */, 674F9BD51B0A580E00704FFA /* road_graph.hpp in Headers */, - A120B3511B4A7C0A002F3808 /* routing_algorithm.hpp in Headers */, 0C5FEC6B1DDE193F0017688C /* road_point.hpp in Headers */, 56099E2B1CC7C97D00A7772A /* turn_candidate.hpp in Headers */, 405F48DC1F6AD01C005BA81A /* routing_result.hpp in Headers */, @@ -1253,10 +1253,10 @@ 4081AD4E1F8E4C1D006CE8A5 /* transit_graph.cpp in Sources */, 6753441E1A3F644F00A0A8C3 /* turns.cpp in Sources */, 4065EA851F8260010094DEF3 /* transit_graph_loader.cpp in Sources */, - A120B3501B4A7C0A002F3808 /* routing_algorithm.cpp in Sources */, 674F9BCC1B0A580E00704FFA /* features_road_graph.cpp in Sources */, 0C5FEC5E1DDE192A0017688C /* geometry.cpp in Sources */, 674F9BD01B0A580E00704FFA /* online_cross_fetcher.cpp in Sources */, + 56290B87206A3232003892E0 /* routing_algorithm.cpp in Sources */, 670EE5751B664796001E8064 /* router.cpp in Sources */, 5670595D1F3AF97F0062672D /* checkpoint_predictor.cpp in Sources */, 56CA09E31E30E73B00D05C9A /* applying_traffic_test.cpp in Sources */,