#include "third_party/blink/renderer/platform/blob/testing/fake_blob.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
#include "mojo/public/cpp/system/data_pipe_utils.h"
#include "services/network/public/mojom/data_pipe_getter.mojom-blink.h"
namespace blink {
namespace {
class SimpleDataPipeGetter : public network::mojom::blink::DataPipeGetter { … };
}
FakeBlob::FakeBlob(const String& uuid, const String& body, State* state)
: … { … }
void FakeBlob::Clone(mojo::PendingReceiver<mojom::blink::Blob> receiver) { … }
void FakeBlob::AsDataPipeGetter(
mojo::PendingReceiver<network::mojom::blink::DataPipeGetter> receiver) { … }
void FakeBlob::ReadRange(uint64_t offset,
uint64_t length,
mojo::ScopedDataPipeProducerHandle,
mojo::PendingRemote<mojom::blink::BlobReaderClient>) { … }
void FakeBlob::ReadAll(
mojo::ScopedDataPipeProducerHandle handle,
mojo::PendingRemote<mojom::blink::BlobReaderClient> client) { … }
void FakeBlob::Load(
mojo::PendingReceiver<network::mojom::blink::URLLoader>,
const String& method,
const net::HttpRequestHeaders&,
mojo::PendingRemote<network::mojom::blink::URLLoaderClient>) { … }
void FakeBlob::ReadSideData(ReadSideDataCallback callback) { … }
void FakeBlob::CaptureSnapshot(CaptureSnapshotCallback callback) { … }
void FakeBlob::GetInternalUUID(GetInternalUUIDCallback callback) { … }
}