Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Yershov <syershov@maps.me>2018-06-22 19:56:54 +0300
committerTatiana Yan <tatiana.kondakova@gmail.com>2018-06-25 15:34:14 +0300
commitcce5c3a0ccd46b27aa5bf25fd2561dc781d7738b (patch)
treedde51f79d59b937af66a23e66f5c4e3355d2c078 /search/search_integration_tests/pre_ranker_test.cpp
parent885dcbed8914faf3f91aa38c2aa8664227ec254c (diff)
Rename variables and methods (index to DataSource)
Diffstat (limited to 'search/search_integration_tests/pre_ranker_test.cpp')
-rw-r--r--search/search_integration_tests/pre_ranker_test.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/search/search_integration_tests/pre_ranker_test.cpp b/search/search_integration_tests/pre_ranker_test.cpp
index dca92daf93..637e778590 100644
--- a/search/search_integration_tests/pre_ranker_test.cpp
+++ b/search/search_integration_tests/pre_ranker_test.cpp
@@ -52,11 +52,11 @@ namespace
class TestRanker : public Ranker
{
public:
- TestRanker(DataSourceBase & index, storage::CountryInfoGetter & infoGetter,
+ TestRanker(DataSourceBase & dataSource, storage::CountryInfoGetter & infoGetter,
CitiesBoundariesTable const & boundariesTable, KeywordLangMatcher & keywordsScorer,
Emitter & emitter, vector<Suggest> const & suggests, VillagesCache & villagesCache,
::base::Cancellable const & cancellable, vector<PreRankerResult> & results)
- : Ranker(index, boundariesTable, infoGetter, keywordsScorer, emitter, GetDefaultCategories(),
+ : Ranker(dataSource, boundariesTable, infoGetter, keywordsScorer, emitter, GetDefaultCategories(),
suggests, villagesCache, cancellable)
, m_results(results)
{
@@ -122,13 +122,13 @@ UNIT_CLASS_TEST(PreRankerTest, Smoke)
vector<PreRankerResult> results;
Emitter emitter;
- CitiesBoundariesTable boundariesTable(m_index);
+ CitiesBoundariesTable boundariesTable(m_dataSource);
VillagesCache villagesCache(m_cancellable);
KeywordLangMatcher keywordsScorer(0 /* maxLanguageTiers */);
- TestRanker ranker(m_index, m_engine.GetCountryInfoGetter(), boundariesTable, keywordsScorer,
+ TestRanker ranker(m_dataSource, m_engine.GetCountryInfoGetter(), boundariesTable, keywordsScorer,
emitter, m_suggests, villagesCache, m_cancellable, results);
- PreRanker preRanker(m_index, ranker);
+ PreRanker preRanker(m_dataSource, ranker);
PreRanker::Params params;
params.m_viewport = kViewport;
params.m_accuratePivotCenter = kPivot;