diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-01-26 19:57:11 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:15:37 +0300 |
commit | 7cc80be7ec4f6a85e769eeaac2185d851d331a08 (patch) | |
tree | 7e75fa3ae7c23412776660b77b202da1423dfca2 /platform | |
parent | 7216b2a975df8befdff6f83027f27e7f89b70abd (diff) |
[old map downloader] Removing code duplication in tests.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/platform_tests/local_country_file_tests.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/platform/platform_tests/local_country_file_tests.cpp b/platform/platform_tests/local_country_file_tests.cpp index 939f7c35e8..24715c9020 100644 --- a/platform/platform_tests/local_country_file_tests.cpp +++ b/platform/platform_tests/local_country_file_tests.cpp @@ -116,10 +116,6 @@ UNIT_TEST(LocalCountryFile_DiskFiles) TEST(localFile.OnDisk(MapOptions::CarRouting), ()); TEST(localFile.OnDisk(MapOptions::MapWithCarRouting), ()); TEST_EQUAL(3, localFile.GetSize(MapOptions::Map), ()); - - localFile.DeleteFromDisk(MapOptions::MapWithCarRouting); - TEST(!testMapFile.Exists(), (testMapFile, "wasn't deleted by LocalCountryFile.")); - testMapFile.Reset(); } else { @@ -138,13 +134,14 @@ UNIT_TEST(LocalCountryFile_DiskFiles) TEST_EQUAL(7, localFile.GetSize(MapOptions::CarRouting), ()); TEST_EQUAL(10, localFile.GetSize(MapOptions::MapWithCarRouting), ()); - localFile.DeleteFromDisk(MapOptions::MapWithCarRouting); - TEST(!testMapFile.Exists(), (testMapFile, "wasn't deleted by LocalCountryFile.")); - testMapFile.Reset(); TEST(!testRoutingFile.Exists(), (testRoutingFile, "wasn't deleted by LocalCountryFile.")); testRoutingFile.Reset(); } + + localFile.DeleteFromDisk(MapOptions::MapWithCarRouting); + TEST(!testMapFile.Exists(), (testMapFile, "wasn't deleted by LocalCountryFile.")); + testMapFile.Reset(); } UNIT_TEST(LocalCountryFile_CleanupMapFiles) |