diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2018-11-06 16:11:47 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2018-11-13 17:28:26 +0200 |
commit | bf8b24fa8d30df374ee36be781b6a572036187b9 (patch) | |
tree | bdca15eef94898a879e4f3737eee2dc44efa275f /test/tile | |
parent | 4e15a0c8cd7c906908d97da10f75b35a3bc2ed9e (diff) | |
download | qtlocation-mapboxgl-bf8b24fa8d30df374ee36be781b6a572036187b9.tar.gz |
[build] Update to geometry v1.0.0
Diffstat (limited to 'test/tile')
-rw-r--r-- | test/tile/custom_geometry_tile.test.cpp | 18 | ||||
-rw-r--r-- | test/tile/geojson_tile.test.cpp | 12 |
2 files changed, 13 insertions, 17 deletions
diff --git a/test/tile/custom_geometry_tile.test.cpp b/test/tile/custom_geometry_tile.test.cpp index 21a3dd7953..dc6aaab1ac 100644 --- a/test/tile/custom_geometry_tile.test.cpp +++ b/test/tile/custom_geometry_tile.test.cpp @@ -50,8 +50,8 @@ TEST(CustomGeometryTile, InvokeFetchTile) { CircleLayer layer("circle", "source"); - mapbox::geometry::feature_collection<double> features; - features.push_back(mapbox::geometry::feature<double> { + mapbox::feature::feature_collection<double> features; + features.push_back(mapbox::feature::feature<double> { mapbox::geometry::point<double>(0, 0) }); CustomTileLoader loader([&](const CanonicalTileID& tileId) { @@ -62,7 +62,7 @@ TEST(CustomGeometryTile, InvokeFetchTile) { }); auto mb =std::make_shared<Mailbox>(*Scheduler::GetCurrent()); ActorRef<CustomTileLoader> loaderActor(loader, mb); - + CustomGeometryTile tile(OverscaledTileID(0, 0, 0), "source", test.tileParameters, CustomGeometrySource::TileOptions(), loaderActor); @@ -76,8 +76,8 @@ TEST(CustomGeometryTile, InvokeCancelTile) { CircleLayer layer("circle", "source"); - mapbox::geometry::feature_collection<double> features; - features.push_back(mapbox::geometry::feature<double> { + mapbox::feature::feature_collection<double> features; + features.push_back(mapbox::feature::feature<double> { mapbox::geometry::point<double>(0, 0) }); @@ -87,7 +87,7 @@ TEST(CustomGeometryTile, InvokeCancelTile) { }); auto mb =std::make_shared<Mailbox>(*Scheduler::GetCurrent()); ActorRef<CustomTileLoader> loaderActor(loader, mb); - + CustomGeometryTile tile(OverscaledTileID(0, 0, 0), "source", test.tileParameters, CustomGeometrySource::TileOptions(), loaderActor); @@ -101,15 +101,15 @@ TEST(CustomGeometryTile, InvokeTileChanged) { CircleLayer layer("circle", "source"); - mapbox::geometry::feature_collection<double> features; - features.push_back(mapbox::geometry::feature<double> { + mapbox::feature::feature_collection<double> features; + features.push_back(mapbox::feature::feature<double> { mapbox::geometry::point<double>(0, 0) }); CustomTileLoader loader(nullptr, nullptr); auto mb =std::make_shared<Mailbox>(*Scheduler::GetCurrent()); ActorRef<CustomTileLoader> loaderActor(loader, mb); - + CustomGeometryTile tile(OverscaledTileID(0, 0, 0), "source", test.tileParameters, CustomGeometrySource::TileOptions(), loaderActor); diff --git a/test/tile/geojson_tile.test.cpp b/test/tile/geojson_tile.test.cpp index c05e04bc8d..fb5f3ca6d7 100644 --- a/test/tile/geojson_tile.test.cpp +++ b/test/tile/geojson_tile.test.cpp @@ -50,10 +50,8 @@ TEST(GeoJSONTile, Issue7648) { CircleLayer layer("circle", "source"); - mapbox::geometry::feature_collection<int16_t> features; - features.push_back(mapbox::geometry::feature<int16_t> { - mapbox::geometry::point<int16_t>(0, 0) - }); + mapbox::feature::feature_collection<int16_t> features; + features.push_back(mapbox::feature::feature<int16_t> { mapbox::geometry::point<int16_t>(0, 0) }); GeoJSONTile tile(OverscaledTileID(0, 0, 0), "source", test.tileParameters, features); @@ -84,10 +82,8 @@ TEST(GeoJSONTile, Issue9927) { CircleLayer layer("circle", "source"); - mapbox::geometry::feature_collection<int16_t> features; - features.push_back(mapbox::geometry::feature<int16_t> { - mapbox::geometry::point<int16_t>(0, 0) - }); + mapbox::feature::feature_collection<int16_t> features; + features.push_back(mapbox::feature::feature<int16_t> { mapbox::geometry::point<int16_t>(0, 0) }); GeoJSONTile tile(OverscaledTileID(0, 0, 0), "source", test.tileParameters, features); |