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:
authorArsentiy Milchakov <milcars@mapswithme.com>2017-10-19 10:16:45 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2017-11-09 10:46:46 +0300
commitddb6fc5115554b69d9ef2440ab605cc67dbf7ac1 (patch)
treea85483c739bd401f7e25f1e643b0d417139cb06d /indexer/indexer_tests
parent86c9598fb685e66d8c1a8073c0952d403992a2a7 (diff)
[ugc] separate container for excluded types is added
Diffstat (limited to 'indexer/indexer_tests')
-rw-r--r--indexer/indexer_tests/ugc_types_test.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/indexer/indexer_tests/ugc_types_test.cpp b/indexer/indexer_tests/ugc_types_test.cpp
index d1016631ec..12e7492809 100644
--- a/indexer/indexer_tests/ugc_types_test.cpp
+++ b/indexer/indexer_tests/ugc_types_test.cpp
@@ -51,5 +51,21 @@ UNIT_TEST(UgcTypes_Full)
TEST(!UGC::IsDetailsAvailable(holder), ());
ftraits::UGCRatingCategories expected = {};
TEST_EQUAL(UGC::GetCategories(holder), expected, ());
+
+ holder.Assign(c.GetTypeByPath({"sponsored", "booking"}));
+ holder.Add(c.GetTypeByPath({"amenity", "hospital"}));
+ TEST(!UGC::IsUGCAvailable(holder), ());
+ TEST(!UGC::IsRatingAvailable(holder), ());
+ TEST(!UGC::IsReviewsAvailable(holder), ());
+ TEST(!UGC::IsDetailsAvailable(holder), ());
+ TEST_EQUAL(UGC::GetCategories(holder), expected, ());
+
+ holder.Assign(c.GetTypeByPath({"amenity", "hospital"}));
+ holder.Add(c.GetTypeByPath({"sponsored", "booking"}));
+ TEST(!UGC::IsUGCAvailable(holder), ());
+ TEST(!UGC::IsRatingAvailable(holder), ());
+ TEST(!UGC::IsReviewsAvailable(holder), ());
+ TEST(!UGC::IsDetailsAvailable(holder), ());
+ TEST_EQUAL(UGC::GetCategories(holder), expected, ());
}
}