| Index: net/quic/test_tools/mock_crypto_client_stream.cc
|
| diff --git a/net/quic/test_tools/mock_crypto_client_stream.cc b/net/quic/test_tools/mock_crypto_client_stream.cc
|
| index 290693933fd3202e7658e1167e4b220906d2a64e..c54ccff7a0cfce5d1a189c249748e9982c9f6f2f 100644
|
| --- a/net/quic/test_tools/mock_crypto_client_stream.cc
|
| +++ b/net/quic/test_tools/mock_crypto_client_stream.cc
|
| @@ -5,6 +5,7 @@
|
| #include "net/quic/test_tools/mock_crypto_client_stream.h"
|
|
|
| #include "net/quic/crypto/quic_decrypter.h"
|
| +#include "net/quic/crypto/quic_encrypter.h"
|
| #include "net/quic/quic_client_session_base.h"
|
| #include "net/quic/quic_server_id.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| @@ -40,6 +41,9 @@
|
| handshake_confirmed_ = false;
|
| session()->connection()->SetDecrypter(ENCRYPTION_INITIAL,
|
| QuicDecrypter::Create(kNULL));
|
| + session()->connection()->SetEncrypter(ENCRYPTION_INITIAL,
|
| + QuicEncrypter::Create(kNULL));
|
| + session()->connection()->SetDefaultEncryptionLevel(ENCRYPTION_INITIAL);
|
| session()->OnCryptoHandshakeEvent(
|
| QuicSession::ENCRYPTION_FIRST_ESTABLISHED);
|
| break;
|
| @@ -56,6 +60,10 @@
|
| SetConfigNegotiated();
|
| session()->connection()->SetDecrypter(ENCRYPTION_FORWARD_SECURE,
|
| QuicDecrypter::Create(kNULL));
|
| + session()->connection()->SetEncrypter(ENCRYPTION_FORWARD_SECURE,
|
| + QuicEncrypter::Create(kNULL));
|
| + session()->connection()->SetDefaultEncryptionLevel(
|
| + ENCRYPTION_FORWARD_SECURE);
|
| session()->OnCryptoHandshakeEvent(QuicSession::HANDSHAKE_CONFIRMED);
|
| break;
|
| }
|
|
|