mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-10 21:22:20 +03:00
custom variant type for read frames
Summary: Create a custom type for read frame types. This allows us to reduce size of code. We use a macro to generate new variant types whenever we need to. Reviewed By: yangchi Differential Revision: D17266468 fbshipit-source-id: 59a1183dce728e71f0924f39f95a7b78449642b0
This commit is contained in:
committed by
Facebook Github Bot
parent
7eb28023fb
commit
95f509ae54
@@ -111,9 +111,8 @@ TEST_F(QuicReadCodecTest, RetryPacketTest) {
|
||||
auto packetQueue = bufToQueue(std::move(packet));
|
||||
|
||||
AckStates ackStates;
|
||||
auto retryPacket = *makeUnencryptedCodec()
|
||||
->parsePacket(packetQueue, ackStates)
|
||||
.regularPacket();
|
||||
auto result = makeUnencryptedCodec()->parsePacket(packetQueue, ackStates);
|
||||
auto& retryPacket = *result.regularPacket();
|
||||
|
||||
auto headerOut = *retryPacket.header.asLong();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user