#include "quiche/quic/test_tools/quic_connection_peer.h"
#include <memory>
#include <string>
#include "absl/strings/string_view.h"
#include "quiche/quic/core/congestion_control/send_algorithm_interface.h"
#include "quiche/quic/core/quic_packet_writer.h"
#include "quiche/quic/core/quic_received_packet_manager.h"
#include "quiche/quic/platform/api/quic_flags.h"
#include "quiche/quic/platform/api/quic_socket_address.h"
#include "quiche/quic/test_tools/quic_connection_id_manager_peer.h"
#include "quiche/quic/test_tools/quic_framer_peer.h"
#include "quiche/quic/test_tools/quic_sent_packet_manager_peer.h"
namespace quic {
namespace test {
void QuicConnectionPeer::SetSendAlgorithm(
QuicConnection* connection, SendAlgorithmInterface* send_algorithm) { … }
void QuicConnectionPeer::SetLossAlgorithm(
QuicConnection* connection, LossDetectionInterface* loss_algorithm) { … }
QuicPacketCreator* QuicConnectionPeer::GetPacketCreator(
QuicConnection* connection) { … }
QuicSentPacketManager* QuicConnectionPeer::GetSentPacketManager(
QuicConnection* connection) { … }
QuicTime::Delta QuicConnectionPeer::GetNetworkTimeout(
QuicConnection* connection) { … }
QuicTime::Delta QuicConnectionPeer::GetHandshakeTimeout(
QuicConnection* connection) { … }
void QuicConnectionPeer::SetPerspective(QuicConnection* connection,
Perspective perspective) { … }
void QuicConnectionPeer::SetSelfAddress(QuicConnection* connection,
const QuicSocketAddress& self_address) { … }
void QuicConnectionPeer::SetPeerAddress(QuicConnection* connection,
const QuicSocketAddress& peer_address) { … }
void QuicConnectionPeer::SetDirectPeerAddress(
QuicConnection* connection, const QuicSocketAddress& direct_peer_address) { … }
void QuicConnectionPeer::SetEffectivePeerAddress(
QuicConnection* connection,
const QuicSocketAddress& effective_peer_address) { … }
void QuicConnectionPeer::SwapCrypters(QuicConnection* connection,
QuicFramer* framer) { … }
void QuicConnectionPeer::SetCurrentPacket(QuicConnection* connection,
absl::string_view current_packet) { … }
QuicConnectionHelperInterface* QuicConnectionPeer::GetHelper(
QuicConnection* connection) { … }
QuicAlarmFactory* QuicConnectionPeer::GetAlarmFactory(
QuicConnection* connection) { … }
QuicFramer* QuicConnectionPeer::GetFramer(QuicConnection* connection) { … }
QuicAlarm& QuicConnectionPeer::GetAckAlarm(QuicConnection* connection) { … }
QuicAlarm& QuicConnectionPeer::GetPingAlarm(QuicConnection* connection) { … }
QuicAlarm& QuicConnectionPeer::GetRetransmissionAlarm(
QuicConnection* connection) { … }
QuicAlarm& QuicConnectionPeer::GetSendAlarm(QuicConnection* connection) { … }
QuicAlarm& QuicConnectionPeer::GetMtuDiscoveryAlarm(
QuicConnection* connection) { … }
QuicAlarm& QuicConnectionPeer::GetProcessUndecryptablePacketsAlarm(
QuicConnection* connection) { … }
QuicAlarm& QuicConnectionPeer::GetDiscardPreviousOneRttKeysAlarm(
QuicConnection* connection) { … }
QuicAlarm& QuicConnectionPeer::GetDiscardZeroRttDecryptionKeysAlarm(
QuicConnection* connection) { … }
QuicAlarm* QuicConnectionPeer::GetRetirePeerIssuedConnectionIdAlarm(
QuicConnection* connection) { … }
QuicAlarm* QuicConnectionPeer::GetRetireSelfIssuedConnectionIdAlarm(
QuicConnection* connection) { … }
QuicPacketWriter* QuicConnectionPeer::GetWriter(QuicConnection* connection) { … }
void QuicConnectionPeer::SetWriter(QuicConnection* connection,
QuicPacketWriter* writer, bool owns_writer) { … }
void QuicConnectionPeer::TearDownLocalConnectionState(
QuicConnection* connection) { … }
QuicEncryptedPacket* QuicConnectionPeer::GetConnectionClosePacket(
QuicConnection* connection) { … }
QuicPacketHeader* QuicConnectionPeer::GetLastHeader(
QuicConnection* connection) { … }
QuicConnectionStats* QuicConnectionPeer::GetStats(QuicConnection* connection) { … }
QuicPacketCount QuicConnectionPeer::GetPacketsBetweenMtuProbes(
QuicConnection* connection) { … }
void QuicConnectionPeer::ReInitializeMtuDiscoverer(
QuicConnection* connection, QuicPacketCount packets_between_probes_base,
QuicPacketNumber next_probe_at) { … }
void QuicConnectionPeer::SetAckDecimationDelay(QuicConnection* connection,
float ack_decimation_delay) { … }
bool QuicConnectionPeer::HasRetransmittableFrames(QuicConnection* connection,
uint64_t packet_number) { … }
void QuicConnectionPeer::SetMaxTrackedPackets(
QuicConnection* connection, QuicPacketCount max_tracked_packets) { … }
void QuicConnectionPeer::SetNegotiatedVersion(QuicConnection* connection) { … }
void QuicConnectionPeer::SetMaxConsecutiveNumPacketsWithNoRetransmittableFrames(
QuicConnection* connection, size_t new_value) { … }
bool QuicConnectionPeer::SupportsReleaseTime(QuicConnection* connection) { … }
QuicConnection::PacketContent QuicConnectionPeer::GetCurrentPacketContent(
QuicConnection* connection) { … }
void QuicConnectionPeer::AddBytesReceived(QuicConnection* connection,
size_t length) { … }
void QuicConnectionPeer::SetAddressValidated(QuicConnection* connection) { … }
void QuicConnectionPeer::SendConnectionClosePacket(
QuicConnection* connection, QuicIetfTransportErrorCodes ietf_error,
QuicErrorCode error, const std::string& details) { … }
size_t QuicConnectionPeer::GetNumEncryptionLevels(QuicConnection* connection) { … }
QuicNetworkBlackholeDetector& QuicConnectionPeer::GetBlackholeDetector(
QuicConnection* connection) { … }
QuicAlarm& QuicConnectionPeer::GetBlackholeDetectorAlarm(
QuicConnection* connection) { … }
QuicTime QuicConnectionPeer::GetPathDegradingDeadline(
QuicConnection* connection) { … }
QuicTime QuicConnectionPeer::GetBlackholeDetectionDeadline(
QuicConnection* connection) { … }
QuicTime QuicConnectionPeer::GetPathMtuReductionDetectionDeadline(
QuicConnection* connection) { … }
QuicTime QuicConnectionPeer::GetIdleNetworkDeadline(
QuicConnection* connection) { … }
QuicAlarm& QuicConnectionPeer::GetIdleNetworkDetectorAlarm(
QuicConnection* connection) { … }
QuicIdleNetworkDetector& QuicConnectionPeer::GetIdleNetworkDetector(
QuicConnection* connection) { … }
QuicAlarm& QuicConnectionPeer::GetMultiPortProbingAlarm(
QuicConnection* connection) { … }
void QuicConnectionPeer::SetServerConnectionId(
QuicConnection* connection, const QuicConnectionId& server_connection_id) { … }
size_t QuicConnectionPeer::NumUndecryptablePackets(QuicConnection* connection) { … }
void QuicConnectionPeer::SetConnectionClose(QuicConnection* connection) { … }
void QuicConnectionPeer::SendPing(QuicConnection* connection) { … }
void QuicConnectionPeer::SetLastPacketDestinationAddress(
QuicConnection* connection, const QuicSocketAddress& address) { … }
QuicPathValidator* QuicConnectionPeer::path_validator(
QuicConnection* connection) { … }
QuicByteCount QuicConnectionPeer::BytesReceivedOnDefaultPath(
QuicConnection* connection) { … }
QuicByteCount QuicConnectionPeer::BytesSentOnAlternativePath(
QuicConnection* connection) { … }
QuicByteCount QuicConnectionPeer::BytesReceivedOnAlternativePath(
QuicConnection* connection) { … }
QuicConnectionId QuicConnectionPeer::GetClientConnectionIdOnAlternativePath(
const QuicConnection* connection) { … }
QuicConnectionId QuicConnectionPeer::GetServerConnectionIdOnAlternativePath(
const QuicConnection* connection) { … }
bool QuicConnectionPeer::IsAlternativePathValidated(
QuicConnection* connection) { … }
bool QuicConnectionPeer::IsAlternativePath(
QuicConnection* connection, const QuicSocketAddress& self_address,
const QuicSocketAddress& peer_address) { … }
QuicByteCount QuicConnectionPeer::BytesReceivedBeforeAddressValidation(
QuicConnection* connection) { … }
void QuicConnectionPeer::ResetPeerIssuedConnectionIdManager(
QuicConnection* connection) { … }
QuicConnection::PathState* QuicConnectionPeer::GetDefaultPath(
QuicConnection* connection) { … }
bool QuicConnectionPeer::IsDefaultPath(QuicConnection* connection,
const QuicSocketAddress& self_address,
const QuicSocketAddress& peer_address) { … }
QuicConnection::PathState* QuicConnectionPeer::GetAlternativePath(
QuicConnection* connection) { … }
void QuicConnectionPeer::RetirePeerIssuedConnectionIdsNoLongerOnPath(
QuicConnection* connection) { … }
bool QuicConnectionPeer::HasUnusedPeerIssuedConnectionId(
const QuicConnection* connection) { … }
bool QuicConnectionPeer::HasSelfIssuedConnectionIdToConsume(
const QuicConnection* connection) { … }
QuicSelfIssuedConnectionIdManager*
QuicConnectionPeer::GetSelfIssuedConnectionIdManager(
QuicConnection* connection) { … }
std::unique_ptr<QuicSelfIssuedConnectionIdManager>
QuicConnectionPeer::MakeSelfIssuedConnectionIdManager(
QuicConnection* connection) { … }
void QuicConnectionPeer::SetLastDecryptedLevel(QuicConnection* connection,
EncryptionLevel level) { … }
QuicCoalescedPacket& QuicConnectionPeer::GetCoalescedPacket(
QuicConnection* connection) { … }
void QuicConnectionPeer::FlushCoalescedPacket(QuicConnection* connection) { … }
void QuicConnectionPeer::SetInProbeTimeOut(QuicConnection* connection,
bool value) { … }
QuicSocketAddress QuicConnectionPeer::GetReceivedServerPreferredAddress(
QuicConnection* connection) { … }
bool QuicConnectionPeer::TestLastReceivedPacketInfoDefaults() { … }
void QuicConnectionPeer::DisableEcnCodepointValidation(
QuicConnection* connection) { … }
void QuicConnectionPeer::OnForwardProgressMade(QuicConnection* connection) { … }
}
}