Lines Matching defs:reporter
47 skiatest::Reporter* reporter) {
48 REPORTER_ASSERT(reporter, fontFamilies[0]->fNames.count() == 5);
49 REPORTER_ASSERT(reporter, !strcmp(fontFamilies[0]->fNames[0].c_str(), "sans-serif"));
50 REPORTER_ASSERT(reporter,
52 REPORTER_ASSERT(reporter, !fontFamilies[0]->fIsFallbackFont);
60 REPORTER_ASSERT(reporter, isALPHA(c) || isDIGIT(c) || '-' == c);
72 REPORTER_ASSERT(reporter, !file.fFileName.isEmpty() &&
128 template <int N, typename T> static double test_parse_fixed_r(skiatest::Reporter* reporter,
145 REPORTER_ASSERT(reporter, error <= SK_FixedEpsilon_double);
148 REPORTER_ASSERT(reporter, f < -SK_FixedMax_double || SK_FixedMax_double < f);
156 static void test_parse_fixed(skiatest::Reporter* reporter) {
157 test_parse_fixed_r<27, int32_t>(reporter, -8.1, -7.9, 0.000001);
158 test_parse_fixed_r<27, int32_t>(reporter, -0.1, 0.1, 0.000001);
159 test_parse_fixed_r<27, int32_t>(reporter, 7.9, 8.1, 0.000001);
160 test_parse_fixed_r<16, int32_t>(reporter, -0.125, 0.125, 1.0 / (1 << 19));
161 test_parse_fixed_r<16, int32_t>(reporter, -32768.125, -32766.875, 1.0 / (1 << 17));
162 test_parse_fixed_r<16, int32_t>(reporter, 32766.875, 32768.125, 1.0 / (1 << 17));
163 test_parse_fixed_r<16, int32_t>(reporter, -1.1, 1.1, 0.0001);
166 REPORTER_ASSERT(reporter, !parse_fixed<27>("-17.1", &fix));
167 REPORTER_ASSERT(reporter, !parse_fixed<16>("32768", &fix));
168 REPORTER_ASSERT(reporter, !parse_fixed<16>("", &fix));
169 REPORTER_ASSERT(reporter, !parse_fixed<16>(".", &fix));
170 REPORTER_ASSERT(reporter, !parse_fixed<16>("123.", &fix));
171 REPORTER_ASSERT(reporter, !parse_fixed<16>("a", &fix));
172 REPORTER_ASSERT(reporter, !parse_fixed<16>(".123a", &fix));
175 DEF_TEST(FontMgrAndroidParser, reporter) {
176 test_parse_fixed(reporter);
187 REPORTER_ASSERT(reporter, preV17FontFamilies.count() == 14);
188 REPORTER_ASSERT(reporter, CountFallbacks(preV17FontFamilies) == 10);
191 ValidateLoadedFonts(preV17FontFamilies, "Roboto-Regular.ttf", reporter);
206 REPORTER_ASSERT(reporter, v17FontFamilies.count() == 56);
207 REPORTER_ASSERT(reporter, CountFallbacks(v17FontFamilies) == 46);
210 ValidateLoadedFonts(v17FontFamilies, "Roboto-Regular.ttf", reporter);
224 REPORTER_ASSERT(reporter, v22FontFamilies.count() == 54);
225 REPORTER_ASSERT(reporter, CountFallbacks(v22FontFamilies) == 42);
228 ValidateLoadedFonts(v22FontFamilies, "Roboto-Thin.ttf", reporter);
239 DEF_TEST(FontMgrAndroidLegacyMakeTypeface, reporter) {
245 ERRORF(reporter, "file missing: %s\n", fontsXmlFilename);
258 REPORTER_ASSERT(reporter, nullptr == t);
274 DEF_TEST(FontMgrAndroidSystemVariableTypeface, reporter) {
280 ERRORF(reporter, "file missing: %s\n", fontsXmlFilename);
347 REPORTER_ASSERT(reporter, success);
351 DEF_TEST(FontMgrAndroidSystemFallbackFor, reporter) {
357 ERRORF(reporter, "file missing: %s\n", fontsXmlFilename);
375 REPORTER_ASSERT(reporter, typeface->fontStyle() == SkFontStyle::Bold());