Lines Matching refs:Reporter
20 static void test_font(skiatest::Reporter* reporter) {
24 REPORTER_ASSERT(reporter, font->getTypeface());
25 REPORTER_ASSERT(reporter, 24 == font->getSize());
26 REPORTER_ASSERT(reporter, 1 == font->getScaleX());
27 REPORTER_ASSERT(reporter, 0 == font->getSkewX());
28 REPORTER_ASSERT(reporter, SkFont::kA8_MaskType == font->getMaskType());
35 REPORTER_ASSERT(reporter, 5 == count);
37 REPORTER_ASSERT(reporter, 0 != glyphs[i]);
39 REPORTER_ASSERT(reporter, glyphs[0] != glyphs[1]); // 'h' != 'e'
40 REPORTER_ASSERT(reporter, glyphs[2] == glyphs[3]); // 'l' == 'l'
43 REPORTER_ASSERT(reporter, newFont.get());
44 REPORTER_ASSERT(reporter, font->getTypeface() == newFont->getTypeface());
45 REPORTER_ASSERT(reporter, 36 == newFont->getSize()); // double check we haven't changed
46 REPORTER_ASSERT(reporter, 24 == font->getSize()); // double check we haven't changed
51 REPORTER_ASSERT(reporter, font.get());
52 REPORTER_ASSERT(reporter, font->getSize() == paint.getTextSize());
53 REPORTER_ASSERT(reporter, SkFont::kBW_MaskType == font->getMaskType());
61 static void test_alias_names(skiatest::Reporter* reporter) {
79 REPORTER_ASSERT(reporter, first->uniqueID() == face->uniqueID());
84 static void test_fontiter(skiatest::Reporter* reporter, bool verbose) {
94 REPORTER_ASSERT(reporter, fnset->count() == set->count());
104 // REPORTER_ASSERT(reporter, sname.size() > 0);
107 // REPORTER_ASSERT(reporter, face.get());
117 static void test_matchStyleCSS3(skiatest::Reporter* reporter) {
702 REPORTER_ASSERT(reporter, typeface->fontStyle() == testCase.expectedResult);
704 REPORTER_ASSERT(reporter, invalidFontStyle == testCase.expectedResult);
712 DEF_TEST(FontMgr, reporter) {
713 test_matchStyleCSS3(reporter);
714 test_fontiter(reporter, FLAGS_verboseFontMgr);
715 test_alias_names(reporter);
716 test_font(reporter);