summaryrefslogtreecommitdiff
path: root/xfa/fwl/cfx_barcode_unittest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fwl/cfx_barcode_unittest.cpp')
-rw-r--r--xfa/fwl/cfx_barcode_unittest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/xfa/fwl/cfx_barcode_unittest.cpp b/xfa/fwl/cfx_barcode_unittest.cpp
index 4b1dc059ce..0fa2352175 100644
--- a/xfa/fwl/cfx_barcode_unittest.cpp
+++ b/xfa/fwl/cfx_barcode_unittest.cpp
@@ -14,6 +14,7 @@
#include "core/fxge/cfx_renderdevice.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/test_support.h"
+#include "testing/utils/bitmap_saver.h"
#include "third_party/base/ptr_util.h"
class BarcodeTest : public testing::Test {
@@ -58,6 +59,11 @@ class BarcodeTest : public testing::Test {
bitmap_->GetPitch() * bitmap_->GetHeight());
}
+ // Manually insert calls to this as needed for debugging.
+ void SaveBitmap(const std::string& filename) {
+ BitmapSaver::WriteBitmapToPng(bitmap_.Get(), filename);
+ }
+
protected:
CFX_Matrix matrix_;
std::unique_ptr<CFX_Barcode> barcode_;