Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

321 int comparePaths(skiatest::Reporter* reporter, const char* filename, const SkPath& one,
342 SkDebugf("static void %s_%s(skiatest::Reporter* reporter, const char* filename) {\n",
348 SkDebugf(" testPathOp(reporter, path, pathB, %s, filename);\n", opStrs[shapeOp]);
355 static int comparePaths(skiatest::Reporter* reporter, const char* testName, const SkPath& one,
364 REPORTER_ASSERT(reporter, 0);
375 REPORTER_ASSERT(reporter, 0);
381 // Default values for when reporter->verbose() is false.
413 out.append("(skiatest::Reporter* reporter) {\n SkPath path");
464 const char testFunction[] = "testSimplify(reporter, path);";
473 static bool inner_simplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename,
483 REPORTER_ASSERT(reporter, 0);
489 REPORTER_ASSERT(reporter, 0);
493 int errors = comparePaths(reporter, filename, path, out, bitmap);
497 REPORTER_ASSERT(reporter, 0);
501 REPORTER_ASSERT(reporter, 0);
503 reporter->bumpTestCount();
507 bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename) {
508 return inner_simplify(reporter, path, filename, ExpectSuccess::kYes, SkipAssert::kNo,
512 bool testSimplifyFuzz(skiatest::Reporter* reporter
513 return inner_simplify(reporter, path, filename, ExpectSuccess::kFlaky, SkipAssert::kYes,
517 bool testSimplifyCheck(skiatest::Reporter* reporter, const SkPath& path, const char* filename,
519 return inner_simplify(reporter, path, filename, checkFail ?
532 static bool innerPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
543 REPORTER_ASSERT(reporter, 0);
549 REPORTER_ASSERT(reporter, 0);
552 if (!reporter->verbose()) {
579 int result = comparePaths(reporter, testName, pathOut, scaledPathOut, out, scaledOut, bitmap,
581 reporter->bumpTestCount();
585 bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
587 return innerPathOp(reporter, a, b, shapeOp, testName, ExpectSuccess::kYes, SkipAssert::kNo,
591 bool testPathOpCheck(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
593 return innerPathOp(reporter, a, b, shapeOp, testName, checkFail ?
597 bool testPathOpFuzz(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
599 return innerPathOp(reporter, a, b, shapeOp, testName, ExpectSuccess::kFlaky, SkipAssert::kYes,
603 bool testPathOpFail(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
613 REPORTER_ASSERT(reporter, 0);
622 void initializeTests(skiatest::Reporter* reporter, const char* test) {
623 if (reporter->verbose()) {
662 void RunTestSet(skiatest::Reporter* reporter, TestDesc tests[], size_t count,
663 void (*firstTest)(skiatest::Reporter* , const char* filename),
664 void (*skipTest)(skiatest::Reporter* , const char* filename),
665 void (*stopTest)(skiatest::Reporter* , const char* filename), bool reverse) {
675 (*tests[index].fun)(reporter, tests[index].str);
691 (*tests[index].fun)(reporter, tests[index].str);