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:
authortatiana-kondakova <tatiana.kondakova@gmail.com>2018-02-07 15:37:28 +0300
committermpimenov <mpimenov@users.noreply.github.com>2018-02-07 19:28:19 +0300
commite01c0f206df8bc65cf9632f91c2852fde4701d54 (patch)
treec27581a4e77597cca82a641b65f93a392d3e06ee /indexer/locality_object.hpp
parentd6d919e058ea89e64b84c7e4dd5b0bc333e99b16 (diff)
Add LocalityIndex test
Diffstat (limited to 'indexer/locality_object.hpp')
-rw-r--r--indexer/locality_object.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indexer/locality_object.hpp b/indexer/locality_object.hpp
index b89b030ec2..c366dcc409 100644
--- a/indexer/locality_object.hpp
+++ b/indexer/locality_object.hpp
@@ -38,6 +38,13 @@ public:
toDo(m_triangles[i - 2], m_triangles[i - 1], m_triangles[i]);
}
+ void SetForTests(uint64_t id, m2::PointD point)
+ {
+ m_id = id;
+ m_points.clear();
+ m_points.push_back(point);
+ }
+
private:
uint64_t m_id = 0;
std::vector<m2::PointD> m_points;