Lines Matching full:reporter
76 static void compare_unpremul(skiatest::Reporter* reporter, const SkString& filename) {
101 REPORTER_ASSERT(reporter, success);
115 REPORTER_ASSERT(reporter, dimensionsMatch);
140 REPORTER_ASSERT(reporter, 0 == da);
143 REPORTER_ASSERT(reporter, dr <= 1);
144 REPORTER_ASSERT(reporter, dg <= 1);
145 REPORTER_ASSERT(reporter, db <= 1);
150 static void test_unpremul(skiatest::Reporter* reporter) {
163 compare_unpremul(reporter, filename);
172 static void test_alphaType(skiatest::Reporter* reporter, const SkString& filename,
187 REPORTER_ASSERT(reporter, success);
200 REPORTER_ASSERT(reporter, success);
211 REPORTER_ASSERT(reporter, requireUnpremul);
219 REPORTER_ASSERT(reporter, kUnpremul_SkAlphaType == boundsAlphaType
222 REPORTER_ASSERT(reporter, kPremul_SkAlphaType == boundsAlphaType
229 REPORTER_ASSERT(reporter, bm.alphaType() == boundsAlphaType
233 DEF_TEST(ImageDecoding_alphaType, reporter) {
246 test_alphaType(reporter, filename, SkToBool(truth));
256 DEF_TEST(ImageDecoding_unpremul, reporter) {
280 REPORTER_ASSERT(reporter, NULL != decoder.get());
289 REPORTER_ASSERT(reporter, success);
294 REPORTER_ASSERT(reporter, bm.width() == 1 && bm.height() == 1);
297 REPORTER_ASSERT(reporter, bm.getAddr32(0, 0)[0] == 0x7fffffff);
301 REPORTER_ASSERT(reporter, success);
311 REPORTER_ASSERT(reporter, success);
316 REPORTER_ASSERT(reporter, bm.width() == 1 && bm.height() == 1);
319 REPORTER_ASSERT(reporter, bm.getAddr32(0, 0)[0] == 0x7f7f7f7f);
392 DEF_TEST(ImageDecoding, reporter) {
393 test_unpremul(reporter);
424 DEF_TEST(WebP, reporter) {
461 REPORTER_ASSERT(reporter, success);
469 REPORTER_ASSERT(reporter, rightSize);
479 REPORTER_ASSERT(reporter, !error);
505 DEF_TEST(ImprovedBitmapFactory, reporter) {
514 REPORTER_ASSERT(reporter,
517 REPORTER_ASSERT(reporter, NULL != bm.getPixels());
575 static void test_options(skiatest::Reporter* reporter,
603 ERRORF(reporter, "Bounds decode failed [sampleSize=%d dither=%s "
612 REPORTER_ASSERT(reporter, check_rounding(bm.height(), kExpectedHeight,
614 REPORTER_ASSERT(reporter, check_rounding(bm.width(), kExpectedWidth,
624 ERRORF(reporter, "Pixel decode failed [sampleSize=%d dither=%s "
631 REPORTER_ASSERT(reporter,
652 ERRORF(reporter, "Pixel-level mismatch (%d of %d) "
668 DEF_TEST(ImageDecoderOptions, reporter) {
704 REPORTER_ASSERT(reporter, encodedData.get() != NULL);
707 REPORTER_ASSERT(reporter, encodedStream.get() != NULL);
716 test_options(reporter, opts, encodedStream, encodedData,
722 test_options(reporter, options, encodedStream, encodedData,