From e35cbbae55ab01f33690b1bb2e918c5f8393b854 Mon Sep 17 00:00:00 2001 From: Ivo van Dongen Date: Thu, 22 Jun 2017 14:33:21 -0700 Subject: [core] mutate style on annotation mutations immediately --- test/tile/annotation_tile.test.cpp | 8 +++++--- test/tile/geojson_tile.test.cpp | 4 +++- test/tile/raster_tile.test.cpp | 4 +++- test/tile/vector_tile.test.cpp | 4 +++- 4 files changed, 14 insertions(+), 6 deletions(-) (limited to 'test/tile') diff --git a/test/tile/annotation_tile.test.cpp b/test/tile/annotation_tile.test.cpp index 813b813220..739307b78a 100644 --- a/test/tile/annotation_tile.test.cpp +++ b/test/tile/annotation_tile.test.cpp @@ -16,6 +16,7 @@ #include #include #include +#include #include @@ -27,10 +28,11 @@ public: TransformState transformState; util::RunLoop loop; ThreadPool threadPool { 1 }; - AnnotationManager annotationManager; + style::Style style { loop, fileSource, 1 }; + AnnotationManager annotationManager { style }; HeadlessBackend backend { test::sharedDisplay() }; BackendScope scope { backend }; - RenderStyle style { threadPool, fileSource }; + RenderStyle renderStyle { threadPool, fileSource }; ImageManager imageManager; GlyphManager glyphManager { fileSource }; @@ -92,7 +94,7 @@ TEST(AnnotationTile, Issue8289) { TransformState transformState; RenderedQueryOptions options; - tile.queryRenderedFeatures(result, queryGeometry, transformState, test.style, options); + tile.queryRenderedFeatures(result, queryGeometry, transformState, test.renderStyle, options); EXPECT_TRUE(result.empty()); } diff --git a/test/tile/geojson_tile.test.cpp b/test/tile/geojson_tile.test.cpp index 52f7a20f00..31fb8c1fd0 100644 --- a/test/tile/geojson_tile.test.cpp +++ b/test/tile/geojson_tile.test.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -24,7 +25,8 @@ public: TransformState transformState; util::RunLoop loop; ThreadPool threadPool { 1 }; - AnnotationManager annotationManager; + style::Style style { loop, fileSource, 1 }; + AnnotationManager annotationManager { style }; ImageManager imageManager; GlyphManager glyphManager { fileSource }; Tileset tileset { { "https://example.com" }, { 0, 22 }, "none" }; diff --git a/test/tile/raster_tile.test.cpp b/test/tile/raster_tile.test.cpp index 4680e7f485..e96e09bacf 100644 --- a/test/tile/raster_tile.test.cpp +++ b/test/tile/raster_tile.test.cpp @@ -3,6 +3,7 @@ #include #include +#include #include #include #include @@ -20,7 +21,8 @@ public: TransformState transformState; util::RunLoop loop; ThreadPool threadPool { 1 }; - AnnotationManager annotationManager; + style::Style style { loop, fileSource, 1 }; + AnnotationManager annotationManager { style }; ImageManager imageManager; GlyphManager glyphManager { fileSource }; Tileset tileset { { "https://example.com" }, { 0, 22 }, "none" }; diff --git a/test/tile/vector_tile.test.cpp b/test/tile/vector_tile.test.cpp index d7ad3c999d..b0fee28edf 100644 --- a/test/tile/vector_tile.test.cpp +++ b/test/tile/vector_tile.test.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -26,7 +27,8 @@ public: TransformState transformState; util::RunLoop loop; ThreadPool threadPool { 1 }; - AnnotationManager annotationManager; + style::Style style { loop, fileSource, 1 }; + AnnotationManager annotationManager { style }; ImageManager imageManager; GlyphManager glyphManager { fileSource }; Tileset tileset { { "https://example.com" }, { 0, 22 }, "none" }; -- cgit v1.2.1