| 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 17 matching lines...) Expand all Loading... |
| 28 // not confirm the handshake. | 28 // not confirm the handshake. |
| 29 ZERO_RTT, | 29 ZERO_RTT, |
| 30 | 30 |
| 31 // COLD_START indicates that CryptoConnect will neither establish encryption | 31 // COLD_START indicates that CryptoConnect will neither establish encryption |
| 32 // nor confirm the handshake | 32 // nor confirm the handshake |
| 33 COLD_START, | 33 COLD_START, |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 MockCryptoClientStream( | 36 MockCryptoClientStream( |
| 37 const string& server_hostname, | 37 const string& server_hostname, |
| 38 uint16 server_port, |
| 38 QuicSession* session, | 39 QuicSession* session, |
| 39 QuicCryptoClientConfig* crypto_config, | 40 QuicCryptoClientConfig* crypto_config, |
| 40 HandshakeMode handshake_mode, | 41 HandshakeMode handshake_mode, |
| 41 const SSLInfo* ssl_info); | 42 const SSLInfo* ssl_info); |
| 42 virtual ~MockCryptoClientStream(); | 43 virtual ~MockCryptoClientStream(); |
| 43 | 44 |
| 44 // CryptoFramerVisitorInterface implementation. | 45 // CryptoFramerVisitorInterface implementation. |
| 45 virtual void OnHandshakeMessage( | 46 virtual void OnHandshakeMessage( |
| 46 const CryptoHandshakeMessage& message) OVERRIDE; | 47 const CryptoHandshakeMessage& message) OVERRIDE; |
| 47 | 48 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 58 | 59 |
| 59 private: | 60 private: |
| 60 void SetConfigNegotiated(); | 61 void SetConfigNegotiated(); |
| 61 | 62 |
| 62 const SSLInfo* ssl_info_; | 63 const SSLInfo* ssl_info_; |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 } // namespace net | 66 } // namespace net |
| 66 | 67 |
| 67 #endif // NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ | 68 #endif // NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ |
| OLD | NEW |