From b4056ad88fc6626d8ee604b52be2020d83f6255a Mon Sep 17 00:00:00 2001 From: Alexander Shalamov Date: Sun, 21 Jul 2019 13:16:21 +0300 Subject: [core] Update CrossTileSymbolLayerIndex unit test --- test/text/cross_tile_symbol_index.test.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 textOffset{{0.0f, 0.0f}}; + std::array iconOffset{{0.0f, 0.0f}}; + style::SymbolPlacementType placementType = style::SymbolPlacementType::Point; + + auto sharedData = std::make_shared(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); } -- cgit v1.2.1