[new downloader][MAPSME-71] Test or DeleteNode

This commit is contained in:
Sergey Yershov 2016-02-12 11:47:29 +03:00
parent 34430d38ef
commit 828ac897f0
2 changed files with 15 additions and 0 deletions

View file

@ -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<TestMapFilesDownloader>());
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

View file

@ -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;