Lines Matching refs:Reporter
35 static void test_unitsPerEm(skiatest::Reporter* reporter, const sk_sp<SkTypeface>& face) {
48 REPORTER_ASSERT(reporter, tableUPEM == nativeUPEM);
54 static void test_countGlyphs(skiatest::Reporter* reporter, const sk_sp<SkTypeface>& face) {
67 REPORTER_ASSERT(reporter, tableGlyphs == nativeGlyphs);
90 static void test_charsToGlyphs(skiatest::Reporter* reporter, const sk_sp<SkTypeface>& face) {
110 REPORTER_ASSERT_MESSAGE(reporter, paintGlyphIds[i] == faceGlyphIds[i], a.c_str());
115 static void test_fontstream(skiatest::Reporter* reporter, SkStream* stream, int ttcIndex) {
120 REPORTER_ASSERT(reporter, n == n2);
135 REPORTER_ASSERT(reporter, gKnownTableSizes[j].fSize == size);
141 static void test_fontstream(skiatest::Reporter* reporter) {
153 test_fontstream(reporter, stream.get(), i);
157 static void test_symbolfont(skiatest::Reporter* reporter) {
170 REPORTER_ASSERT(reporter, g == 3);
173 static void test_tables(skiatest::Reporter* reporter, const sk_sp<SkTypeface>& face) {
176 REPORTER_ASSERT(reporter, fontID);
185 REPORTER_ASSERT(reporter, count2 == count);
189 REPORTER_ASSERT(reporter, size > 0);
203 REPORTER_ASSERT(reporter, gKnownTableSizes[j].fSize == size);
211 REPORTER_ASSERT(reporter, size2 == size);
216 static void test_tables(skiatest::Reporter* reporter) {
232 test_tables(reporter, face);
233 test_unitsPerEm(reporter, face);
234 test_countGlyphs(reporter, face);
235 test_charsToGlyphs(reporter, face);
244 static void test_advances(skiatest::Reporter* reporter) {
304 REPORTER_ASSERT(reporter, width1 == width2);
310 DEF_TEST(FontHost, reporter) {
311 test_tables(reporter);
312 test_fontstream(reporter);
313 test_advances(reporter);
314 test_symbolfont(reporter);