OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ |
6 #define NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ | 6 #define NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "net/quic/crypto/crypto_handshake.h" | 10 #include "net/quic/crypto/crypto_handshake.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 // not confirm the handshake. | 27 // not confirm the handshake. |
28 ZERO_RTT, | 28 ZERO_RTT, |
29 | 29 |
30 // COLD_START indicates that CryptoConnect will neither establish encryption | 30 // COLD_START indicates that CryptoConnect will neither establish encryption |
31 // nor confirm the handshake | 31 // nor confirm the handshake |
32 COLD_START, | 32 COLD_START, |
33 }; | 33 }; |
34 | 34 |
35 MockCryptoClientStream( | 35 MockCryptoClientStream( |
36 const string& server_hostname, | 36 const string& server_hostname, |
37 const QuicConfig& config, | |
38 QuicSession* session, | 37 QuicSession* session, |
39 QuicCryptoClientConfig* crypto_config, | 38 QuicCryptoClientConfig* crypto_config, |
40 HandshakeMode handshake_mode); | 39 HandshakeMode handshake_mode); |
41 virtual ~MockCryptoClientStream(); | 40 virtual ~MockCryptoClientStream(); |
42 | 41 |
43 // CryptoFramerVisitorInterface implementation. | 42 // CryptoFramerVisitorInterface implementation. |
44 virtual void OnHandshakeMessage( | 43 virtual void OnHandshakeMessage( |
45 const CryptoHandshakeMessage& message) OVERRIDE; | 44 const CryptoHandshakeMessage& message) OVERRIDE; |
46 | 45 |
47 // QuicCryptoClientStream implementation. | 46 // QuicCryptoClientStream implementation. |
48 virtual bool CryptoConnect() OVERRIDE; | 47 virtual bool CryptoConnect() OVERRIDE; |
49 | 48 |
50 HandshakeMode handshake_mode_; | 49 HandshakeMode handshake_mode_; |
51 }; | 50 }; |
52 | 51 |
53 } // namespace net | 52 } // namespace net |
54 | 53 |
55 #endif // NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ | 54 #endif // NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ |
OLD | NEW |