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:
authorYury Melnichek <melnichek@gmail.com>2011-10-15 17:55:47 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:26:02 +0300
commit7213aade43df084f27a02180c66d29268530cb69 (patch)
tree8d9619e17716222ff46106b684f7076b3d648b46 /indexer/indexer_tests
parent468dc81fe8c6f40b0775d35f992615494f3aad55 (diff)
Uncomment categories test and move CategoriesHolder to the global namespace.
Diffstat (limited to 'indexer/indexer_tests')
-rw-r--r--indexer/indexer_tests/categories_test.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/indexer/indexer_tests/categories_test.cpp b/indexer/indexer_tests/categories_test.cpp
index ea45af98cf..5faa0a661f 100644
--- a/indexer/indexer_tests/categories_test.cpp
+++ b/indexer/indexer_tests/categories_test.cpp
@@ -23,7 +23,7 @@ struct Checker
{
size_t & m_count;
Checker(size_t & count) : m_count(count) {}
- void operator()(search::Category const & cat)
+ void operator()(CategoriesHolder::Category const & cat)
{
switch (m_count)
{
@@ -74,14 +74,12 @@ UNIT_TEST(LoadCategories)
p.GetReader("classificator.txt"),
p.GetReader("visibility.txt"),
p.GetReader("types.txt"));
- /*
- search::CategoriesHolder h;
+ CategoriesHolder h;
string buffer = TEST_STRING;
TEST_GREATER(h.LoadFromStream(buffer), 0, ());
size_t count = 0;
Checker f(count);
h.ForEachCategory(f);
TEST_EQUAL(count, 2, ());
- */
}