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 /search/search_integration_tests/processor_test.cpp | |
parent | dd7186b48be4636c1e67d223817a47f3f3a026e9 (diff) |
[indexer] DataSource refactoring
Diffstat (limited to 'search/search_integration_tests/processor_test.cpp')
-rw-r--r-- | search/search_integration_tests/processor_test.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/search/search_integration_tests/processor_test.cpp b/search/search_integration_tests/processor_test.cpp index bf250247d2..9230565c94 100644 --- a/search/search_integration_tests/processor_test.cpp +++ b/search/search_integration_tests/processor_test.cpp @@ -13,8 +13,9 @@ #include "generator/generator_tests_support/test_feature.hpp" #include "generator/generator_tests_support/test_mwm_builder.hpp" -#include "editor/editable_data_source.hpp" +#include "editor/editable_feature_source.hpp" +#include "indexer/data_source.hpp" #include "indexer/feature.hpp" #include "indexer/ftypes_matcher.hpp" @@ -605,7 +606,7 @@ UNIT_CLASS_TEST(ProcessorTest, TestPostcodes) while (!features->GetBit(index)) ++index; - EditableDataSource::FeaturesLoaderGuard loader(m_dataSource, countryId); + DataSource::FeaturesLoaderGuard loader(m_dataSource, countryId, EditableFeatureSourceFactory()); FeatureType ft; TEST(loader.GetFeatureByIndex(::base::checked_cast<uint32_t>(index), ft), ()); @@ -702,7 +703,8 @@ UNIT_CLASS_TEST(ProcessorTest, TestCategories) TEST(ResultsMatch(request->Results(), rules), ()); for (auto const & result : request->Results()) { - EditableDataSource::FeaturesLoaderGuard loader(m_dataSource, wonderlandId); + DataSource::FeaturesLoaderGuard loader(m_dataSource, wonderlandId, + EditableFeatureSourceFactory()); FeatureType ft; TEST(loader.GetFeatureByIndex(result.GetFeatureID().m_index, ft), ()); |