#include "services/network/test/test_network_context_with_host_resolver.h"
namespace network {
TestNetworkContextWithHostResolver::TestNetworkContextWithHostResolver(
std::unique_ptr<net::HostResolver> host_resolver)
: … { … }
TestNetworkContextWithHostResolver::~TestNetworkContextWithHostResolver() =
default;
void TestNetworkContextWithHostResolver::ResolveHost(
mojom::HostResolverHostPtr host,
const net::NetworkAnonymizationKey& network_anonymization_key,
mojom::ResolveHostParametersPtr optional_parameters,
mojo::PendingRemote<network::mojom::ResolveHostClient>
pending_response_client) { … }
void TestNetworkContextWithHostResolver::ResolveHostImpl(
mojom::HostResolverHostPtr host,
const net::NetworkAnonymizationKey& network_anonymization_key,
mojom::ResolveHostParametersPtr optional_parameters,
mojo::PendingRemote<network::mojom::ResolveHostClient>
pending_response_client) { … }
void TestNetworkContextWithHostResolver::OnResolveHostComplete(
mojo::Remote<mojom::ResolveHostClient> response_client,
std::unique_ptr<net::HostResolver::ResolveHostRequest> internal_request,
int error) { … }
}