1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-08-08 09:42:06 +03:00

Add new stream bytes sent per stream

Reviewed By: hanidamlaj

Differential Revision: D43851342

fbshipit-source-id: 204a5d821c69928a4e9de44f461c4eb8181ef277
This commit is contained in:
Crystal Jin
2023-03-08 15:39:11 -08:00
committed by Facebook GitHub Bot
parent 58393be7e4
commit 3c43db2b15
3 changed files with 13 additions and 0 deletions

View File

@@ -540,6 +540,9 @@ TEST_F(QuicTransportFunctionsTest, TestUpdateConnectionPacketRetrans) {
// total = 48
EXPECT_EQ(conn->lossState.totalStreamBytesSent, 48); // sum(len)
EXPECT_EQ(stream1->newStreamBytesSent, 12);
EXPECT_EQ(stream2->newStreamBytesSent, 12);
// totalNewStreamBytesSent: just sum(len)
EXPECT_EQ(conn->lossState.totalNewStreamBytesSent, 24);
EXPECT_EQ(
@@ -730,6 +733,10 @@ TEST_F(
// total = 66
EXPECT_EQ(conn->lossState.totalStreamBytesSent, 66); // sum(len)
EXPECT_EQ(stream1->newStreamBytesSent, 12);
EXPECT_EQ(stream2->newStreamBytesSent, 12);
EXPECT_EQ(stream3->newStreamBytesSent, 13);
// totalNewStreamBytesSent: just sum(len)
EXPECT_EQ(conn->lossState.totalNewStreamBytesSent, 37);
EXPECT_EQ(