#include "net/base/mock_file_stream.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"
namespace net::testing {
MockFileStream::MockFileStream(
const scoped_refptr<base::TaskRunner>& task_runner)
: … { … }
MockFileStream::MockFileStream(
base::File file,
const scoped_refptr<base::TaskRunner>& task_runner)
: … { … }
MockFileStream::~MockFileStream() = default;
int MockFileStream::Seek(int64_t offset, Int64CompletionOnceCallback callback) { … }
int MockFileStream::Read(IOBuffer* buf,
int buf_len,
CompletionOnceCallback callback) { … }
int MockFileStream::Write(IOBuffer* buf,
int buf_len,
CompletionOnceCallback callback) { … }
int MockFileStream::Flush(CompletionOnceCallback callback) { … }
void MockFileStream::ThrottleCallbacks() { … }
void MockFileStream::ReleaseCallbacks() { … }
void MockFileStream::DoCallback(CompletionOnceCallback callback, int result) { … }
void MockFileStream::DoCallback64(Int64CompletionOnceCallback callback,
int64_t result) { … }
int MockFileStream::ErrorCallback(CompletionOnceCallback callback) { … }
int64_t MockFileStream::ErrorCallback64(Int64CompletionOnceCallback callback) { … }
}