/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
platform/platform_tests/country_file_tests.cpp
29 строк
689 B
Arsentiy Milchakov
[core] got rid of mwm migration and support of two component mwms
14 окт 2019, 13:56
14 окт 2019, 13:56
5a18ee1
Код
Авторство
О чём код?
#include "testing/testing.hpp" #include "defines.hpp" #include "platform/mwm_version.hpp" #include "platform/country_file.hpp" #include <string> using namespace std; namespace platform { UNIT_TEST(CountryFile_Smoke) { CountryFile countryFile("TestCountryOneComponent"); TEST_EQUAL("TestCountryOneComponent", countryFile.GetName(), ()); string const mapFileName = GetFileName(countryFile.GetName(), MapFileType::Map); TEST_EQUAL("TestCountryOneComponent" DATA_FILE_EXTENSION, mapFileName, ()); TEST_EQUAL(0, countryFile.GetRemoteSize(), ()); countryFile.SetRemoteSize(3 /* mapSize */); TEST_EQUAL(3, countryFile.GetRemoteSize(), ()); } } // namespace platform