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

Remove useless func argument

Summary: Remove useless func argument

Reviewed By: jbeshay

Differential Revision: D42647239

fbshipit-source-id: d27b26391971ca31f8bf727e3648d1a0dbf124be
This commit is contained in:
Konstantin Tsoy
2023-01-24 14:53:27 -08:00
committed by Facebook GitHub Bot
parent 1d933fdf9d
commit 424ab5c8c1
7 changed files with 49 additions and 101 deletions

View File

@@ -4458,7 +4458,7 @@ TEST_F(QuicTransportTest, PacedWriteNoDataToWrite) {
WriteDataReason::NO_WRITE,
shouldWriteData(transport_->getConnectionState()));
EXPECT_CALL(*socket_, write(_, _)).Times(0);
transport_->pacedWrite(true);
transport_->pacedWrite();
}
TEST_F(QuicTransportTest, PacingWillBurstFirst) {
@@ -4481,7 +4481,7 @@ TEST_F(QuicTransportTest, PacingWillBurstFirst) {
EXPECT_CALL(*socket_, write(_, _)).WillOnce(Return(0));
EXPECT_CALL(*rawPacer, updateAndGetWriteBatchSize(_))
.WillRepeatedly(Return(1));
transport_->pacedWrite(true);
transport_->pacedWrite();
}
TEST_F(QuicTransportTest, AlreadyScheduledPacingNoWrite) {
@@ -4515,7 +4515,7 @@ TEST_F(QuicTransportTest, AlreadyScheduledPacingNoWrite) {
ASSERT_NE(WriteDataReason::NO_WRITE, shouldWriteData(conn));
EXPECT_TRUE(transport_->isPacingScheduled());
EXPECT_CALL(*socket_, write(_, _)).Times(0);
transport_->pacedWrite(true);
transport_->pacedWrite();
}
TEST_F(QuicTransportTest, NoScheduleIfNoNewData) {
@@ -4540,7 +4540,7 @@ TEST_F(QuicTransportTest, NoScheduleIfNoNewData) {
.WillRepeatedly(Return(1));
// This will write out everything. After that because there is no new data,
// FunctionLooper won't schedule a pacing timeout.
transport_->pacedWrite(true);
transport_->pacedWrite();
ASSERT_EQ(WriteDataReason::NO_WRITE, shouldWriteData(conn));
EXPECT_FALSE(transport_->isPacingScheduled());