| 471 | namespace |
| 472 | { |
| 473 | void CheckPlace(Framework const & fm, std::shared_ptr<MwmInfo> const & mwmInfo, double lat, double lon, |
| 474 | StringUtf8Multilang const & streetNames, std::string const & houseNumber) |
| 475 | { |
| 476 | auto const info = fm.GetAddressAtPoint(mercator::FromLatLon(lat, lon)); |
| 477 | |
| 478 | std::optional<std::string> const streetName = localisation::TranslatedFeatureName(streetNames, mwmInfo->GetRegionData().GetLanguages()).m_primary; |
| 479 | if (streetName.has_value()) |
| 480 | TEST_EQUAL(info.GetStreetName(), streetName.value(), ()); |
| 481 | TEST_EQUAL(info.GetHouseNumber(), houseNumber, ()); |
| 482 | } |
| 483 | } // namespace |
| 484 | |
| 485 | UNIT_TEST(Bookmarks_AddressInfo) |
no test coverage detected