From 88798cff29934b58e0a8d81e94005472d612b964 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 14 Aug 2018 18:26:36 +0000 Subject: 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 Commit-Queue: Lei Zhang --- testing/fx_string_testhelpers.h | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'testing/fx_string_testhelpers.h') 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 - friend RetainPtr pdfium::MakeRetain(Args&&... args); - - // IFX_SeekableReadStream: - bool ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override; - - FX_FILESIZE GetSize() override { - return static_cast(data_.size()); - } - - private: - explicit CFX_BufferSeekableReadStream(pdfium::span data); - ~CFX_BufferSeekableReadStream() override; - - pdfium::span data_; -}; - #endif // TESTING_FX_STRING_TESTHELPERS_H_ -- cgit v1.2.3