diff options
author | tatiana-yan <tatiana.kondakova@gmail.com> | 2018-06-26 10:51:37 +0300 |
---|---|---|
committer | Arsentiy Milchakov <milcars@mapswithme.com> | 2018-06-27 19:20:52 +0300 |
commit | 570b2b0b35df1fad001460eccf35da31e334b8b0 (patch) | |
tree | 2f805cf3122db499b794248f3f6c1bdd232b258c /openlr/openlr_tests/decoded_path_test.cpp | |
parent | dd7186b48be4636c1e67d223817a47f3f3a026e9 (diff) |
[indexer] DataSource refactoring
Diffstat (limited to 'openlr/openlr_tests/decoded_path_test.cpp')
-rw-r--r-- | openlr/openlr_tests/decoded_path_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openlr/openlr_tests/decoded_path_test.cpp b/openlr/openlr_tests/decoded_path_test.cpp index 9f1753bb21..01c12a4015 100644 --- a/openlr/openlr_tests/decoded_path_test.cpp +++ b/openlr/openlr_tests/decoded_path_test.cpp @@ -133,14 +133,14 @@ void WithRoad(vector<m2::PointD> const & points, Func && fn) builder.Add(TestRoad(points, "Interstate 60", "en")); } - DataSource dataSource; + DataSource dataSource(make_unique<FeatureSourceFactory>()); auto const regResult = dataSource.RegisterMap(country); TEST_EQUAL(regResult.second, MwmSet::RegResult::Success, ()); MwmSet::MwmHandle mwmHandle = dataSource.GetMwmHandleById(regResult.first); TEST(mwmHandle.IsAlive(), ()); - DataSource::FeaturesLoaderGuard const guard(dataSource, regResult.first); + DataSource::FeaturesLoaderGuard const guard(dataSource, regResult.first, FeatureSourceFactory()); FeatureType road; TEST(guard.GetFeatureByIndex(0, road), ()); road.ParseEverything(); |