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:
committed by
Facebook GitHub Bot
parent
9fee9edcc9
commit
c8bf098e5d
@@ -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;
|
||||
|
Reference in New Issue
Block a user