| 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 #include "net/quic/test_tools/mock_crypto_client_stream_factory.h" | 5 #include "net/quic/test_tools/mock_crypto_client_stream_factory.h" |
| 6 | 6 |
| 7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "net/quic/quic_crypto_client_stream.h" | 8 #include "net/quic/quic_crypto_client_stream.h" |
| 9 #include "net/quic/test_tools/mock_crypto_client_stream.h" | |
| 10 | 9 |
| 11 using std::string; | 10 using std::string; |
| 12 | 11 |
| 13 namespace net { | 12 namespace net { |
| 14 | 13 |
| 14 MockCryptoClientStreamFactory::MockCryptoClientStreamFactory() |
| 15 : handshake_mode_(MockCryptoClientStream::CONFIRM_HANDSHAKE) { |
| 16 } |
| 17 |
| 15 QuicCryptoClientStream* | 18 QuicCryptoClientStream* |
| 16 MockCryptoClientStreamFactory::CreateQuicCryptoClientStream( | 19 MockCryptoClientStreamFactory::CreateQuicCryptoClientStream( |
| 17 const string& server_hostname, | 20 const string& server_hostname, |
| 18 const QuicConfig& config, | 21 const QuicConfig& config, |
| 19 QuicSession* session, | 22 QuicSession* session, |
| 20 QuicCryptoClientConfig* crypto_config) { | 23 QuicCryptoClientConfig* crypto_config) { |
| 21 return new MockCryptoClientStream(server_hostname, config, session, | 24 return new MockCryptoClientStream(server_hostname, config, session, |
| 22 crypto_config); | 25 crypto_config, handshake_mode_); |
| 23 } | 26 } |
| 24 | 27 |
| 25 } // namespace net | 28 } // namespace net |
| OLD | NEW |