From f956badf3dd2c7eedba47dfcb787d6e6dfe92cf7 Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Thu, 16 Aug 2018 16:41:42 +0000 Subject: Add a way to save a barcode generated bitmap to a .png. This is useful for debugging and validation purposes. The hashes that are in BarcodeTest are not necessarily for valid outputs. This CL refactors the code in embedder_test.png that already does this, moving it to testing/utils where unit tests can access it too. Bug: pdfium:1135 Change-Id: I6f1d70a4e133f8f04dbe52646087f99c448e95f8 Reviewed-on: https://pdfium-review.googlesource.com/40152 Commit-Queue: Henrique Nakashima Reviewed-by: Ryan Harrison Reviewed-by: Tom Sepez --- BUILD.gn | 3 +++ 1 file changed, 3 insertions(+) (limited to 'BUILD.gn') diff --git a/BUILD.gn b/BUILD.gn index 4fbb2932ad..8e236e174d 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -248,6 +248,8 @@ jumbo_static_library("test_support") { "testing/string_write_stream.h", "testing/test_support.cpp", "testing/test_support.h", + "testing/utils/bitmap_saver.cpp", + "testing/utils/bitmap_saver.h", "testing/utils/path_service.cpp", "testing/utils/path_service.h", ] @@ -255,6 +257,7 @@ jumbo_static_library("test_support") { "testing/resources/", ] deps = [ + ":image_diff", ":pdfium", "//testing/gmock", "//testing/gtest", -- cgit v1.2.3