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
path: root/search
diff options
context:
space:
mode:
authorYuri Gorshenin <y@maps.me>2015-07-30 10:48:55 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:58:07 +0300
commitadf2f32a243ec362a0c87fbf6f3b6518438577dd (patch)
tree0d7ad2a5ae9d41f423e6166ddefad62f6c8959e7 /search
parent8f09ecd95c19ded0a9eab5027b296894e489074a (diff)
[search] Fixed failing retrieval's test.
Diffstat (limited to 'search')
-rw-r--r--search/integration_tests/retrieval_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/search/integration_tests/retrieval_test.cpp b/search/integration_tests/retrieval_test.cpp
index 08511a1f7b..fc1361c128 100644
--- a/search/integration_tests/retrieval_test.cpp
+++ b/search/integration_tests/retrieval_test.cpp
@@ -219,14 +219,14 @@ UNIT_TEST(Retrieval_3Mwms)
}
{
- TestCallback callback(mskHandle.GetId());
+ MultiMwmCallback callback({mskHandle.GetId(), mtvHandle.GetId(), zrhHandle.GetId()});
search::Retrieval::Limits limits;
limits.SetMaxNumFeatures(10 /* more than total number of features in all these mwms */);
retrieval.Init(index, m2::RectD(m2::PointD(-1.0, -1.0), m2::PointD(1.0, 1.0)), params, limits);
retrieval.Go(callback);
- TEST(callback.WasTriggered(), ());
- TEST_EQUAL(callback.Offsets().size(), 3 /* total number of features in all these mwms */, ());
+ TEST_EQUAL(3 /* total number of mwms */, callback.GetNumMwms(), ());
+ TEST_EQUAL(3 /* total number of features in all these mwms */, callback.GetNumFeatures(), ());
}
{