Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

22 static void report_opaqueness(skiatest::Reporter* reporter, const SkBitmap& src,
28 reporter->reportFailed(str);
36 static void test_isOpaque(skiatest::Reporter* reporter,
42 REPORTER_ASSERT(reporter, srcPremul.copyTo(&dst, dstConfig));
43 REPORTER_ASSERT(reporter, dst.config() == dstConfig);
45 report_opaqueness(reporter, srcPremul, dst);
49 REPORTER_ASSERT(reporter, srcOpaque.copyTo(&dst, dstConfig));
50 REPORTER_ASSERT(reporter, dst.config() == dstConfig);
52 report_opaqueness(reporter, srcOpaque, dst);
184 skiatest::Reporter* reporter){
198 reporter->reportFailed(str);
208 DEF_TEST(BitmapCopy, reporter) {
254 reporter->reportFailed(str);
263 reporter->reportFailed(str);
267 REPORTER_ASSERT(reporter, srcPremul.width() == dst.width());
268 REPORTER_ASSERT(reporter, srcPremul.height() == dst.height());
269 REPORTER_ASSERT(reporter, dst.config() == gPairs[j].fConfig);
270 test_isOpaque(reporter, srcOpaque, srcPremul, dst.config());
274 REPORTER_ASSERT(reporter, srcPremul.readyToDraw());
275 REPORTER_ASSERT(reporter, dst.readyToDraw());
278 REPORTER_ASSERT(reporter, srcP != dstP);
279 REPORTER_ASSERT(reporter, !memcmp(srcP, dstP,
281 REPORTER_ASSERT(reporter, srcPremul.getGenerationID() == dst.getGenerationID());
283 REPORTER_ASSERT(reporter, srcPremul.getGenerationID() != dst.getGenerationID());
293 REPORTER_ASSERT(reporter, subset.width() == 1);
294 REPORTER_ASSERT(reporter, subset.height() == 1);
295 REPORTER_ASSERT(reporter,
297 REPORTER_ASSERT(reporter,
301 REPORTER_ASSERT(reporter,
303 REPORTER_ASSERT(reporter, copy.width() == 1);
304 REPORTER_ASSERT(reporter, copy.height() == 1);
305 REPORTER_ASSERT(reporter, copy.rowBytes() <= 4);
311 REPORTER_ASSERT(reporter,
317 REPORTER_ASSERT(reporter,
319 REPORTER_ASSERT(reporter,
325 REPORTER_ASSERT(reporter, dst.config() == SkBitmap::kNo_Config);
326 REPORTER_ASSERT(reporter, dst.width() == 0);
327 REPORTER_ASSERT(reporter, dst.height() == 0);
351 reporter->reportFailed(str);
386 reporter->reportFailed(str);
461 REPORTER_ASSERT(reporter,
468 reporter);
480 REPORTER_ASSERT(reporter,
485 "copyPixelsTo(buf, bufSize)", reporter);
494 REPORTER_ASSERT(reporter,
499 "copyPixelsTo(buf, bufSize, rowBytes+1)", reporter);
508 REPORTER_ASSERT(reporter,
513 "copyPixelsTo(buf, bufSize, rowBytes()-1)", reporter);
523 REPORTER_ASSERT(reporter,
535 REPORTER_ASSERT(reporter,
540 reporter);
545 REPORTER_ASSERT(reporter,