Lines Matching refs:Reporter
25 static void test_cachedfont(skiatest::Reporter* reporter, const SkPaint& paint) {
30 REPORTER_ASSERT(reporter, font->getTypeface() == paint.getTypeface());
32 REPORTER_ASSERT(reporter, font->getSize() == paint.getTextSize());
33 REPORTER_ASSERT(reporter, font->getScaleX() == paint.getTextScaleX());
34 REPORTER_ASSERT(reporter, font->getSkewX() == paint.getTextSkewX());
36 REPORTER_ASSERT(reporter, font->isVertical() == paint.isVerticalText());
37 REPORTER_ASSERT(reporter, font->isEmbolden() == paint.isFakeBoldText());
39 REPORTER_ASSERT(reporter, font->isUseNonLinearMetrics() == is_use_nonlinear_metrics(paint));
40 REPORTER_ASSERT(reporter, font->isEnableAutoHints() == is_enable_auto_hints(paint));
41 REPORTER_ASSERT(reporter, font->isEnableByteCodeHints() == is_enable_bytecode_hints(paint));
44 static void test_cachedfont(skiatest::Reporter* reporter) {
92 test_cachedfont(reporter, paint);
103 REPORTER_ASSERT(reporter, width1 == width2);
108 REPORTER_ASSERT(reporter, font_width1 == -1);
109 // REPORTER_ASSERT(reporter, width1 == font_width1);
115 DEF_TEST(FontObj, reporter) {
116 test_cachedfont(reporter);