diff --git a/storage/storage_integration_tests/CMakeLists.txt b/storage/storage_integration_tests/CMakeLists.txt index 66b847b436..7be242e851 100644 --- a/storage/storage_integration_tests/CMakeLists.txt +++ b/storage/storage_integration_tests/CMakeLists.txt @@ -5,6 +5,7 @@ add_definitions("-DOMIM_UNIT_TEST_WITH_QT_EVENT_LOOP") set( SRC + download_calc_size_test.cpp lightweight_matching_tests.cpp storage_3levels_tests.cpp storage_downloading_tests.cpp diff --git a/storage/storage_integration_tests/download_calc_size_test.cpp b/storage/storage_integration_tests/download_calc_size_test.cpp index 7d634eb5ff..386158c7f9 100644 --- a/storage/storage_integration_tests/download_calc_size_test.cpp +++ b/storage/storage_integration_tests/download_calc_size_test.cpp @@ -24,7 +24,7 @@ void InitStorage(Storage & storage, Storage::UpdateCallback const & didDownload, storage.Init(didDownload, [](CountryId const &, LocalFilePtr const) { return false; }); storage.RegisterAllLocalMaps(false /* enableDiffs */); storage.Subscribe(changeCountryFunction, progress); - storage.SetDownloadingUrlsForTesting({kTestWebServer}); + storage.SetDownloadingServersForTesting({kTestWebServer}); } UNIT_TEST(DownloadingTests_CalcOverallProgress) @@ -36,7 +36,7 @@ UNIT_TEST(DownloadingTests_CalcOverallProgress) Storage s; - s.SetDownloadingUrlsForTesting({storage::kTestWebServer}); + s.SetDownloadingServersForTesting({storage::kTestWebServer}); MapFilesDownloader::Progress baseProgress = s.GetOverallProgress(kTestCountries); TEST_EQUAL(baseProgress.first, 0, ()); @@ -44,7 +44,7 @@ UNIT_TEST(DownloadingTests_CalcOverallProgress) for (auto const &country : kTestCountries) { - baseProgress.second += s.CountrySizeInBytes(country, MapOptions::Map).second; + baseProgress.second += s.CountrySizeInBytes(country).second; } auto progressChanged = [&s, &kTestCountries, &baseProgress](CountryId const & id,