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:
committed by
Facebook Github Bot
parent
c610a8c512
commit
3f419b2eb2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user