#include "net/quic/quic_session_pool_peer.h"
#include <string>
#include <vector>
#include "base/task/sequenced_task_runner.h"
#include "net/base/network_anonymization_key.h"
#include "net/base/privacy_mode.h"
#include "net/base/proxy_chain.h"
#include "net/base/session_usage.h"
#include "net/cert/x509_certificate.h"
#include "net/cert/x509_util.h"
#include "net/dns/public/secure_dns_policy.h"
#include "net/quic/platform/impl/quic_chromium_clock.h"
#include "net/quic/quic_chromium_client_session.h"
#include "net/quic/quic_http_stream.h"
#include "net/quic/quic_session_alias_key.h"
#include "net/quic/quic_session_key.h"
#include "net/quic/quic_session_pool.h"
#include "net/socket/socket_tag.h"
#include "net/test/cert_test_util.h"
#include "net/test/test_data_directory.h"
#include "net/third_party/quiche/src/quiche/quic/core/crypto/quic_crypto_client_config.h"
#include "net/third_party/quiche/src/quiche/quic/core/quic_server_id.h"
#include "url/scheme_host_port.h"
string;
namespace net::test {
const quic::QuicConfig* QuicSessionPoolPeer::GetConfig(
QuicSessionPool* factory) { … }
std::unique_ptr<QuicCryptoClientConfigHandle>
QuicSessionPoolPeer::GetCryptoConfig(
QuicSessionPool* factory,
const NetworkAnonymizationKey& network_anonymization_key) { … }
bool QuicSessionPoolPeer::HasActiveSession(
QuicSessionPool* factory,
const quic::QuicServerId& server_id,
const NetworkAnonymizationKey& network_anonymization_key,
const ProxyChain& proxy_chain,
SessionUsage session_usage,
bool require_dns_https_alpn) { … }
bool QuicSessionPoolPeer::HasActiveJob(QuicSessionPool* factory,
const quic::QuicServerId& server_id,
bool require_dns_https_alpn) { … }
QuicChromiumClientSession* QuicSessionPoolPeer::GetPendingSession(
QuicSessionPool* factory,
const quic::QuicServerId& server_id,
url::SchemeHostPort destination) { … }
QuicChromiumClientSession* QuicSessionPoolPeer::GetActiveSession(
QuicSessionPool* factory,
const quic::QuicServerId& server_id,
const NetworkAnonymizationKey& network_anonymization_key,
const ProxyChain& proxy_chain,
SessionUsage session_usage,
bool require_dns_https_alpn) { … }
bool QuicSessionPoolPeer::IsLiveSession(QuicSessionPool* factory,
QuicChromiumClientSession* session) { … }
void QuicSessionPoolPeer::SetTaskRunner(
QuicSessionPool* factory,
base::SequencedTaskRunner* task_runner) { … }
void QuicSessionPoolPeer::SetTickClock(QuicSessionPool* factory,
const base::TickClock* tick_clock) { … }
quic::QuicTime::Delta QuicSessionPoolPeer::GetPingTimeout(
QuicSessionPool* factory) { … }
void QuicSessionPoolPeer::SetYieldAfterPackets(QuicSessionPool* factory,
int yield_after_packets) { … }
void QuicSessionPoolPeer::SetYieldAfterDuration(
QuicSessionPool* factory,
quic::QuicTime::Delta yield_after_duration) { … }
bool QuicSessionPoolPeer::CryptoConfigCacheIsEmpty(
QuicSessionPool* factory,
const quic::QuicServerId& quic_server_id,
const NetworkAnonymizationKey& network_anonymization_key) { … }
size_t QuicSessionPoolPeer::GetNumDegradingSessions(QuicSessionPool* factory) { … }
void QuicSessionPoolPeer::SetAlarmFactory(
QuicSessionPool* factory,
std::unique_ptr<quic::QuicAlarmFactory> alarm_factory) { … }
}