diff options
author | Maxim Pimenov <m@maps.me> | 2015-12-22 15:05:54 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:03:15 +0300 |
commit | 79278e235eeaa7698c05ba38aeddde0639c02e7b (patch) | |
tree | b612e39a0079dec5452c26eab9be06be9e16c221 /search/search_tests_support | |
parent | ec7c9df7f22279d65b80e7f034c52163b95b1915 (diff) |
Added a namespace for search tests support.
Diffstat (limited to 'search/search_tests_support')
-rw-r--r-- | search/search_tests_support/test_search_engine.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/search/search_tests_support/test_search_engine.cpp b/search/search_tests_support/test_search_engine.cpp index fd18ebc22a..1987d71072 100644 --- a/search/search_tests_support/test_search_engine.cpp +++ b/search/search_tests_support/test_search_engine.cpp @@ -33,12 +33,13 @@ public: } }; -class TestSearchQueryFactory : public search::SearchQueryFactory +class TestSearchQueryFactory : public ::search::SearchQueryFactory { // search::SearchQueryFactory overrides: - unique_ptr<search::Query> BuildSearchQuery(Index & index, CategoriesHolder const & categories, - vector<search::Suggest> const & suggests, - storage::CountryInfoGetter const & infoGetter) override + unique_ptr<::search::Query> BuildSearchQuery( + Index & index, CategoriesHolder const & categories, + vector<::search::Suggest> const & suggests, + storage::CountryInfoGetter const & infoGetter) override { return make_unique<TestQuery>(index, categories, suggests, infoGetter); } @@ -69,7 +70,7 @@ TestSearchEngine::TestSearchEngine(string const & locale, TestSearchEngine::TestSearchEngine(string const & locale, unique_ptr<storage::CountryInfoGetter> && infoGetter, - unique_ptr<search::SearchQueryFactory> && factory) + unique_ptr<::search::SearchQueryFactory> && factory) : m_platform(GetPlatform()) , m_infoGetter(move(infoGetter)) , m_engine(*this, m_platform.GetReader(SEARCH_CATEGORIES_FILE_NAME), *m_infoGetter, locale, @@ -79,8 +80,8 @@ TestSearchEngine::TestSearchEngine(string const & locale, TestSearchEngine::~TestSearchEngine() {} -weak_ptr<search::QueryHandle> TestSearchEngine::Search(search::SearchParams const & params, - m2::RectD const & viewport) +weak_ptr<::search::QueryHandle> TestSearchEngine::Search(::search::SearchParams const & params, + m2::RectD const & viewport) { return m_engine.Search(params, viewport); } |