summaryrefslogtreecommitdiff
path: root/testing/embedder_test.h
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-11-21 13:37:28 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-21 13:37:28 -0800
commitbcd3e538f170a5ab2c3295f1a3b0062781d384a5 (patch)
tree0a16f383cfd22b4b9d26c7acdb085d5b05843631 /testing/embedder_test.h
parentd33c8e3145539631d03242a16c3683c3538c7557 (diff)
downloadpdfium-bcd3e538f170a5ab2c3295f1a3b0062781d384a5.tar.xz
Check dimensions and content of bitmaps in EmbedderTests.chromium/2927
Review-Url: https://codereview.chromium.org/2514173002
Diffstat (limited to 'testing/embedder_test.h')
-rw-r--r--testing/embedder_test.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/embedder_test.h b/testing/embedder_test.h
index dc4ca0dc08..cc0caec8f6 100644
--- a/testing/embedder_test.h
+++ b/testing/embedder_test.h
@@ -105,6 +105,12 @@ class EmbedderTest : public ::testing::Test,
// is prohibited after this call is made.
virtual void UnloadPage(FPDF_PAGE page);
+ // Check |bitmap| to make sure it has the right dimensions and content.
+ static void CompareBitmap(FPDF_BITMAP bitmap,
+ int expected_width,
+ int expected_height,
+ const char* expected_md5sum);
+
protected:
void SetupFormFillEnvironment();