#include "services/network/test/test_data_pipe_getter.h"
#include <algorithm>
#include <utility>
#include "base/containers/span.h"
#include "base/functional/bind.h"
#include "base/task/sequenced_task_runner.h"
#include "mojo/public/c/system/types.h"
namespace network {
TestDataPipeGetter::TestDataPipeGetter(
const std::string& string_to_write,
mojo::PendingReceiver<mojom::DataPipeGetter> receiver)
: … { … }
TestDataPipeGetter::~TestDataPipeGetter() = default;
void TestDataPipeGetter::set_start_error(int32_t start_error) { … }
void TestDataPipeGetter::set_pipe_closed_early(bool pipe_closed_early) { … }
void TestDataPipeGetter::Read(mojo::ScopedDataPipeProducerHandle pipe,
ReadCallback callback) { … }
void TestDataPipeGetter::Clone(
mojo::PendingReceiver<mojom::DataPipeGetter> receiver) { … }
void TestDataPipeGetter::MojoReadyCallback(
MojoResult result,
const mojo::HandleSignalsState& state) { … }
void TestDataPipeGetter::WriteData() { … }
}