Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: net/quic/core/crypto/crypto_handshake_message_test.cc

Issue 2355493004: Adds CryptoHandshakeMessage::HasStringPiece method. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/core/crypto/crypto_handshake_message.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/crypto/crypto_handshake_message_test.cc
diff --git a/net/quic/core/crypto/crypto_handshake_message_test.cc b/net/quic/core/crypto/crypto_handshake_message_test.cc
index 65b064b14e49630a473aa09be494d1ea9f338e64..7032a23969d67991c5bdbdbcaf09c8e0b7fe758c 100644
--- a/net/quic/core/crypto/crypto_handshake_message_test.cc
+++ b/net/quic/core/crypto/crypto_handshake_message_test.cc
@@ -117,6 +117,13 @@ TEST(CryptoHandshakeMessageTest, ServerDesignatedConnectionId) {
EXPECT_EQ(str, message5.DebugString());
}
+TEST(CryptoHandshakeMessageTest, HasStringPiece) {
+ CryptoHandshakeMessage message;
+ EXPECT_FALSE(message.HasStringPiece(kRCID));
+ message.SetStringPiece(kRCID, "foo");
+ EXPECT_TRUE(message.HasStringPiece(kRCID));
+}
+
} // namespace
} // namespace test
} // namespace net
« no previous file with comments | « net/quic/core/crypto/crypto_handshake_message.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698