From 828ac897f0ba9126b66603d287b78633b279dcbc Mon Sep 17 00:00:00 2001 From: Sergey Yershov Date: Fri, 12 Feb 2016 11:47:29 +0300 Subject: [PATCH] [new downloader][MAPSME-71] Test or DeleteNode --- storage/storage_tests/storage_tests.cpp | 13 +++++++++++++ xcode/storage/storage.xcodeproj/project.pbxproj | 2 ++ 2 files changed, 15 insertions(+) diff --git a/storage/storage_tests/storage_tests.cpp b/storage/storage_tests/storage_tests.cpp index 11bf4f61ec..0f4f9aa7ff 100644 --- a/storage/storage_tests/storage_tests.cpp +++ b/storage/storage_tests/storage_tests.cpp @@ -1424,4 +1424,17 @@ UNIT_TEST(StorageTest_CountriesNamesTest) TEST_EQUAL(nodeAttrs.m_parentInfo[0].m_localName, "Pays 1", ()); TEST_EQUAL(nodeAttrs.m_parentInfo[1].m_localName, "Pays 2", ()); } + +UNIT_TEST(StorageTest_DeleteNodeWithoutDownloading) +{ + Storage storage(kSingleMwmCountriesTxt, make_unique()); + TaskRunner runner; + InitStorage(storage, runner); + + storage.DeleteNode("Illegal_countryId"); + storage.DeleteNode("Algeria_Central"); + NodeAttrs nodeAttrs = NodeAttrs(); + storage.GetNodeAttrs("Algeria_Central", nodeAttrs); + TEST_EQUAL(nodeAttrs.m_status, NodeStatus::NotDownloaded, ()); +} } // namespace storage diff --git a/xcode/storage/storage.xcodeproj/project.pbxproj b/xcode/storage/storage.xcodeproj/project.pbxproj index 0f2935d92d..d59dcd84f6 100644 --- a/xcode/storage/storage.xcodeproj/project.pbxproj +++ b/xcode/storage/storage.xcodeproj/project.pbxproj @@ -686,9 +686,11 @@ 67F90B741C6A277900CD458E /* storage_tests.cpp in Sources */, 67F90B731C6A277900CD458E /* simple_tree_test.cpp in Sources */, 67F90B761C6A277900CD458E /* test_map_files_downloader.cpp in Sources */, + 678338681C6CF17B00FD6263 /* country_name_getter_test.cpp in Sources */, 67F90B711C6A277900CD458E /* fake_map_files_downloader.cpp in Sources */, 67F90B701C6A277900CD458E /* country_info_getter_test.cpp in Sources */, 67F90B721C6A277900CD458E /* queued_country_tests.cpp in Sources */, + 678338671C6CF17600FD6263 /* helpers.cpp in Sources */, 67F90B751C6A277900CD458E /* task_runner.cpp in Sources */, ); runOnlyForDeploymentPostprocessing = 0;