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

Unified Diff: net/tools/quic/quic_client_session_test.cc

Issue 15937012: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small bug fixes Created 7 years, 7 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
Index: net/tools/quic/quic_client_session_test.cc
diff --git a/net/tools/quic/quic_client_session_test.cc b/net/tools/quic/quic_client_session_test.cc
index a1dbc16dd4cb33d4f45cc271da10db26f2b8457c..24a70d7a76f605dbe90ec7f14b78d21fc308f205 100644
--- a/net/tools/quic/quic_client_session_test.cc
+++ b/net/tools/quic/quic_client_session_test.cc
@@ -77,12 +77,12 @@ TEST_F(QuicClientSessionTest, DISABLED_MaxNumConnections) {
}
TEST_F(QuicClientSessionTest, GoAwayReceived) {
- // Initialize crypto before the client session will create a stream.
- ASSERT_TRUE(session_->CryptoConnect());
- // Simulate the server crypto handshake.
- CryptoHandshakeMessage server_message;
- server_message.set_tag(kSHLO);
- session_->GetCryptoStream()->OnHandshakeMessage(server_message);
+ if (!Aes128Gcm12Encrypter::IsSupported()) {
+ LOG(INFO) << "AES GCM not supported. Test skipped.";
+ return;
+ }
+
+ CompleteCryptoHandshake();
// After receiving a GoAway, I should no longer be able to create outgoing
// streams.

Powered by Google App Engine
This is Rietveld 408576698