| Index: core/fpdfapi/parser/cpdf_parser_unittest.cpp
|
| diff --git a/core/fpdfapi/parser/cpdf_parser_unittest.cpp b/core/fpdfapi/parser/cpdf_parser_unittest.cpp
|
| index c97b88e6d1d83934a6b9344a8863ccacfd11beae..6c6fb213f401252ab2fa9991ebae6efe2862924d 100644
|
| --- a/core/fpdfapi/parser/cpdf_parser_unittest.cpp
|
| +++ b/core/fpdfapi/parser/cpdf_parser_unittest.cpp
|
| @@ -13,7 +13,7 @@
|
| #include "testing/utils/path_service.h"
|
|
|
| // Provide a way to read test data from a buffer instead of a file.
|
| -class CFX_TestBufferRead : public IFX_FileRead {
|
| +class CFX_TestBufferRead : public IFX_SeekableReadStream {
|
| public:
|
| CFX_TestBufferRead(const unsigned char* buffer_in, size_t buf_size)
|
| : buffer_(buffer_in), total_size_(buf_size) {}
|
| @@ -21,7 +21,7 @@ class CFX_TestBufferRead : public IFX_FileRead {
|
| // IFX_Stream
|
| void Release() override { delete this; }
|
|
|
| - // IFX_FileRead
|
| + // IFX_SeekableReadStream
|
| FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override {
|
| if (offset < 0 || offset + size > total_size_) {
|
| return FALSE;
|
| @@ -45,7 +45,7 @@ class CPDF_TestParser : public CPDF_Parser {
|
|
|
| // Setup reading from a file and initial states.
|
| bool InitTestFromFile(const FX_CHAR* path) {
|
| - IFX_FileRead* pFileAccess = FX_CreateFileRead(path);
|
| + IFX_SeekableReadStream* pFileAccess = FX_CreateFileRead(path);
|
| if (!pFileAccess)
|
| return false;
|
|
|
|
|