diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2018-08-16 16:41:42 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-16 16:41:42 +0000 |
commit | f956badf3dd2c7eedba47dfcb787d6e6dfe92cf7 (patch) | |
tree | e14a2baf941514395ea29922eb9960a1a20dfe9d /BUILD.gn | |
parent | 048d7f7c1e0c6c42679a5646ae9db5b7d98ed755 (diff) | |
download | pdfium-f956badf3dd2c7eedba47dfcb787d6e6dfe92cf7.tar.xz |
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 <hnakashima@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'BUILD.gn')
-rw-r--r-- | BUILD.gn | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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", |