diff options
author | Lei Zhang <thestig@chromium.org> | 2018-08-14 18:26:36 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-14 18:26:36 +0000 |
commit | 88798cff29934b58e0a8d81e94005472d612b964 (patch) | |
tree | 3b5a25faa2a627ac30de219b89c8152a9fff2f27 /testing/fx_string_testhelpers.h | |
parent | b9c3e2712f75363372622282023143b86b72f2df (diff) | |
download | pdfium-88798cff29934b58e0a8d81e94005472d612b964.tar.xz |
Remove CFX_BufferSeekableReadStream.
Replace it with CFX_ReadOnlyMemoryStream, which does the same thing.
Take some checks from CFX_BufferSeekableReadStream and add them
CFX_ReadOnlyMemoryStream.
Change-Id: I25554c3aec3ec96967f8df16ca68a64dba121b6f
Reviewed-on: https://pdfium-review.googlesource.com/40070
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'testing/fx_string_testhelpers.h')
-rw-r--r-- | testing/fx_string_testhelpers.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/testing/fx_string_testhelpers.h b/testing/fx_string_testhelpers.h index 4cddefab0a..a828d825ab 100644 --- a/testing/fx_string_testhelpers.h +++ b/testing/fx_string_testhelpers.h @@ -32,23 +32,4 @@ class CFX_InvalidSeekableReadStream : public IFX_SeekableReadStream { const FX_FILESIZE data_size_; }; -class CFX_BufferSeekableReadStream : public IFX_SeekableReadStream { - public: - template <typename T, typename... Args> - friend RetainPtr<T> pdfium::MakeRetain(Args&&... args); - - // IFX_SeekableReadStream: - bool ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override; - - FX_FILESIZE GetSize() override { - return static_cast<FX_FILESIZE>(data_.size()); - } - - private: - explicit CFX_BufferSeekableReadStream(pdfium::span<const uint8_t> data); - ~CFX_BufferSeekableReadStream() override; - - pdfium::span<const uint8_t> data_; -}; - #endif // TESTING_FX_STRING_TESTHELPERS_H_ |