#include "net/base/test_proxy_delegate.h"
#include <optional>
#include <string>
#include <vector>
#include "net/base/net_errors.h"
#include "net/base/proxy_chain.h"
#include "net/base/proxy_server.h"
#include "net/base/proxy_string_util.h"
#include "net/http/http_request_headers.h"
#include "net/http/http_response_headers.h"
#include "net/proxy_resolution/proxy_info.h"
#include "net/proxy_resolution/proxy_resolution_service.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
TestProxyDelegate::TestProxyDelegate() = default;
TestProxyDelegate::~TestProxyDelegate() = default;
void TestProxyDelegate::set_proxy_chain(const ProxyChain& proxy_chain) { … }
ProxyChain TestProxyDelegate::proxy_chain() const { … }
void TestProxyDelegate::MakeOnTunnelHeadersReceivedFail(Error result) { … }
void TestProxyDelegate::VerifyOnTunnelHeadersReceived(
const ProxyChain& proxy_chain,
size_t chain_index,
const std::string& response_header_name,
const std::string& response_header_value,
size_t call_index) const { … }
void TestProxyDelegate::OnResolveProxy(
const GURL& url,
const NetworkAnonymizationKey& network_anonymization_key,
const std::string& method,
const ProxyRetryInfoMap& proxy_retry_info,
ProxyInfo* result) { … }
void TestProxyDelegate::OnSuccessfulRequestAfterFailures(
const ProxyRetryInfoMap& proxy_retry_info) { … }
void TestProxyDelegate::OnFallback(const ProxyChain& bad_chain, int net_error) { … }
std::string TestProxyDelegate::GetExtraHeaderValue(
const ProxyServer& proxy_server) { … }
Error TestProxyDelegate::OnBeforeTunnelRequest(
const ProxyChain& proxy_chain,
size_t chain_index,
HttpRequestHeaders* extra_headers) { … }
Error TestProxyDelegate::OnTunnelHeadersReceived(
const ProxyChain& proxy_chain,
size_t chain_index,
const HttpResponseHeaders& response_headers) { … }
void TestProxyDelegate::SetProxyResolutionService(
ProxyResolutionService* proxy_resolution_service) { … }
}