Lines Matching defs:expectations
758 * Compares actual hash digest to expectations, returning the set of errors
765 * @param expectations what expectations to compare actualBitmap against
777 ErrorCombination compare_to_expectations(Expectations expectations,
790 if (expectations.empty()) {
793 // Write out the "actuals" for any tests without expectations, if we have
802 } else if (!expectations.match(actualBitmapAndDigest.fDigest)) {
823 const SkBitmap *expectedBitmapPtr = expectations.asBitmap();
832 expectations.ignoreFailure());
833 add_expected_results_to_json_summary(completeName, expectations);
864 // because gm only looks at expectations that correspond
867 // Once we have the ability to express expectations as a
884 Expectations expectations) {
885 this->fJsonExpectedResults[testName] = expectations.asJsonValue();
889 * Compare actualBitmap to expectations stored in this->fExpectationsSource.
912 // against any expectations, because the output image isn't
937 Expectations expectations = expectationsSource->get(nameWithExtension.c_str());
939 expectations.setIgnoreFailure(true);
941 errors.add(compare_to_expectations(expectations, *actualBitmapAndDigest,
944 // If we are running without expectations, we still want to
970 Expectations expectations(*referenceBitmap);
979 errors.add(compare_to_expectations(expectations, actualBitmapAndDigest, shortName,
1258 // Where to read expectations (expected image hash digests, etc.) from.
1434 DEFINE_string(missingExpectationsPath, "", "Write images for tests without expectations "
1533 * etc.), confirming that the resulting bitmaps match expectations
2158 gm_fprintf(stdout, "reading expectations from JSON summary file %s\n", readPath);
2235 gm_fprintf(stdout, "writing images without expectations to %s\n",