From 3f7dcf033de517b5772761ee4abe9508579e0054 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Tue, 17 Jan 2017 01:01:46 +0200 Subject: [PATCH] [tests] Update tests because of changes in style::UpdateParameters --- test/style/source.test.cpp | 6 +++++- test/tile/geojson_tile.test.cpp | 6 +++++- test/tile/raster_tile.test.cpp | 6 +++++- test/tile/vector_tile.test.cpp | 6 +++++- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/test/style/source.test.cpp b/test/style/source.test.cpp index fb7737e417a..6d39a3d626d 100644 --- a/test/style/source.test.cpp +++ b/test/style/source.test.cpp @@ -34,6 +34,8 @@ class SourceTest { ThreadPool threadPool { 1 }; AnnotationManager annotationManager { 1.0 }; style::Style style { fileSource, 1.0 }; + int32_t fixedPrefetchZoom = -1; + int32_t dynamicPrefetchZoomDelta = -1; style::UpdateParameters updateParameters { 1.0, @@ -43,7 +45,9 @@ class SourceTest { fileSource, MapMode::Continuous, annotationManager, - style + style, + fixedPrefetchZoom, + dynamicPrefetchZoomDelta }; SourceTest() { diff --git a/test/tile/geojson_tile.test.cpp b/test/tile/geojson_tile.test.cpp index 920e946a2b3..9d7f65c8e3d 100644 --- a/test/tile/geojson_tile.test.cpp +++ b/test/tile/geojson_tile.test.cpp @@ -26,6 +26,8 @@ class GeoJSONTileTest { AnnotationManager annotationManager { 1.0 }; style::Style style { fileSource, 1.0 }; Tileset tileset { { "https://example.com" }, { 0, 22 }, "none" }; + int32_t fixedPrefetchZoom = -1; + int32_t dynamicPrefetchZoomDelta = -1; style::UpdateParameters updateParameters { 1.0, @@ -35,7 +37,9 @@ class GeoJSONTileTest { fileSource, MapMode::Continuous, annotationManager, - style + style, + fixedPrefetchZoom, + dynamicPrefetchZoomDelta }; }; diff --git a/test/tile/raster_tile.test.cpp b/test/tile/raster_tile.test.cpp index 0d599ceae09..29ecbf7c199 100644 --- a/test/tile/raster_tile.test.cpp +++ b/test/tile/raster_tile.test.cpp @@ -21,6 +21,8 @@ class RasterTileTest { AnnotationManager annotationManager { 1.0 }; style::Style style { fileSource, 1.0 }; Tileset tileset { { "https://example.com" }, { 0, 22 }, "none" }; + int32_t fixedPrefetchZoom = -1; + int32_t dynamicPrefetchZoomDelta = -1; style::UpdateParameters updateParameters { 1.0, @@ -30,7 +32,9 @@ class RasterTileTest { fileSource, MapMode::Continuous, annotationManager, - style + style, + fixedPrefetchZoom, + dynamicPrefetchZoomDelta }; }; diff --git a/test/tile/vector_tile.test.cpp b/test/tile/vector_tile.test.cpp index 2fe2586ec2b..880c26ad46c 100644 --- a/test/tile/vector_tile.test.cpp +++ b/test/tile/vector_tile.test.cpp @@ -27,6 +27,8 @@ class VectorTileTest { AnnotationManager annotationManager { 1.0 }; style::Style style { fileSource, 1.0 }; Tileset tileset { { "https://example.com" }, { 0, 22 }, "none" }; + int32_t fixedPrefetchZoom = -1; + int32_t dynamicPrefetchZoomDelta = -1; style::UpdateParameters updateParameters { 1.0, @@ -36,7 +38,9 @@ class VectorTileTest { fileSource, MapMode::Continuous, annotationManager, - style + style, + fixedPrefetchZoom, + dynamicPrefetchZoomDelta }; };