diff options
author | Lev Dragunov <l.dragunov@corp.mail.ru> | 2015-07-16 13:15:32 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:56:27 +0300 |
commit | b9e7cc9fbc435ee3a8a952c2b41afba41fa1c7ac (patch) | |
tree | 62970ac0dd191986c083d2625db447dc38cda036 /indexer | |
parent | 45faef6be3270c5d7a4fce25d04b06a5308ec8cc (diff) |
Remove deprecated GetIndexFileName from platform
Diffstat (limited to 'indexer')
-rw-r--r-- | indexer/indexer_tests/features_offsets_table_test.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indexer/indexer_tests/features_offsets_table_test.cpp b/indexer/indexer_tests/features_offsets_table_test.cpp index 5fe762717a..5e4125cf94 100644 --- a/indexer/indexer_tests/features_offsets_table_test.cpp +++ b/indexer/indexer_tests/features_offsets_table_test.cpp @@ -93,8 +93,11 @@ namespace feature { string const testFileName = "test_file"; Platform & p = GetPlatform(); + platform::CountryFile country("minsk-pass"); + platform::LocalCountryFile localFile(p.WritableDir(), country, 0 /* version */); + localFile.SyncWithDisk(); FilesContainerR baseContainer(p.GetReader("minsk-pass" DATA_FILE_EXTENSION)); - const string indexFile = p.GetIndexFileName(testFileName, FEATURES_OFFSETS_TABLE_FILE_EXT); + const string indexFile = CountryIndexes::GetPath(localFile, CountryIndexes::Index::Offsets); feature::DataHeader header; header.Load(baseContainer.GetReader(HEADER_FILE_TAG)); |