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

Replace folly::Optional::hasValue() by has_value()

Differential Revision: D19882830

fbshipit-source-id: 031217f9890351022bc8d171f0ccd7e045dd6972
This commit is contained in:
TJ Yin
2020-02-26 08:37:00 -08:00
committed by Facebook Github Bot
parent 2c04d99cda
commit a396f62335
44 changed files with 143 additions and 140 deletions

View File

@@ -88,7 +88,7 @@ TEST_F(QuicReadCodecTest, VersionNegotiationPacketTest) {
auto packetQueue = bufToQueue(std::move(packet.second));
auto versionNegotiationPacket =
makeUnencryptedCodec()->tryParsingVersionNegotiation(packetQueue);
ASSERT_TRUE(versionNegotiationPacket.hasValue());
ASSERT_TRUE(versionNegotiationPacket.has_value());
EXPECT_EQ(versionNegotiationPacket->destinationConnectionId, destConnId);
EXPECT_EQ(versionNegotiationPacket->sourceConnectionId, srcConnId);
EXPECT_EQ(versionNegotiationPacket->versions, versions);