39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
#include <mbgl/test/util.hpp>
|
|
|
|
#include <mbgl/renderer/circle_bucket.hpp>
|
|
#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>
|
|
|
|
using namespace mbgl;
|
|
|
|
TEST(Buckets, CircleBucket) {
|
|
CircleBucket bucket { { {0, 0, 0}, MapMode::Still }, {} };
|
|
ASSERT_FALSE(bucket.hasData());
|
|
}
|
|
|
|
TEST(Buckets, FillBucket) {
|
|
FillBucket bucket { { {0, 0, 0}, MapMode::Still }, {} };
|
|
ASSERT_FALSE(bucket.hasData());
|
|
}
|
|
|
|
TEST(Buckets, LineBucket) {
|
|
LineBucket bucket { { {0, 0, 0}, MapMode::Still }, {}, {} };
|
|
ASSERT_FALSE(bucket.hasData());
|
|
}
|
|
|
|
TEST(Buckets, SymbolBucket) {
|
|
style::SymbolLayoutProperties::Evaluated layout;
|
|
bool sdfIcons = false;
|
|
bool iconsNeedLinear = false;
|
|
|
|
SymbolBucket bucket { layout, {}, 0, sdfIcons, iconsNeedLinear };
|
|
ASSERT_FALSE(bucket.hasIconData());
|
|
ASSERT_FALSE(bucket.hasTextData());
|
|
ASSERT_FALSE(bucket.hasCollisionBoxData());
|
|
}
|