1 // Copyright 2019 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "testing/invalid_seekable_read_stream.h" 6 InvalidSeekableReadStream(FX_FILESIZE data_size)7InvalidSeekableReadStream::InvalidSeekableReadStream(FX_FILESIZE data_size) 8 : data_size_(data_size) {} 9 10 InvalidSeekableReadStream::~InvalidSeekableReadStream() = default; 11 ReadBlockAtOffset(void * buffer,FX_FILESIZE offset,size_t size)12bool InvalidSeekableReadStream::ReadBlockAtOffset(void* buffer, 13 FX_FILESIZE offset, 14 size_t size) { 15 return false; 16 } 17 GetSize()18FX_FILESIZE InvalidSeekableReadStream::GetSize() { 19 return data_size_; 20 } 21