diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-01-25 20:36:17 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:15:19 +0300 |
commit | f2ed9bc59a9f989e37a9a170f5baa8f7c57c6e71 (patch) | |
tree | 469c4b182d3b21950da1317838588b2093348d2a /platform | |
parent | c1fa3c7df99cfbdceb06cde8313f5820cf5a5d41 (diff) |
[Old map downloader] Tests on IsSingleMwm function.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/platform_tests/platform_test.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/platform/platform_tests/platform_test.cpp b/platform/platform_tests/platform_test.cpp index 52a881d5a7..683e2071a7 100644 --- a/platform/platform_tests/platform_test.cpp +++ b/platform/platform_tests/platform_test.cpp @@ -1,5 +1,6 @@ #include "testing/testing.hpp" +#include "platform/mwm_version.hpp" #include "platform/platform.hpp" #include "defines.hpp" @@ -248,3 +249,11 @@ UNIT_TEST(RmDirRecursively) TEST(!Platform::IsFileExistsByFullPath(testDir1), ()); TEST(!Platform::IsFileExistsByFullPath(testDir2), ()); } + +UNIT_TEST(IsSingleMwm) +{ + TEST(version::IsSingleMwm(version::FOR_TESTING_SINGLE_MWM1), ()); + TEST(version::IsSingleMwm(version::FOR_TESTING_SINGLE_MWM_LATEST), ()); + TEST(!version::IsSingleMwm(version::FOR_TESTING_TWO_COMPONENT_MWM1), ()); + TEST(!version::IsSingleMwm(version::FOR_TESTING_TWO_COMPONENT_MWM2), ()); +} |