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

Change Implementation of WritableBytesLimit

Summary: - updating usage of WritableBytesLimit

Reviewed By: mjoras

Differential Revision: D33079816

fbshipit-source-id: 1854f40a7b00526afb2167764aeddf55edb1771f
This commit is contained in:
Hani Damlaj
2022-04-04 16:18:52 -07:00
committed by Facebook GitHub Bot
parent 9fee9edcc9
commit c8bf098e5d
14 changed files with 300 additions and 46 deletions

View File

@@ -2970,6 +2970,8 @@ TEST_F(QuicTransportFunctionsTest, WriteProbingNewData) {
auto currentPacketSeqNum = conn->ackStates.appDataAckState.nextPacketNum;
auto mockCongestionController =
std::make_unique<NiceMock<MockCongestionController>>();
EXPECT_CALL(*mockCongestionController, getWritableBytes())
.WillRepeatedly(Return(2000));
auto rawCongestionController = mockCongestionController.get();
conn->congestionController = std::move(mockCongestionController);
EventBase evb;
@@ -3059,6 +3061,8 @@ TEST_F(QuicTransportFunctionsTest, WriteProbingCryptoData) {
// Replace real congestionController with MockCongestionController:
auto mockCongestionController =
std::make_unique<NiceMock<MockCongestionController>>();
EXPECT_CALL(*mockCongestionController, getWritableBytes())
.WillRepeatedly(Return(2000));
auto rawCongestionController = mockCongestionController.get();
conn.congestionController = std::move(mockCongestionController);
EventBase evb;