static
| 301 | |
| 302 | // static |
| 303 | std::pair<TestPOI, FeatureID> TestPOI::AddWithEditor(osm::Editor & editor, MwmSet::MwmId const & mwmId, |
| 304 | string const & enName, m2::PointD const & pt) |
| 305 | { |
| 306 | TestPOI poi(pt, enName, "en"); |
| 307 | |
| 308 | osm::EditableMapObject emo; |
| 309 | editor.CreatePoint(classif().GetTypeByPath({"shop", "bakery"}), pt, mwmId, emo); |
| 310 | |
| 311 | StringUtf8Multilang names; |
| 312 | names.AddString(localisation::ConvertLanguageCodeToLanguageIndex("en"), enName); |
| 313 | emo.SetName(names); |
| 314 | emo.SetTestId(poi.GetId()); |
| 315 | |
| 316 | editor.SaveEditedFeature(emo); |
| 317 | return {poi, emo.GetID()}; |
| 318 | } |
| 319 | |
| 320 | void TestPOI::Serialize(FeatureBuilder & fb) const |
| 321 | { |
nothing calls this directly
no test coverage detected