#include "services/network/test/test_shared_url_loader_factory.h"
#include "base/notreached.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_context_builder.h"
#include "net/url_request/url_request_test_util.h"
#include "services/network/network_context.h"
#include "services/network/public/cpp/cross_thread_pending_shared_url_loader_factory.h"
#include "services/network/public/mojom/network_context.mojom-forward.h"
namespace network {
TestSharedURLLoaderFactory::TestSharedURLLoaderFactory(
NetworkService* network_service,
bool is_trusted) { … }
TestSharedURLLoaderFactory::~TestSharedURLLoaderFactory() { … }
void TestSharedURLLoaderFactory::CreateLoaderAndStart(
mojo::PendingReceiver<mojom::URLLoader> loader,
int32_t request_id,
uint32_t options,
const ResourceRequest& request,
mojo::PendingRemote<mojom::URLLoaderClient> client,
const net::MutableNetworkTrafficAnnotationTag& traffic_annotation) { … }
void TestSharedURLLoaderFactory::Clone(
mojo::PendingReceiver<mojom::URLLoaderFactory> receiver) { … }
mojom::NetworkContext* TestSharedURLLoaderFactory::network_context() { … }
std::unique_ptr<PendingSharedURLLoaderFactory>
TestSharedURLLoaderFactory::Clone() { … }
}