| 48 | } |
| 49 | |
| 50 | std::unique_ptr<CityRoads> LoadCityRoads(LocalCountryFile const & country) |
| 51 | { |
| 52 | FrozenDataSource dataSource; |
| 53 | auto const regResult = dataSource.RegisterMap(country); |
| 54 | TEST_EQUAL(regResult.second, MwmSet::RegResult::Success, ()); |
| 55 | |
| 56 | MwmSet::MwmHandle handle(dataSource.GetMwmHandleById(regResult.first)); |
| 57 | TEST(handle.IsAlive(), ()); |
| 58 | return routing::LoadCityRoads(handle); |
| 59 | } |
| 60 | |
| 61 | /// \brief Builds mwm with city_roads section, read the section and compare original feature ids |
| 62 | /// and read ones. |
no test coverage detected