1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-11-09 10:00:57 +03:00

Add vantage point to qlog.

Summary: Landing an outstanding diff

Reviewed By: yangchi

Differential Revision: D19261395

fbshipit-source-id: 437461222ff04f5c3271567d3bb064bceaf80029
This commit is contained in:
Mirko Andjic
2020-01-07 11:17:41 -08:00
committed by Facebook Github Bot
parent c610a8c512
commit 3f419b2eb2
24 changed files with 141 additions and 138 deletions

View File

@@ -537,7 +537,7 @@ TEST_F(QuicLossFunctionsTest, TestReorderingThreshold) {
TEST_F(QuicLossFunctionsTest, TestHandleAckForLoss) {
auto conn = createConn();
auto qLogger = std::make_shared<FileQLogger>(VantagePoint::SERVER);
auto qLogger = std::make_shared<FileQLogger>(VantagePoint::Server);
conn->qLogger = qLogger;
conn->lossState.ptoCount = 100;
conn->lossState.reorderingThreshold = 10;
@@ -581,7 +581,7 @@ TEST_F(QuicLossFunctionsTest, TestHandleAckForLoss) {
TEST_F(QuicLossFunctionsTest, TestHandleAckedPacket) {
auto conn = createConn();
auto qLogger = std::make_shared<FileQLogger>(VantagePoint::SERVER);
auto qLogger = std::make_shared<FileQLogger>(VantagePoint::Server);
conn->qLogger = qLogger;
conn->lossState.ptoCount = 10;
conn->lossState.handshakeAlarmCount = 5;
@@ -857,7 +857,7 @@ TEST_F(
QuicLossFunctionsTest,
WhenHandshakeOutstandingAlarmMarksAllHandshakeAsLoss) {
auto conn = createConn();
auto qLogger = std::make_shared<FileQLogger>(VantagePoint::SERVER);
auto qLogger = std::make_shared<FileQLogger>(VantagePoint::Server);
conn->qLogger = qLogger;
auto mockCongestionController = std::make_unique<MockCongestionController>();
auto rawCongestionController = mockCongestionController.get();
@@ -910,7 +910,7 @@ TEST_F(
TEST_F(QuicLossFunctionsTest, HandshakeAlarmWithOneRttCipher) {
auto conn = createClientConn();
auto qLogger = std::make_shared<FileQLogger>(VantagePoint::CLIENT);
auto qLogger = std::make_shared<FileQLogger>(VantagePoint::Client);
conn->qLogger = qLogger;
conn->oneRttWriteCipher = createNoOpAead();
conn->lossState.currentAlarmMethod = LossState::AlarmMethod::Handshake;
@@ -1202,7 +1202,7 @@ TEST_F(QuicLossFunctionsTest, TestMarkPacketLossProcessedPacket) {
TEST_F(QuicLossFunctionsTest, TestTotalPTOCount) {
auto conn = createConn();
auto qLogger = std::make_shared<FileQLogger>(VantagePoint::SERVER);
auto qLogger = std::make_shared<FileQLogger>(VantagePoint::Server);
conn->qLogger = qLogger;
conn->lossState.totalPTOCount = 100;
EXPECT_CALL(*transportInfoCb_, onPTO());
@@ -1222,7 +1222,7 @@ TEST_F(QuicLossFunctionsTest, TestTotalPTOCount) {
TEST_F(QuicLossFunctionsTest, TestExceedsMaxPTOThrows) {
auto conn = createConn();
auto qLogger = std::make_shared<FileQLogger>(VantagePoint::SERVER);
auto qLogger = std::make_shared<FileQLogger>(VantagePoint::Server);
conn->qLogger = qLogger;
conn->transportSettings.maxNumPTOs = 3;
EXPECT_CALL(*transportInfoCb_, onPTO()).Times(3);