Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1069)

Side by Side Diff: net/quic/test_tools/mock_crypto_client_stream_factory.cc

Issue 15074007: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix for windows Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 9
10 using std::string; 10 using std::string;
11 11
12 namespace net { 12 namespace net {
13 13
14 MockCryptoClientStreamFactory::MockCryptoClientStreamFactory() 14 MockCryptoClientStreamFactory::MockCryptoClientStreamFactory()
15 : handshake_mode_(MockCryptoClientStream::CONFIRM_HANDSHAKE) { 15 : handshake_mode_(MockCryptoClientStream::CONFIRM_HANDSHAKE) {
16 } 16 }
17 17
18 QuicCryptoClientStream* 18 QuicCryptoClientStream*
19 MockCryptoClientStreamFactory::CreateQuicCryptoClientStream( 19 MockCryptoClientStreamFactory::CreateQuicCryptoClientStream(
20 const string& server_hostname, 20 const string& server_hostname,
21 const QuicConfig& config,
22 QuicSession* session, 21 QuicSession* session,
23 QuicCryptoClientConfig* crypto_config) { 22 QuicCryptoClientConfig* crypto_config) {
24 return new MockCryptoClientStream(server_hostname, config, session, 23 return new MockCryptoClientStream(server_hostname, session, crypto_config,
25 crypto_config, handshake_mode_); 24 handshake_mode_);
26 } 25 }
27 26
28 } // namespace net 27 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/mock_crypto_client_stream_factory.h ('k') | net/quic/test_tools/quic_client_session_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698