Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

290 int comparePaths(skiatest::Reporter* reporter, const char* filename, const SkPath& one,
313 SkDebugf("static void %s%d%s(skiatest::Reporter* reporter, const char* filename) {\n",
320 SkDebugf(" testPathOp(reporter, path, pathB, %s, filename);\n", opStrs[shapeOp]);
336 static int comparePaths(skiatest::Reporter* reporter, const char* testName, const SkPath& one,
345 REPORTER_ASSERT(reporter, 0);
356 REPORTER_ASSERT(reporter, 0);
362 // Default values for when reporter->verbose() is false.
394 outFile.writeText("(skiatest::Reporter* reporter) {\n SkPath path");
449 const char testFunction[] = "testSimplify(reporter, path);";
458 static bool inner_simplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename,
466 REPORTER_ASSERT(reporter, 0);
470 int errors = comparePaths(reporter, filename, path, out, bitmap);
474 REPORTER_ASSERT(reporter, 0);
478 REPORTER_ASSERT(reporter, 0);
480 reporter->bumpTestCount();
484 bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename) {
485 return inner_simplify(reporter, path, filename, true);
488 bool testSimplifyCheck(skiatest::Reporter* reporter, const SkPath& path, const char* filename,
490 return inner_simplify(reporter, path, filename, checkFail);
505 static bool innerPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
513 REPORTER_ASSERT(reporter, 0);
516 if (!reporter->verbose()) {
543 int result = comparePaths(reporter, testName, pathOut, scaledPathOut, out, scaledOut, bitmap,
545 reporter->bumpTestCount();
549 bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
551 return innerPathOp(reporter, a, b, shapeOp, testName, true);
554 bool testPathOpCheck(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
556 return innerPathOp(reporter, a, b, shapeOp, testName, checkFail);
559 bool testPathOpFailCheck(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
561 return innerPathOp(reporter, a, b, shapeOp, testName, false);
564 bool testPathFailOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
574 REPORTER_ASSERT(reporter, 0);
583 void initializeTests(skiatest::Reporter* reporter, const char* test) {
588 if (reporter->verbose()) {
629 void RunTestSet(skiatest::Reporter* reporter, TestDesc tests[], size_t count,
630 void (*firstTest)(skiatest::Reporter* , const char* filename),
631 void (*skipTest)(skiatest::Reporter* , const char* filename),
632 void (*stopTest)(skiatest::Reporter* , const char* filename), bool reverse) {
642 (*tests[index].fun)(reporter, tests[index].str);
658 (*tests[index].fun)(reporter, tests[index].str);