diff options
author | VladiMihaylenko <vxmihaylenko@gmail.com> | 2018-02-26 17:36:32 +0300 |
---|---|---|
committer | Arsentiy Milchakov <milcars@mapswithme.com> | 2018-02-27 13:33:52 +0300 |
commit | 74659781b757c5845ff095a5cb1f1524adedfc71 (patch) | |
tree | 0c1fefbfdba8f72ffcccf913ff76482e0c6c0e4f /storage | |
parent | 06f656de56abe7ab24ad14e4b96fc812706c3df7 (diff) |
Fixed tests and warning.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/storage_integration_tests/storage_downloading_tests.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/storage/storage_integration_tests/storage_downloading_tests.cpp b/storage/storage_integration_tests/storage_downloading_tests.cpp index 6dc668b21b..3b8d67b84d 100644 --- a/storage/storage_integration_tests/storage_downloading_tests.cpp +++ b/storage/storage_integration_tests/storage_downloading_tests.cpp @@ -25,6 +25,8 @@ using namespace storage; namespace { +using Runner = Platform::ThreadRunner; + string const kCountryId = "Angola"; class InterruptException : public exception {}; @@ -70,13 +72,11 @@ UNIT_TEST(SmallMwms_ReDownloadExistedMWMIgnored_Test) TEST(!storage.IsDownloadInProgress(), ()); } -UNIT_TEST(SmallMwms_InterruptDownloadResumeDownload_Test) +UNIT_CLASS_TEST(Runner, SmallMwms_InterruptDownloadResumeDownload_Test) { - auto runner = make_unique<Platform::ThreadRunner>(); WritableDirChanger writableDirChanger(kMapTestDir); // Start download but interrupt it - { Storage storage(COUNTRIES_FILE); TEST(version::IsSingleMwm(storage.GetCurrentDataVersion()), ()); @@ -99,7 +99,6 @@ UNIT_TEST(SmallMwms_InterruptDownloadResumeDownload_Test) } // Continue download - { Storage storage(COUNTRIES_FILE); |