Lines Matching defs:reporter
236 int comparePaths(skiatest::Reporter* reporter, const char* filename, const SkPath& one,
257 SkDebugf("static void %s_%s(skiatest::Reporter* reporter, const char* filename) {\n",
263 SkDebugf(" testPathOp(reporter, path, pathB, %s, filename);\n", opStrs[shapeOp]);
268 static int comparePaths(skiatest::Reporter* reporter, const char* testName, const SkPath& one,
278 REPORTER_ASSERT(reporter, 0);
289 REPORTER_ASSERT(reporter, 0);
295 // Default values for when reporter->verbose() is false.
327 out.append("(skiatest::Reporter* reporter) {\n SkPath path");
384 const char testFunction[] = "testSimplify(reporter, path);";
461 static bool inner_simplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename,
479 REPORTER_ASSERT(reporter, 0);
489 REPORTER_ASSERT(reporter, 0);
497 int errors = comparePaths(reporter, filename, path, out, bitmap);
501 REPORTER_ASSERT(reporter, 0);
505 REPORTER_ASSERT(reporter, 0);
507 reporter->bumpTestCount();
511 bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename) {
512 return inner_simplify(reporter, path, filename, ExpectSuccess::kYes, SkipAssert::kNo,
516 bool testSimplifyFuzz(skiatest::Reporter* reporter, const SkPath& path, const char* filename) {
517 return inner_simplify(reporter, path, filename, ExpectSuccess::kFlaky, SkipAssert::kYes,
521 bool testSimplifyCheck(skiatest::Reporter* reporter, const SkPath& path, const char* filename,
523 return inner_simplify(reporter, path, filename, checkFail ?
527 bool testSimplifyFail(skiatest::Reporter* reporter, const SkPath& path, const char* filename) {
528 return inner_simplify(reporter, path, filename,
532 static bool innerPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
553 REPORTER_ASSERT(reporter, 0);
563 REPORTER_ASSERT(reporter, 0);
570 if (!reporter->verbose()) {
597 int result = comparePaths(reporter, testName, pathOut, scaledPathOut, out, scaledOut, bitmap,
599 reporter->bumpTestCount();
603 bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
605 return innerPathOp(reporter, a, b, shapeOp, testName, ExpectSuccess::kYes, SkipAssert::kNo,
609 bool testPathOpCheck(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
611 return innerPathOp(reporter, a, b, shapeOp, testName, checkFail ?
615 bool testPathOpFuzz(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
617 return innerPathOp(reporter, a, b, shapeOp, testName, ExpectSuccess::kFlaky, SkipAssert::kYes,
621 bool testPathOpFail(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
628 REPORTER_ASSERT(reporter, 0);
635 void initializeTests(skiatest::Reporter* reporter, const char* test) {
637 if (reporter->verbose()) {
676 void RunTestSet(skiatest::Reporter* reporter, TestDesc tests[], size_t count,
686 (*tests[index].fun)(reporter, tests[index].str);
699 (*tests[index].fun)(reporter, tests[index].str);