Welcome to mirror list, hosted at ThFree Co, Russian Federation.

country_file_tests.cpp « platform_tests « platform - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0e0a009120f7053473a65960b731c3dbd19bcd72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#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