Lines Matching refs:Reporter
310 int comparePaths(skiatest::Reporter* reporter, const char* filename, const SkPath& one,
331 SkDebugf("static void %s_%s(skiatest::Reporter* reporter, const char* filename) {\n",
337 SkDebugf(" testPathOp(reporter, path, pathB, %s, filename);\n", opStrs[shapeOp]);
344 static int comparePaths(skiatest::Reporter* reporter, const char* testName, const SkPath& one,
353 REPORTER_ASSERT(reporter, 0);
364 REPORTER_ASSERT(reporter, 0);
370 // Default values for when reporter->verbose() is false.
401 out.append("(skiatest::Reporter* reporter) {\n SkPath path");
450 const char testFunction[] = "testSimplify(reporter, path);";
459 static bool inner_simplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename,
469 REPORTER_ASSERT(reporter, 0);
475 REPORTER_ASSERT(reporter, 0);
479 int errors = comparePaths(reporter, filename, path, out, bitmap);
483 REPORTER_ASSERT(reporter, 0);
487 REPORTER_ASSERT(reporter, 0);
489 reporter->bumpTestCount();
493 bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename) {
494 return inner_simplify(reporter, path, filename, ExpectSuccess::kYes, SkipAssert::kNo,
498 bool testSimplifyFuzz(skiatest::Reporter* reporter, const SkPath& path, const char* filename) {
499 return inner_simplify(reporter, path, filename, ExpectSuccess::kFlaky, SkipAssert::kYes,
503 bool testSimplifyCheck(skiatest::Reporter* reporter
505 return inner_simplify(reporter, path, filename, checkFail ?
518 static bool innerPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
529 REPORTER_ASSERT(reporter, 0);
535 REPORTER_ASSERT(reporter, 0);
538 if (!reporter->verbose()) {
565 int result = comparePaths(reporter, testName, pathOut, scaledPathOut, out, scaledOut, bitmap,
567 reporter->bumpTestCount();
571 bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
573 return innerPathOp(reporter, a, b, shapeOp, testName, ExpectSuccess::kYes, SkipAssert::kNo,
577 bool testPathOpCheck(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
579 return innerPathOp(reporter, a, b, shapeOp, testName, checkFail ?
583 bool testPathOpFuzz(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
585 return innerPathOp(reporter, a, b, shapeOp, testName, ExpectSuccess::kFlaky, SkipAssert::kYes,
589 bool testPathOpFail(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
599 REPORTER_ASSERT(reporter, 0);
608 void initializeTests(skiatest::Reporter* reporter, const char* test) {
609 if (reporter->verbose()) {
648 void RunTestSet(skiatest::Reporter* reporter, TestDesc tests[], size_t count,
649 void (*firstTest)(skiatest::Reporter* , const char* filename),
650 void (*skipTest)(skiatest::Reporter* , const char* filename),
651 void (*stopTest)(skiatest::Reporter* , const char* filename), bool reverse) {
661 (*tests[index].fun)(reporter, tests[index].str);
677 (*tests[index].fun)(reporter, tests[index].str);