summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-04-22 13:28:03 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-04-22 13:28:03 -0700
commit0c5d805bf9ac14eeaaaef8c08281a3e6f33ddb0b (patch)
treebcfd85dcdc22fb6b321d0111a0762affc743dcfa /test
parent9c9ff2d2d4aeac9f605a6ca23447e54adea9f6bd (diff)
downloadqtlocation-mapboxgl-0c5d805bf9ac14eeaaaef8c08281a3e6f33ddb0b.tar.gz
[core] FontStack ⇢ GlyphSet (#4803)
A font stack is an array of font names. This is not that.
Diffstat (limited to 'test')
-rw-r--r--test/style/glyph_store.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/style/glyph_store.cpp b/test/style/glyph_store.cpp
index c101d45bdf..96d112183a 100644
--- a/test/style/glyph_store.cpp
+++ b/test/style/glyph_store.cpp
@@ -2,7 +2,7 @@
#include <mbgl/test/stub_file_source.hpp>
#include <mbgl/test/stub_style_observer.hpp>
-#include <mbgl/text/font_stack.hpp>
+#include <mbgl/text/glyph_set.hpp>
#include <mbgl/text/glyph_store.hpp>
#include <mbgl/util/run_loop.hpp>
#include <mbgl/util/string.hpp>
@@ -53,8 +53,8 @@ TEST(GlyphStore, LoadingSuccess) {
if (!test.glyphStore.hasGlyphRanges("Test Stack", {{0, 255}, {256, 511}}))
return;
- auto fontStack = test.glyphStore.getFontStack("Test Stack");
- ASSERT_FALSE(fontStack->getSDFs().empty());
+ auto glyphSet = test.glyphStore.getGlyphSet("Test Stack");
+ ASSERT_FALSE(glyphSet->getSDFs().empty());
test.end();
};
@@ -83,8 +83,8 @@ TEST(GlyphStore, LoadingFail) {
EXPECT_TRUE(error != nullptr);
EXPECT_EQ(util::toString(error), "Failed by the test case");
- auto stack = test.glyphStore.getFontStack("Test Stack");
- ASSERT_TRUE(stack->getSDFs().empty());
+ auto glyphSet = test.glyphStore.getGlyphSet("Test Stack");
+ ASSERT_TRUE(glyphSet->getSDFs().empty());
ASSERT_FALSE(test.glyphStore.hasGlyphRanges("Test Stack", {{0, 255}}));
test.end();
@@ -112,8 +112,8 @@ TEST(GlyphStore, LoadingCorrupted) {
EXPECT_TRUE(error != nullptr);
EXPECT_EQ(util::toString(error), "pbf unknown field type exception");
- auto stack = test.glyphStore.getFontStack("Test Stack");
- ASSERT_TRUE(stack->getSDFs().empty());
+ auto glyphSet = test.glyphStore.getGlyphSet("Test Stack");
+ ASSERT_TRUE(glyphSet->getSDFs().empty());
ASSERT_FALSE(test.glyphStore.hasGlyphRanges("Test Stack", {{0, 255}}));
test.end();