Chromium Code Reviews| 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 #include "net/quic/test_tools/mock_crypto_client_stream_factory.h" | |
|
Ryan Hamilton
2013/05/01 23:47:32
I think you can remove this include once you move
ramant (doing other things)
2013/05/02 00:08:05
Done.
| |
| 13 | 14 |
| 14 namespace net { | 15 namespace net { |
| 15 | 16 |
| 16 class MockCryptoClientStream : public QuicCryptoClientStream { | 17 class MockCryptoClientStream : public QuicCryptoClientStream { |
| 17 public: | 18 public: |
| 18 MockCryptoClientStream(const string& server_hostname, | 19 MockCryptoClientStream( |
| 19 const QuicConfig& config, | 20 const string& server_hostname, |
| 20 QuicSession* session, | 21 const QuicConfig& config, |
| 21 QuicCryptoClientConfig* crypto_config); | 22 QuicSession* session, |
| 23 QuicCryptoClientConfig* crypto_config, | |
| 24 MockCryptoClientStreamFactory::HandshakeMode handshake_mode); | |
| 22 virtual ~MockCryptoClientStream(); | 25 virtual ~MockCryptoClientStream(); |
| 23 | 26 |
| 24 // CryptoFramerVisitorInterface implementation. | 27 // CryptoFramerVisitorInterface implementation. |
| 25 virtual void OnHandshakeMessage( | 28 virtual void OnHandshakeMessage( |
| 26 const CryptoHandshakeMessage& message) OVERRIDE; | 29 const CryptoHandshakeMessage& message) OVERRIDE; |
| 27 | 30 |
| 28 // QuicCryptoClientStream implementation. | 31 // QuicCryptoClientStream implementation. |
| 29 virtual bool CryptoConnect() OVERRIDE; | 32 virtual bool CryptoConnect() OVERRIDE; |
| 33 | |
| 34 MockCryptoClientStreamFactory::HandshakeMode handshake_mode_; | |
| 30 }; | 35 }; |
| 31 | 36 |
| 32 } // namespace net | 37 } // namespace net |
| 33 | 38 |
| 34 #endif // NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ | 39 #endif // NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ |
| OLD | NEW |