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

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_tests')
-rw-r--r--editor/editor_tests/osm_editor_test.cpp5
-rw-r--r--editor/editor_tests/osm_editor_test.hpp5
2 files changed, 5 insertions, 5 deletions
diff --git a/editor/editor_tests/osm_editor_test.cpp b/editor/editor_tests/osm_editor_test.cpp
index c5224b6c6c..7886882c24 100644
--- a/editor/editor_tests/osm_editor_test.cpp
+++ b/editor/editor_tests/osm_editor_test.cpp
@@ -1,5 +1,6 @@
#include "testing/testing.hpp"
+#include "editor/editable_feature_source.hpp"
#include "editor/editor_storage.hpp"
#include "editor/editor_tests/osm_editor_test.hpp"
#include "editor/editor_tests_support/helpers.hpp"
@@ -53,7 +54,7 @@ public:
};
template <typename TFn>
-void ForEachCafeAtPoint(DataSourceBase & dataSource, m2::PointD const & mercator, TFn && fn)
+void ForEachCafeAtPoint(DataSource & dataSource, m2::PointD const & mercator, TFn && fn)
{
m2::RectD const rect = MercatorBounds::RectByCenterXYAndSizeInMeters(mercator, 0.2 /* rect width */);
@@ -136,7 +137,7 @@ namespace editor
{
namespace testing
{
-EditorTest::EditorTest()
+EditorTest::EditorTest() : m_dataSource(make_unique<EditableFeatureSourceFactory>())
{
try
{
diff --git a/editor/editor_tests/osm_editor_test.hpp b/editor/editor_tests/osm_editor_test.hpp
index a0c7829bd5..8382178e63 100644
--- a/editor/editor_tests/osm_editor_test.hpp
+++ b/editor/editor_tests/osm_editor_test.hpp
@@ -5,8 +5,7 @@
#include "generator/generator_tests_support/test_feature.hpp"
#include "generator/generator_tests_support/test_mwm_builder.hpp"
-#include "editor/editable_data_source.hpp"
-
+#include "indexer/data_source.hpp"
#include "indexer/mwm_set.hpp"
#include "storage/country_info_getter.hpp"
@@ -79,7 +78,7 @@ private:
void Cleanup(platform::LocalCountryFile const & map);
bool RemoveMwm(MwmSet::MwmId const & mwmId);
- EditableDataSource m_dataSource;
+ DataSource m_dataSource;
storage::CountryInfoGetterForTesting m_infoGetter;
vector<platform::LocalCountryFile> m_mwmFiles;
};