1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-11-25 15:43:13 +03:00

remove codecresult variant

Summary: remove the variant for codec result and replace it with a custom variant type

Reviewed By: yangchi

Differential Revision: D17247099

fbshipit-source-id: 19e24c14732eb6e8496aee7064f20c48bdf254e0
This commit is contained in:
Subodh Iyengar
2019-09-30 17:00:11 -07:00
committed by Facebook Github Bot
parent 208ea8b425
commit 322eb2ebc4
10 changed files with 345 additions and 206 deletions

View File

@@ -182,13 +182,13 @@ TEST_F(DecodeTest, VersionNegotiationPacketBadPacketTest) {
AckStates ackStates;
auto packetQueue = bufToQueue(std::move(buf));
auto packet = codec->parsePacket(packetQueue, ackStates);
EXPECT_THROW(boost::get<RegularQuicPacket>(packet), boost::bad_get);
EXPECT_EQ(packet.regularPacket(), nullptr);
buf = folly::IOBuf::create(0);
packetQueue = bufToQueue(std::move(buf));
packet = codec->parsePacket(packetQueue, ackStates);
// Packet with empty versions
EXPECT_THROW(boost::get<RegularQuicPacket>(packet), boost::bad_get);
EXPECT_EQ(packet.regularPacket(), nullptr);
}
TEST_F(DecodeTest, ValidAckFrame) {