mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-08-05 11:21:09 +03:00
Add number of pings frames sent on conn
Reviewed By: hanidamlaj Differential Revision: D63334030 fbshipit-source-id: c3cf2eb365b254e626e4331699aec09b436f6beb
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d9a995bf56
commit
188e44ac19
@@ -1762,6 +1762,21 @@ TEST_F(QuicTransportFunctionsTest, StreamDetailsNoStreamsInPacket) {
|
||||
EXPECT_THAT(detailsPerStream, IsEmpty());
|
||||
}
|
||||
|
||||
TEST_F(QuicTransportFunctionsTest, TestPingFrameCounter) {
|
||||
auto conn = createConn();
|
||||
auto packet = buildEmptyPacket(*conn, PacketNumberSpace::AppData);
|
||||
packet.packet.frames.push_back(PingFrame());
|
||||
updateConnection(
|
||||
*conn,
|
||||
none,
|
||||
packet.packet,
|
||||
TimePoint(),
|
||||
getEncodedSize(packet),
|
||||
getEncodedBodySize(packet),
|
||||
false /* isDSRPacket */);
|
||||
ASSERT_EQ(1, conn->numPingFramesSent);
|
||||
}
|
||||
|
||||
TEST_F(QuicTransportFunctionsTest, StreamDetailsSingleStream) {
|
||||
uint64_t frameOffset = 0;
|
||||
uint64_t frameLen = 10;
|
||||
|
Reference in New Issue
Block a user