blob: 419aee183f037aa1a504f95b66da62667bcd3fbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#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/layers/symbol_layer_properties.hpp>
#include <mbgl/map/mode.hpp>
TEST(Buckets, CircleBucket) {
mbgl::MapMode mapMode = mbgl::MapMode::Still;
mbgl::CircleBucket bucket { mapMode };
ASSERT_FALSE(bucket.hasData());
}
TEST(Buckets, FillBucket) {
mbgl::FillBucket bucket;
ASSERT_FALSE(bucket.hasData());
}
TEST(Buckets, LineBucket) {
uint32_t overscaling = 0;
mbgl::LineBucket bucket { overscaling };
ASSERT_FALSE(bucket.hasData());
}
TEST(Buckets, SymbolBucket) {
mbgl::MapMode mapMode = mbgl::MapMode::Still;
mbgl::style::SymbolLayoutProperties properties;
bool sdfIcons = false;
bool iconsNeedLinear = false;
mbgl::SymbolBucket bucket { mapMode, properties, sdfIcons, iconsNeedLinear };
ASSERT_FALSE(bucket.hasIconData());
ASSERT_FALSE(bucket.hasTextData());
ASSERT_FALSE(bucket.hasCollisionBoxData());
}
|