summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2019-07-21 13:16:21 +0300
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2019-07-23 15:43:27 +0300
commitb4056ad88fc6626d8ee604b52be2020d83f6255a (patch)
treebb540861e541b3af600ee4217531294092101a02
parentac74fc6d005e334ff7126e49b4c737ecb10666b3 (diff)
downloadqtlocation-mapboxgl-b4056ad88fc6626d8ee604b52be2020d83f6255a.tar.gz
[core] Update CrossTileSymbolLayerIndex unit test
-rw-r--r--test/text/cross_tile_symbol_index.test.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/text/cross_tile_symbol_index.test.cpp b/test/text/cross_tile_symbol_index.test.cpp
index 841f73c699..7cef287b00 100644
--- a/test/text/cross_tile_symbol_index.test.cpp
+++ b/test/text/cross_tile_symbol_index.test.cpp
@@ -11,7 +11,14 @@ SymbolInstance makeSymbolInstance(float x, float y, std::u16string key) {
style::SymbolLayoutProperties::Evaluated layout_;
IndexedSubfeature subfeature(0, "", "", 0);
Anchor anchor(x, y, 0, 0);
- return SymbolInstance(anchor, line, shaping, {}, layout_, 0, 0, 0, style::SymbolPlacementType::Point, {{0, 0}}, 0, 0, {{0, 0}}, positions, subfeature, 0, 0, key, 0, 0, 0.0f);
+ std::array<float, 2> textOffset{{0.0f, 0.0f}};
+ std::array<float, 2> iconOffset{{0.0f, 0.0f}};
+ style::SymbolPlacementType placementType = style::SymbolPlacementType::Point;
+
+ auto sharedData = std::make_shared<SymbolInstanceSharedData>(std::move(line),
+ shaping, nullopt, layout_, 0.0f, placementType,
+ textOffset, positions);
+ return SymbolInstance(anchor, std::move(sharedData), shaping, nullopt, 0, 0, placementType, textOffset, 0, 0, iconOffset, subfeature, 0, 0, key, 0, 0, 0.0f);
}