| 468 | } |
| 469 | |
| 470 | void EditorTest::ClearAllLocalEditsTest() |
| 471 | { |
| 472 | auto & editor = osm::Editor::Instance(); |
| 473 | |
| 474 | auto const mwmId = ConstructTestMwm([](TestMwmBuilder & builder) |
| 475 | { |
| 476 | TestCafe cafe(m2::PointD(1.0, 1.0), "London Cafe", "en"); |
| 477 | builder.Add(cafe); |
| 478 | |
| 479 | builder.Add(TestPOI(m2::PointD(10, 10), "Corner Post", "default")); |
| 480 | }); |
| 481 | |
| 482 | osm::EditableMapObject emo; |
| 483 | CreateCafeAtPoint({3.0, 3.0}, mwmId, emo); |
| 484 | |
| 485 | TEST(!editor.m_features.Get()->empty(), ()); |
| 486 | editor.ClearAllLocalEdits(); |
| 487 | TEST(editor.m_features.Get()->empty(), ()); |
| 488 | } |
| 489 | |
| 490 | void EditorTest::GetFeaturesByStatusTest() |
| 491 | { |
nothing calls this directly
no test coverage detected