From bcd3e538f170a5ab2c3295f1a3b0062781d384a5 Mon Sep 17 00:00:00 2001 From: thestig Date: Mon, 21 Nov 2016 13:37:28 -0800 Subject: Check dimensions and content of bitmaps in EmbedderTests. Review-Url: https://codereview.chromium.org/2514173002 --- testing/embedder_test.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'testing/embedder_test.h') 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(); -- cgit v1.2.3