diff options
author | tatiana-yan <tatiana.kondakova@gmail.com> | 2018-06-26 13:35:47 +0300 |
---|---|---|
committer | Arsentiy Milchakov <milcars@mapswithme.com> | 2018-06-27 19:20:52 +0300 |
commit | 68bfbad5eef3ed2645b60fecbc74121487900bbf (patch) | |
tree | bbfa7c4e1783668c56e83245ccd0b14e62433a92 /openlr/openlr_tests/decoded_path_test.cpp | |
parent | 570b2b0b35df1fad001460eccf35da31e334b8b0 (diff) |
[indexer] DataSource unique_ptr<FeatureSourceFactory> -> FeatureSourceFactory const &
Diffstat (limited to 'openlr/openlr_tests/decoded_path_test.cpp')
-rw-r--r-- | openlr/openlr_tests/decoded_path_test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openlr/openlr_tests/decoded_path_test.cpp b/openlr/openlr_tests/decoded_path_test.cpp index 01c12a4015..f052417a50 100644 --- a/openlr/openlr_tests/decoded_path_test.cpp +++ b/openlr/openlr_tests/decoded_path_test.cpp @@ -133,14 +133,15 @@ void WithRoad(vector<m2::PointD> const & points, Func && fn) builder.Add(TestRoad(points, "Interstate 60", "en")); } - DataSource dataSource(make_unique<FeatureSourceFactory>()); + DataSource dataSource(FeatureSourceFactory::Get()); 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, FeatureSourceFactory()); + DataSource::FeaturesLoaderGuard const guard(dataSource, regResult.first, + FeatureSourceFactory::Get()); FeatureType road; TEST(guard.GetFeatureByIndex(0, road), ()); road.ParseEverything(); |