Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

40                          skiatest::Reporter* reporter) {
41 REPORTER_ASSERT(reporter, fontFamilies[0]->fNames.count() == 5);
42 REPORTER_ASSERT(reporter, !strcmp(fontFamilies[0]->fNames[0].c_str(), "sans-serif"));
43 REPORTER_ASSERT(reporter,
45 REPORTER_ASSERT(reporter, !fontFamilies[0]->fIsFallbackFont);
52 REPORTER_ASSERT(reporter, isALPHA(c) || isDIGIT(c) || '-' == c);
63 REPORTER_ASSERT(reporter, !file.fFileName.isEmpty() &&
107 template <int N, typename T> static double test_parse_fixed_r(skiatest::Reporter* reporter,
124 REPORTER_ASSERT(reporter, error <= SK_FixedEpsilon_double);
127 REPORTER_ASSERT(reporter, f < -SK_FixedMax_double || SK_FixedMax_double < f);
135 static void test_parse_fixed(skiatest::Reporter* reporter) {
136 test_parse_fixed_r<27, int32_t>(reporter, -8.1, -7.9, 0.000001);
137 test_parse_fixed_r<27, int32_t>(reporter, -0.1, 0.1, 0.000001);
138 test_parse_fixed_r<27, int32_t>(reporter, 7.9, 8.1, 0.000001);
139 test_parse_fixed_r<16, int32_t>(reporter, -0.125, 0.125, 1.0 / (1 << 19));
140 test_parse_fixed_r<16, int32_t>(reporter, -32768.125, -32766.875, 1.0 / (1 << 17));
141 test_parse_fixed_r<16, int32_t>(reporter, 32766.875, 32768.125, 1.0 / (1 << 17));
142 test_parse_fixed_r<16, int32_t>(reporter, -1.1, 1.1, 0.0001);
145 REPORTER_ASSERT(reporter, !parse_fixed<27>("-17.1", &fix));
146 REPORTER_ASSERT(reporter, !parse_fixed<16>("32768", &fix));
147 REPORTER_ASSERT(reporter, !parse_fixed<16>("", &fix));
148 REPORTER_ASSERT(reporter, !parse_fixed<16>(".", &fix));
149 REPORTER_ASSERT(reporter, !parse_fixed<16>("123.", &fix));
150 REPORTER_ASSERT(reporter, !parse_fixed<16>("a", &fix));
151 REPORTER_ASSERT(reporter, !parse_fixed<16>(".123a", &fix));
154 DEF_TEST(FontMgrAndroidParser, reporter) {
155 test_parse_fixed(reporter);
166 REPORTER_ASSERT(reporter, preV17FontFamilies.count() == 14);
167 REPORTER_ASSERT(reporter, CountFallbacks(preV17FontFamilies) == 10);
170 ValidateLoadedFonts(preV17FontFamilies, "Roboto-Regular.ttf", reporter);
185 REPORTER_ASSERT(reporter, v17FontFamilies.count() == 56);
186 REPORTER_ASSERT(reporter, CountFallbacks(v17FontFamilies) == 46);
189 ValidateLoadedFonts(v17FontFamilies, "Roboto-Regular.ttf", reporter);
203 REPORTER_ASSERT(reporter, v22FontFamilies.count() == 54);
204 REPORTER_ASSERT(reporter, CountFallbacks(v22FontFamilies) == 42);
207 ValidateLoadedFonts(v22FontFamilies, "Roboto-Thin.ttf", reporter);