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" |
11 #include "net/quic/quic_crypto_client_stream.h" | 11 #include "net/quic/quic_crypto_client_stream.h" |
12 #include "net/quic/quic_session.h" | 12 #include "net/quic/quic_session.h" |
13 | 13 |
14 namespace net { | 14 namespace net { |
15 | 15 |
16 class MockCryptoClientStream : public QuicCryptoClientStream { | 16 class MockCryptoClientStream : public QuicCryptoClientStream { |
17 public: | 17 public: |
18 MockCryptoClientStream(QuicSession* session, | 18 MockCryptoClientStream(const string& server_hostname, |
19 const std::string& server_hostname); | 19 const QuicConfig& config, |
| 20 QuicSession* session, |
| 21 QuicCryptoClientConfig* crypto_config); |
20 virtual ~MockCryptoClientStream(); | 22 virtual ~MockCryptoClientStream(); |
21 | 23 |
22 // CryptoFramerVisitorInterface implementation. | 24 // CryptoFramerVisitorInterface implementation. |
23 virtual void OnHandshakeMessage( | 25 virtual void OnHandshakeMessage( |
24 const CryptoHandshakeMessage& message) OVERRIDE; | 26 const CryptoHandshakeMessage& message) OVERRIDE; |
25 | 27 |
26 // QuicCryptoClientStream implementation. | 28 // QuicCryptoClientStream implementation. |
27 virtual bool CryptoConnect() OVERRIDE; | 29 virtual bool CryptoConnect() OVERRIDE; |
28 }; | 30 }; |
29 | 31 |
30 } // namespace net | 32 } // namespace net |
31 | 33 |
32 #endif // NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ | 34 #endif // NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ |
OLD | NEW |