| Index: net/quic/test_tools/mock_crypto_client_stream.h
|
| diff --git a/net/quic/test_tools/mock_crypto_client_stream.h b/net/quic/test_tools/mock_crypto_client_stream.h
|
| index 2d9fdc322104e29c1ce74ad270cbadb77d2ec6f4..f244ca9595869dbb5cef10f1938c2e014213d8f2 100644
|
| --- a/net/quic/test_tools/mock_crypto_client_stream.h
|
| +++ b/net/quic/test_tools/mock_crypto_client_stream.h
|
| @@ -15,10 +15,24 @@ namespace net {
|
|
|
| class MockCryptoClientStream : public QuicCryptoClientStream {
|
| public:
|
| - MockCryptoClientStream(const string& server_hostname,
|
| - const QuicConfig& config,
|
| - QuicSession* session,
|
| - QuicCryptoClientConfig* crypto_config);
|
| + // HandshakeMode enumerates the handshake mode MockCryptoClientStream should
|
| + // mock in CryptoConnect.
|
| + enum HandshakeMode {
|
| + // CONFIRM_HANDSHAKE indicates that CryptoConnect will immediately confirm
|
| + // the handshake and establish encryption.
|
| + CONFIRM_HANDSHAKE,
|
| +
|
| + // ZERO_RTT indicates that CryptoConnect will establish encryption but will
|
| + // not confirm the handshake.
|
| + ZERO_RTT,
|
| + };
|
| +
|
| + MockCryptoClientStream(
|
| + const string& server_hostname,
|
| + const QuicConfig& config,
|
| + QuicSession* session,
|
| + QuicCryptoClientConfig* crypto_config,
|
| + HandshakeMode handshake_mode);
|
| virtual ~MockCryptoClientStream();
|
|
|
| // CryptoFramerVisitorInterface implementation.
|
| @@ -27,6 +41,8 @@ class MockCryptoClientStream : public QuicCryptoClientStream {
|
|
|
| // QuicCryptoClientStream implementation.
|
| virtual bool CryptoConnect() OVERRIDE;
|
| +
|
| + HandshakeMode handshake_mode_;
|
| };
|
|
|
| } // namespace net
|
|
|