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

move cwnd blocked trace from Cubic to QuicTransportFunction

Summary:
So this trace is shared by all CongestionControllers. This also
changes what we log into the trace.

Reviewed By: siyengar

Differential Revision: D15184916

fbshipit-source-id: 6cbeb02ee2d24a6bf8d705ff883f5a57603988e7
This commit is contained in:
Yang Chi
2019-05-02 13:58:41 -07:00
committed by Facebook Github Bot
parent 91f44b1159
commit 374c4e5b82
4 changed files with 12 additions and 23 deletions

View File

@@ -358,11 +358,8 @@ TEST_F(QuicTransportTest, WriteDataWithProbing) {
loopForWrites();
// Pending numProbePackets is cleared:
EXPECT_EQ(0, conn.pendingEvents.numProbePackets);
// getWritableBytes should be called with the same times as write
// getWritableBytes should happen exact one less time than socket write and
// onPacketSent on write path and one more time in the updateWriteLooper.
EXPECT_EQ(socketWriteCounter, getWritableBytesCounter);
EXPECT_EQ(onPacketSentCounter, getWritableBytesCounter);
// both write and onPacketSent will inquire getWritableBytes
EXPECT_EQ(onPacketSentCounter + socketWriteCounter, getWritableBytesCounter);
transport_->close(folly::none);
}