summaryrefslogtreecommitdiff
path: root/testing/embedder_test.h
diff options
context:
space:
mode:
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 8da1643824..98432e3e54 100644
--- a/testing/embedder_test.h
+++ b/testing/embedder_test.h
@@ -134,6 +134,12 @@ class EmbedderTest : public ::testing::Test,
// Return the hash of |bitmap|.
static std::string HashBitmap(FPDF_BITMAP bitmap);
+#ifndef NDEBUG
+ // For debugging purposes.
+ // Write |bitmap| to a png file.
+ static void WriteBitmapToPng(FPDF_BITMAP bitmap, const std::string& filename);
+#endif
+
// Check |bitmap| to make sure it has the right dimensions and content.
static void CompareBitmap(FPDF_BITMAP bitmap,
int expected_width,