| 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.
|
|
|