Searched refs:MockFileStream (Results 1 – 2 of 2) sorted by relevance
/external/cronet/net/base/ |
D | mock_file_stream.cc | 15 MockFileStream::MockFileStream( in MockFileStream() function in net::testing::MockFileStream 19 MockFileStream::MockFileStream( in MockFileStream() function in net::testing::MockFileStream 24 MockFileStream::~MockFileStream() = default; 26 int MockFileStream::Seek(int64_t offset, Int64CompletionOnceCallback callback) { in Seek() 28 base::BindOnce(&MockFileStream::DoCallback64, weak_factory_.GetWeakPtr(), in Seek() 35 int MockFileStream::Read(IOBuffer* buf, in Read() 39 base::BindOnce(&MockFileStream::DoCallback, weak_factory_.GetWeakPtr(), in Read() 46 int MockFileStream::Write(IOBuffer* buf, in Write() 50 base::BindOnce(&MockFileStream::DoCallback, weak_factory_.GetWeakPtr(), in Write() 57 int MockFileStream::Flush(CompletionOnceCallback callback) { in Flush() [all …]
|
D | mock_file_stream.h | 25 class MockFileStream : public FileStream { 27 explicit MockFileStream(const scoped_refptr<base::TaskRunner>& task_runner); 28 MockFileStream(base::File file, 30 ~MockFileStream() override; 101 base::WeakPtrFactory<MockFileStream> weak_factory_{this};
|