diff --git a/indexer/features_offsets_table.hpp b/indexer/features_offsets_table.hpp index 5faba945e4..8b0624426e 100644 --- a/indexer/features_offsets_table.hpp +++ b/indexer/features_offsets_table.hpp @@ -112,6 +112,6 @@ namespace feature detail::MappedFile::Handle m_handle; }; + // Builds feature offsets table in an mwm. bool BuildOffsetsTable(string const & filePath); - } // namespace feature diff --git a/search/search_integration_tests/test_mwm_builder.cpp b/search/search_integration_tests/test_mwm_builder.cpp index 55262d95f0..e7002b8c1c 100644 --- a/search/search_integration_tests/test_mwm_builder.cpp +++ b/search/search_integration_tests/test_mwm_builder.cpp @@ -2,6 +2,7 @@ #include "indexer/classificator.hpp" #include "indexer/data_header.hpp" +#include "indexer/features_offsets_table.hpp" #include "indexer/index_builder.hpp" #include "indexer/search_index_builder.hpp" @@ -50,6 +51,7 @@ void TestMwmBuilder::Finish() CHECK(GenerateFinalFeatures(info, m_file.GetCountryFile().GetNameWithoutExt(), feature::DataHeader::country), ("Can't sort features.")); + CHECK(feature::BuildOffsetsTable(m_file.GetPath(MapOptions::Map)), ("Can't build feature offsets table.")); CHECK(indexer::BuildIndexFromDatFile(m_file.GetPath(MapOptions::Map), m_file.GetPath(MapOptions::Map)), ("Can't build geometry index."));