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-yan <tatiana.kondakova@gmail.com>2019-04-10 12:31:19 +0300
committermpimenov <mpimenov@users.noreply.github.com>2019-04-10 14:06:59 +0300
commit5d9dc344478b3ada00695a18b3a7d69a02b66e9e (patch)
treeacc78689f0e3cc2d50b4b9bc1a267d04cd48d2e9 /indexer
parentdc6fa6d3e2309c32fd280b77767b18d25af048c8 (diff)
[std][geometry] Use new include style for geometry.
Diffstat (limited to 'indexer')
-rw-r--r--indexer/indexer_tests/cell_coverer_test.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/indexer/indexer_tests/cell_coverer_test.cpp b/indexer/indexer_tests/cell_coverer_test.cpp
index 86ed758f0e..82e8e06f7e 100644
--- a/indexer/indexer_tests/cell_coverer_test.cpp
+++ b/indexer/indexer_tests/cell_coverer_test.cpp
@@ -1,26 +1,30 @@
#include "testing/testing.hpp"
+#include "geometry/covering_utils.hpp"
+
#include "indexer/cell_coverer.hpp"
#include "indexer/indexer_tests/bounds.hpp"
-#include "geometry/covering_utils.hpp"
-
#include "coding/hex.hpp"
#include "base/logging.hpp"
+#include <vector>
+
+using namespace std;
+
// Unit test uses m2::CellId<30> for historical reasons, the actual production code uses RectId.
-typedef m2::CellId<30> CellIdT;
+using CellId = m2::CellId<30>;
UNIT_TEST(CellIdToStringRecode)
{
char const kTest[] = "21032012203";
- TEST_EQUAL(CellIdT::FromString(kTest).ToString(), kTest, ());
+ TEST_EQUAL(CellId::FromString(kTest).ToString(), kTest, ());
}
UNIT_TEST(GoldenCoverRect)
{
- vector<CellIdT> cells;
+ vector<CellId> cells;
CoverRect<OrthoBounds>({27.43, 53.83, 27.70, 53.96}, 4, RectId::DEPTH_LEVELS - 1, cells);
TEST_EQUAL(cells.size(), 4, ());
@@ -35,7 +39,7 @@ UNIT_TEST(ArtificialCoverRect)
{
typedef Bounds<0, 0, 16, 16> TestBounds;
- vector<CellIdT> cells;
+ vector<CellId> cells;
CoverRect<TestBounds>({5, 5, 11, 11}, 4, RectId::DEPTH_LEVELS - 1, cells);
TEST_EQUAL(cells.size(), 4, ());