#include "services/network/test/test_url_loader_client.h"
#include "base/functional/bind.h"
#include "base/memory/ref_counted.h"
#include "base/run_loop.h"
#include "services/network/public/mojom/early_hints.mojom.h"
#include "services/network/public/mojom/url_response_head.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace network {
TestURLLoaderClient::TestURLLoaderClient() = default;
TestURLLoaderClient::~TestURLLoaderClient() = default;
void TestURLLoaderClient::OnReceiveEarlyHints(
network::mojom::EarlyHintsPtr early_hints) { … }
void TestURLLoaderClient::OnReceiveResponse(
mojom::URLResponseHeadPtr response_head,
mojo::ScopedDataPipeConsumerHandle body,
std::optional<mojo_base::BigBuffer> cached_metadata) { … }
void TestURLLoaderClient::OnReceiveRedirect(
const net::RedirectInfo& redirect_info,
mojom::URLResponseHeadPtr response_head) { … }
void TestURLLoaderClient::OnTransferSizeUpdated(int32_t transfer_size_diff) { … }
void TestURLLoaderClient::OnUploadProgress(
int64_t current_position,
int64_t total_size,
OnUploadProgressCallback ack_callback) { … }
void TestURLLoaderClient::OnComplete(const URLLoaderCompletionStatus& status) { … }
void TestURLLoaderClient::ClearHasReceivedRedirect() { … }
mojo::PendingRemote<mojom::URLLoaderClient>
TestURLLoaderClient::CreateRemote() { … }
void TestURLLoaderClient::Unbind() { … }
void TestURLLoaderClient::RunUntilResponseReceived() { … }
void TestURLLoaderClient::RunUntilRedirectReceived() { … }
void TestURLLoaderClient::RunUntilResponseBodyArrived() { … }
void TestURLLoaderClient::RunUntilComplete() { … }
void TestURLLoaderClient::RunUntilDisconnect() { … }
void TestURLLoaderClient::RunUntilTransferSizeUpdated() { … }
void TestURLLoaderClient::OnMojoDisconnect() { … }
}