aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/FontHostTest.cpp
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2017-12-08 14:25:14 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-08 20:03:18 +0000
commit53e5e7d4ce9d203fadc36b6349bcbb68862f0d22 (patch)
tree912eaf887571f76ecd3cf352352d46bc12bc347f /tests/FontHostTest.cpp
parent5093a539def3ae09df324018f2343827009b2e05 (diff)
resources: resource identifiers don't begin with leading slash
Change-Id: I52522ffffbf0f5176ac9156cd563b41d6fdde59f Reviewed-on: https://skia-review.googlesource.com/82940 Reviewed-by: Leon Scroggins <scroggo@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'tests/FontHostTest.cpp')
-rw-r--r--tests/FontHostTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/FontHostTest.cpp b/tests/FontHostTest.cpp
index 3d54c57fe7..3285198931 100644
--- a/tests/FontHostTest.cpp
+++ b/tests/FontHostTest.cpp
@@ -139,7 +139,7 @@ static void test_fontstream(skiatest::Reporter* reporter, SkStream* stream, int
}
static void test_fontstream(skiatest::Reporter* reporter) {
- std::unique_ptr<SkStreamAsset> stream(GetResourceAsStream("/fonts/test.ttc"));
+ std::unique_ptr<SkStreamAsset> stream(GetResourceAsStream("fonts/test.ttc"));
if (!stream) {
SkDebugf("Skipping FontHostTest::test_fontstream\n");
return;
@@ -158,7 +158,7 @@ static void test_symbolfont(skiatest::Reporter* reporter) {
SkUnichar c = 0xf021;
uint16_t g;
SkPaint paint;
- paint.setTypeface(MakeResourceAsTypeface("/fonts/SpiderSymbol.ttf"));
+ paint.setTypeface(MakeResourceAsTypeface("fonts/SpiderSymbol.ttf"));
paint.setTextEncoding(SkPaint::kUTF32_TextEncoding);
paint.textToGlyphs(&c, 4, &g);