summaryrefslogtreecommitdiff
path: root/xfa/fxfa/app/xfa_ffapp_unittest.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-12-01 15:16:54 -0800
committerCommit bot <commit-bot@chromium.org>2016-12-01 15:16:54 -0800
commitf78bf1a54a4afb6486869b4bc5850283225d7055 (patch)
treed89a4158bb76dc837ba9cd1639337296dd60bd9c /xfa/fxfa/app/xfa_ffapp_unittest.cpp
parentd912f6ba083fed382a13c47aa06299e86d0b8c6b (diff)
downloadpdfium-f78bf1a54a4afb6486869b4bc5850283225d7055.tar.xz
Make concrete stream classes private to .cpp, part 3
Review-Url: https://codereview.chromium.org/2545953002
Diffstat (limited to 'xfa/fxfa/app/xfa_ffapp_unittest.cpp')
-rw-r--r--xfa/fxfa/app/xfa_ffapp_unittest.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/xfa/fxfa/app/xfa_ffapp_unittest.cpp b/xfa/fxfa/app/xfa_ffapp_unittest.cpp
index b35780d218..7a65dcc45b 100644
--- a/xfa/fxfa/app/xfa_ffapp_unittest.cpp
+++ b/xfa/fxfa/app/xfa_ffapp_unittest.cpp
@@ -13,12 +13,12 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/base/ptr_util.h"
-using UniqueFileRead =
- std::unique_ptr<CXFA_FileRead, ReleaseDeleter<CXFA_FileRead>>;
+using UniqueFileRead = std::unique_ptr<IFX_SeekableReadStream,
+ ReleaseDeleter<IFX_SeekableReadStream>>;
TEST(CXFAFileRead, NoStreams) {
std::vector<CPDF_Stream*> streams;
- UniqueFileRead fileread(new CXFA_FileRead(streams));
+ UniqueFileRead fileread(MakeSeekableReadStream(streams));
uint8_t output_buffer[16];
memset(output_buffer, 0xbd, sizeof(output_buffer));
@@ -30,7 +30,7 @@ TEST(CXFAFileRead, EmptyStreams) {
std::vector<CPDF_Stream*> streams;
std::unique_ptr<CPDF_Stream> stream1 = pdfium::MakeUnique<CPDF_Stream>();
streams.push_back(stream1.get());
- UniqueFileRead fileread(new CXFA_FileRead(streams));
+ UniqueFileRead fileread(MakeSeekableReadStream(streams));
uint8_t output_buffer[16];
memset(output_buffer, 0xbd, sizeof(output_buffer));
@@ -55,7 +55,7 @@ TEST(CXFAFileRead, NormalStreams) {
streams.push_back(stream1.get());
streams.push_back(stream2.get());
streams.push_back(stream3.get());
- UniqueFileRead fileread(new CXFA_FileRead(streams));
+ UniqueFileRead fileread(MakeSeekableReadStream(streams));
uint8_t output_buffer[16];
memset(output_buffer, 0xbd, sizeof(output_buffer));