Index: tests/TypefaceTest.cpp |
diff --git a/tests/TypefaceTest.cpp b/tests/TypefaceTest.cpp |
index 6a606d4e9571f695d6c01cdea34b2189cf3ee36d..13196bca48fd0d1e49267b82b84630bf3bb96250 100644 |
--- a/tests/TypefaceTest.cpp |
+++ b/tests/TypefaceTest.cpp |
@@ -12,7 +12,7 @@ |
DEF_TEST(Typeface, reporter) { |
- sk_sp<SkTypeface> t1(SkTypeface::MakeFromName(nullptr, SkTypeface::kNormal)); |
+ sk_sp<SkTypeface> t1(SkTypeface::MakeFromName(nullptr, SkFontStyle())); |
sk_sp<SkTypeface> t2(SkTypeface::MakeDefault(SkTypeface::kNormal)); |
REPORTER_ASSERT(reporter, SkTypeface::Equal(t1.get(), t2.get())); |
@@ -22,7 +22,7 @@ DEF_TEST(Typeface, reporter) { |
REPORTER_ASSERT(reporter, SkTypeface::Equal(t2.get(), 0)); |
#ifdef SK_BUILD_FOR_ANDROID |
- sk_sp<SkTypeface> t3(SkTypeface::MakeFromName("non-existent-font", SkTypeface::kNormal)); |
+ sk_sp<SkTypeface> t3(SkTypeface::MakeFromName("non-existent-font", SkFontStyle())); |
REPORTER_ASSERT(reporter, nullptr == t3); |
#endif |
} |