mirror of
https://github.com/facebookincubator/mvfst.git
synced 2026-10-23 17:08:55 +03:00
fbcode/quic/loss/test
Reviewed By: jbeshay Differential Revision: D99422481 fbshipit-source-id: fb3b57cbbb401e14f74fa7b660d622ae86e03263
This commit is contained in:
committed by
meta-codesync[bot]
parent
22120f1bdf
commit
8aff46c7c7
@@ -235,7 +235,7 @@ PacketNum QuicLossFunctionsTest::sendPacket(
|
||||
conn.ackStates.appDataAckState.nextPacketNum);
|
||||
break;
|
||||
}
|
||||
PacketNumberSpace packetNumberSpace;
|
||||
PacketNumberSpace packetNumberSpace{};
|
||||
auto shortHeader = header->asShort();
|
||||
if (shortHeader) {
|
||||
packetNumberSpace = shortHeader->getPacketNumberSpace();
|
||||
@@ -1549,7 +1549,7 @@ TEST_F(QuicLossFunctionsTest, NoSkipLossVisitor) {
|
||||
return {};
|
||||
};
|
||||
// Send 5 packets, so when we ack the last one, we mark the first one loss
|
||||
PacketNum lastSent;
|
||||
PacketNum lastSent = 0;
|
||||
for (size_t i = 0; i < 5; i++) {
|
||||
lastSent =
|
||||
sendPacket(*conn, Clock::now(), std::nullopt, PacketType::OneRtt);
|
||||
@@ -1584,7 +1584,7 @@ TEST_F(QuicLossFunctionsTest, SkipLossVisitor) {
|
||||
return {};
|
||||
};
|
||||
// Send 5 packets, so when we ack the last one, we mark the first one loss
|
||||
PacketNum lastSent;
|
||||
PacketNum lastSent = 0;
|
||||
for (size_t i = 0; i < 5; i++) {
|
||||
lastSent = conn->ackStates.appDataAckState.nextPacketNum;
|
||||
ClonedPacketIdentifier clonedPacketIdentifier(
|
||||
@@ -1623,8 +1623,8 @@ TEST_F(QuicLossFunctionsTest, NoDoubleProcess) {
|
||||
};
|
||||
// Send 6 packets, so when we ack the last one, we mark the first two loss
|
||||
EXPECT_EQ(1, conn->ackStates.appDataAckState.nextPacketNum);
|
||||
PacketNum lastSent;
|
||||
lastSent = sendPacket(*conn, Clock::now(), std::nullopt, PacketType::OneRtt);
|
||||
PacketNum lastSent =
|
||||
sendPacket(*conn, Clock::now(), std::nullopt, PacketType::OneRtt);
|
||||
EXPECT_EQ(1, conn->outstandings.packetCount[PacketNumberSpace::AppData]);
|
||||
ClonedPacketIdentifier clonedPacketIdentifier(
|
||||
PacketNumberSpace::AppData, lastSent);
|
||||
|
||||
Reference in New Issue
Block a user