summaryrefslogtreecommitdiff
path: root/xfa/fxfa/app/xfa_ffapp_unittest.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-11-21 13:19:10 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-21 13:19:10 -0800
commit9e05ee1e7bfb74d56d69620ad1e72b03e29b9237 (patch)
tree12b47b617d99edc7bd2715292402b74e864e1fa4 /xfa/fxfa/app/xfa_ffapp_unittest.cpp
parentaa3922dd713d480229408f3a0813b7dab9e8fd78 (diff)
downloadpdfium-9e05ee1e7bfb74d56d69620ad1e72b03e29b9237.tar.xz
Make CPDF_Stream() take unique_ptr's to its dictionary.
Review-Url: https://codereview.chromium.org/2520493002
Diffstat (limited to 'xfa/fxfa/app/xfa_ffapp_unittest.cpp')
-rw-r--r--xfa/fxfa/app/xfa_ffapp_unittest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/app/xfa_ffapp_unittest.cpp b/xfa/fxfa/app/xfa_ffapp_unittest.cpp
index 10c0545fbb..b35780d218 100644
--- a/xfa/fxfa/app/xfa_ffapp_unittest.cpp
+++ b/xfa/fxfa/app/xfa_ffapp_unittest.cpp
@@ -46,11 +46,11 @@ TEST(CXFAFileRead, NormalStreams) {
// 16 chars total.
stream1->InitStream(reinterpret_cast<const uint8_t*>("one t"), 5,
- new CPDF_Dictionary());
+ pdfium::MakeUnique<CPDF_Dictionary>());
stream2->InitStream(reinterpret_cast<const uint8_t*>("wo "), 3,
- new CPDF_Dictionary());
+ pdfium::MakeUnique<CPDF_Dictionary>());
stream3->InitStream(reinterpret_cast<const uint8_t*>("three!!!"), 8,
- new CPDF_Dictionary());
+ pdfium::MakeUnique<CPDF_Dictionary>());
streams.push_back(stream1.get());
streams.push_back(stream2.get());