#include "quiche/quic/core/quic_received_packet_manager.h"
#include <algorithm>
#include <cstddef>
#include <ostream>
#include <vector>
#include "quiche/quic/core/congestion_control/rtt_stats.h"
#include "quiche/quic/core/crypto/crypto_protocol.h"
#include "quiche/quic/core/quic_connection_stats.h"
#include "quiche/quic/core/quic_constants.h"
#include "quiche/quic/core/quic_types.h"
#include "quiche/quic/platform/api/quic_expect_bug.h"
#include "quiche/quic/platform/api/quic_flags.h"
#include "quiche/quic/platform/api/quic_test.h"
#include "quiche/quic/test_tools/mock_clock.h"
namespace quic {
namespace test {
class QuicReceivedPacketManagerPeer { … };
namespace {
const bool kInstigateAck = …;
const QuicTime::Delta kMinRttMs = …;
const QuicTime::Delta kDelayedAckTime = …;
class QuicReceivedPacketManagerTest : public QuicTest { … };
TEST_F(QuicReceivedPacketManagerTest, DontWaitForPacketsBefore) { … }
TEST_F(QuicReceivedPacketManagerTest, GetUpdatedAckFrame) { … }
TEST_F(QuicReceivedPacketManagerTest, UpdateReceivedConnectionStats) { … }
TEST_F(QuicReceivedPacketManagerTest, LimitAckRanges) { … }
TEST_F(QuicReceivedPacketManagerTest, TrimAckRangesEarly) { … }
TEST_F(QuicReceivedPacketManagerTest, IgnoreOutOfOrderTimestamps) { … }
TEST_F(QuicReceivedPacketManagerTest, IgnoreOutOfOrderPackets) { … }
TEST_F(QuicReceivedPacketManagerTest, HasMissingPackets) { … }
TEST_F(QuicReceivedPacketManagerTest, OutOfOrderReceiptCausesAckSent) { … }
TEST_F(QuicReceivedPacketManagerTest, OutOfOrderReceiptCausesAckSent1Ack) { … }
TEST_F(QuicReceivedPacketManagerTest, OutOfOrderAckReceiptCausesNoAck) { … }
TEST_F(QuicReceivedPacketManagerTest, AckReceiptCausesAckSend) { … }
TEST_F(QuicReceivedPacketManagerTest, AckSentEveryNthPacket) { … }
TEST_F(QuicReceivedPacketManagerTest, AckDecimationReducesAcks) { … }
TEST_F(QuicReceivedPacketManagerTest, SendDelayedAckDecimation) { … }
TEST_F(QuicReceivedPacketManagerTest, SendDelayedAckDecimationMin1ms) { … }
TEST_F(QuicReceivedPacketManagerTest,
SendDelayedAckDecimationUnlimitedAggregation) { … }
TEST_F(QuicReceivedPacketManagerTest, SendDelayedAckDecimationEighthRtt) { … }
TEST_F(QuicReceivedPacketManagerTest,
UpdateMaxAckDelayAndAckFrequencyFromAckFrequencyFrame) { … }
TEST_F(QuicReceivedPacketManagerTest,
DisableOutOfOrderAckByIgnoreOrderFromAckFrequencyFrame) { … }
TEST_F(QuicReceivedPacketManagerTest,
DisableMissingPaketsAckByIgnoreOrderFromAckFrequencyFrame) { … }
TEST_F(QuicReceivedPacketManagerTest,
AckDecimationDisabledWhenAckFrequencyFrameIsReceived) { … }
TEST_F(QuicReceivedPacketManagerTest, UpdateAckTimeoutOnPacketReceiptTime) { … }
TEST_F(QuicReceivedPacketManagerTest,
UpdateAckTimeoutOnPacketReceiptTimeLongerQueuingTime) { … }
TEST_F(QuicReceivedPacketManagerTest, CountEcnPackets) { … }
}
}
}