diff options
Diffstat (limited to 'tools/image_expectations.h')
-rw-r--r-- | tools/image_expectations.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tools/image_expectations.h b/tools/image_expectations.h index 09a945a1b0..b7b135d912 100644 --- a/tools/image_expectations.h +++ b/tools/image_expectations.h @@ -90,12 +90,23 @@ namespace sk_tools { * @param sourceName name of the source file that generated this result * @param fileName relative path to the image output file on local disk * @param digest description of the image's contents - * @param tileNumber if not NULL, ptr to tile number + * @param tileNumber if not NULL, pointer to tile number */ void add(const char *sourceName, const char *fileName, const ImageDigest &digest, const int *tileNumber=NULL); /** + * Returns true if this test result matches its expectations. + * If there are no expectations for this test result, this will return false. + * + * @param sourceName name of the source file that generated this result + * @param digest description of the image's contents + * @param tileNumber if not NULL, pointer to tile number + */ + bool matchesExpectation(const char *sourceName, const ImageDigest &digest, + const int *tileNumber=NULL); + + /** * Writes the summary (as constructed so far) to a file. * * @param filename path to write the summary to |