Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

100 DEF_TEST(BlurDrawing, reporter) {
143 REPORTER_ASSERT(reporter,
311 DEF_TEST(BlurSigmaRange, reporter) {
344 REPORTER_ASSERT(reporter, match(rectSpecialCaseResult, bruteForce1DResult, kSize, 5));
345 REPORTER_ASSERT(reporter, match(generalCaseResult, bruteForce1DResult, kSize, 15));
354 REPORTER_ASSERT(reporter, match(gpuResult, bruteForce1DResult, kSize, 10));
358 REPORTER_ASSERT(reporter, match(groundTruthResult, bruteForce1DResult, kSize, 1));
379 static void test_blurDrawLooper(skiatest::Reporter* reporter, SkScalar sigma,
392 REPORTER_ASSERT(reporter, sigma <= 0);
396 REPORTER_ASSERT(reporter, success == expectSuccess);
398 REPORTER_ASSERT(reporter, rec.fSigma == sigma);
399 REPORTER_ASSERT(reporter, rec.fOffset.x() == dx);
400 REPORTER_ASSERT(reporter, rec.fOffset.y() == dy);
401 REPORTER_ASSERT(reporter, rec.fColor == color);
402 REPORTER_ASSERT(reporter, rec.fStyle == style);
403 REPORTER_ASSERT(reporter, rec.fQuality == kLow_SkBlurQuality);
408 static void test_looper(skiatest::Reporter* reporter, sk_sp<SkDrawLooper> lp, SkScalar sigma,
412 REPORTER_ASSERT(reporter, success == expectSuccess);
417 REPORTER_ASSERT(reporter, rec.fSigma == sigma);
418 REPORTER_ASSERT(reporter, rec.fStyle == style);
419 REPORTER_ASSERT(reporter, rec.fQuality == quality);
440 static void test_layerDrawLooper(skiatest::Reporter* reporter, sk_sp<SkMaskFilter> mf,
449 test_looper(reporter, builder.detach(), sigma, style, quality, false);
454 test_looper(reporter, builder.detach(), sigma, style, quality, false);
459 test_looper(reporter, builder.detach(), sigma, style, quality, expectSuccess);
465 test_looper(reporter, builder.detach(), sigma, style, quality, false);
468 DEF_TEST(BlurAsABlur, reporter) {
488 REPORTER_ASSERT(reporter, sigma <= 0);
490 reporter, sigma > 0);
494 REPORTER_ASSERT(reporter, !success);
496 REPORTER_ASSERT(reporter, success);
497 REPORTER_ASSERT(reporter, rec.fSigma == sigma);
498 REPORTER_ASSERT(reporter, rec.fStyle == style);
499 REPORTER_ASSERT(reporter, rec.fQuality == quality);
501 test_layerDrawLooper(reporter, std::move(mf), sigma, style, quality, success);
503 test_blurDrawLooper(reporter, sigma, style, flags);
520 REPORTER_ASSERT(reporter, !success);
530 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(SmallBoxBlurBug, reporter, ctxInfo) {
548 DEF_TEST(BlurredRRectNinePatchComputation, reporter) {
572 REPORTER_ASSERT(reporter, !ninePatchable);
588 REPORTER_ASSERT(reporter, ninePatchable);
589 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(SkIntToScalar(size.fWidth), kAns));
590 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(SkIntToScalar(size.fHeight), kAns));
591 REPORTER_ASSERT(reporter, 4 == numX && 4 == numY);
592 REPORTER_ASSERT(reporter, !skipMask);
611 REPORTER_ASSERT(reporter, ninePatchable);
612 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(SkIntToScalar(size.fWidth), kXAns));
613 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(SkIntToScalar(size.fHeight), kYAns));
614 REPORTER_ASSERT(reporter, 4 == numX && 4 == numY);
615 REPORTER_ASSERT(reporter, !skipMask);
655 REPORTER_ASSERT(reporter, ninePatchable);
656 REPORTER_ASSERT(reporter,
658 REPORTER_ASSERT(reporter,
666 REPORTER_ASSERT(reporter,
670 REPORTER_ASSERT(reporter, texXs[x] >= 0 &&
672 REPORTER_ASSERT(reporter, texYs[y] >= 0 &&