diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-04-12 11:32:32 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-12 17:23:27 +0000 |
commit | 9d6a2089c93c94461289b21a29771039eace95e7 (patch) | |
tree | 5b747786fe129b20aaf2ba3271e7b99051f5ae99 /xfa/fxfa/cxfa_ffapp_unittest.cpp | |
parent | b333c9ec415c132451f4a10487b84f91124d08e8 (diff) | |
download | pdfium-9d6a2089c93c94461289b21a29771039eace95e7.tar.xz |
Remove MakeSeekableReadStream
This Cl removes the MakeSeekableReadStream call and, at the one place
it's used, creates an IFX_MemoryStream which is a seekable read stream.
Change-Id: I6b0b23636eff47f8caca5432313ba99703e21e4d
Reviewed-on: https://pdfium-review.googlesource.com/4037
Reviewed-by: Nicolás Peña <npm@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffapp_unittest.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_ffapp_unittest.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/xfa/fxfa/cxfa_ffapp_unittest.cpp b/xfa/fxfa/cxfa_ffapp_unittest.cpp index 4d65ccbb2f..fc1d038bac 100644 --- a/xfa/fxfa/cxfa_ffapp_unittest.cpp +++ b/xfa/fxfa/cxfa_ffapp_unittest.cpp @@ -13,13 +13,13 @@ #include "testing/gtest/include/gtest/gtest.h" #include "testing/test_support.h" #include "third_party/base/ptr_util.h" +#include "xfa/fxfa/cxfa_fileread.h" class CXFAFileReadTest : public pdfium::FPDF_Test {}; TEST_F(CXFAFileReadTest, NoStreams) { std::vector<CPDF_Stream*> streams; - CFX_RetainPtr<IFX_SeekableReadStream> fileread = - MakeSeekableReadStream(streams); + auto fileread = pdfium::MakeRetain<CXFA_FileRead>(streams); uint8_t output_buffer[16]; memset(output_buffer, 0xbd, sizeof(output_buffer)); @@ -31,8 +31,7 @@ TEST_F(CXFAFileReadTest, EmptyStreams) { std::vector<CPDF_Stream*> streams; auto stream1 = pdfium::MakeUnique<CPDF_Stream>(); streams.push_back(stream1.get()); - CFX_RetainPtr<IFX_SeekableReadStream> fileread = - MakeSeekableReadStream(streams); + auto fileread = pdfium::MakeRetain<CXFA_FileRead>(streams); uint8_t output_buffer[16]; memset(output_buffer, 0xbd, sizeof(output_buffer)); @@ -57,8 +56,7 @@ TEST_F(CXFAFileReadTest, NormalStreams) { streams.push_back(stream1.get()); streams.push_back(stream2.get()); streams.push_back(stream3.get()); - CFX_RetainPtr<IFX_SeekableReadStream> fileread = - MakeSeekableReadStream(streams); + auto fileread = pdfium::MakeRetain<CXFA_FileRead>(streams); uint8_t output_buffer[16]; memset(output_buffer, 0xbd, sizeof(output_buffer)); |