diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-10-28 16:39:50 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2017-02-02 09:44:42 -0800 |
commit | 141e995806576364d185626176c1b993fc519291 (patch) | |
tree | ecdc41fc7699f2a1a9e9456157348451ebe99597 /test/gl/bucket.test.cpp | |
parent | 6a6bddb4537004cc1bfc506e76772de74d33f3f7 (diff) | |
download | qtlocation-mapboxgl-141e995806576364d185626176c1b993fc519291.tar.gz |
[core] Add support for data-driven styling
Diffstat (limited to 'test/gl/bucket.test.cpp')
-rw-r--r-- | test/gl/bucket.test.cpp | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/test/gl/bucket.test.cpp b/test/gl/bucket.test.cpp index 03cdc63a91..feda234af2 100644 --- a/test/gl/bucket.test.cpp +++ b/test/gl/bucket.test.cpp @@ -4,37 +4,34 @@ #include <mbgl/renderer/fill_bucket.hpp> #include <mbgl/renderer/line_bucket.hpp> #include <mbgl/renderer/symbol_bucket.hpp> - +#include <mbgl/style/bucket_parameters.hpp> #include <mbgl/style/layers/symbol_layer_properties.hpp> #include <mbgl/map/mode.hpp> -TEST(Buckets, CircleBucket) { - mbgl::MapMode mapMode = mbgl::MapMode::Still; +using namespace mbgl; - mbgl::CircleBucket bucket { mapMode }; +TEST(Buckets, CircleBucket) { + CircleBucket bucket { { {0, 0, 0}, MapMode::Still }, {} }; ASSERT_FALSE(bucket.hasData()); } TEST(Buckets, FillBucket) { - mbgl::FillBucket bucket; + FillBucket bucket { { {0, 0, 0}, MapMode::Still }, {} }; ASSERT_FALSE(bucket.hasData()); } TEST(Buckets, LineBucket) { - uint32_t overscaling = 0; - - mbgl::LineBucket bucket { overscaling }; + LineBucket bucket { { {0, 0, 0}, MapMode::Still }, {}, {} }; ASSERT_FALSE(bucket.hasData()); } TEST(Buckets, SymbolBucket) { - mbgl::MapMode mapMode = mbgl::MapMode::Still; - mbgl::style::SymbolLayoutProperties::Evaluated properties; + style::SymbolLayoutProperties::Evaluated layout; bool sdfIcons = false; bool iconsNeedLinear = false; - mbgl::SymbolBucket bucket { mapMode, properties, sdfIcons, iconsNeedLinear }; + SymbolBucket bucket { layout, {}, 0, sdfIcons, iconsNeedLinear }; ASSERT_FALSE(bucket.hasIconData()); ASSERT_FALSE(bucket.hasTextData()); ASSERT_FALSE(bucket.hasCollisionBoxData()); |