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

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

Issue 218923002: Merge internal change: 63891842 - QuicServerId changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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_client_session.h" 8 #include "net/quic/quic_client_session.h"
9 #include "net/quic/quic_crypto_client_stream.h" 9 #include "net/quic/quic_crypto_client_stream.h"
10 #include "net/quic/quic_session_key.h" 10 #include "net/quic/quic_server_id.h"
11 11
12 using std::string; 12 using std::string;
13 13
14 namespace net { 14 namespace net {
15 15
16 MockCryptoClientStreamFactory::MockCryptoClientStreamFactory() 16 MockCryptoClientStreamFactory::MockCryptoClientStreamFactory()
17 : handshake_mode_(MockCryptoClientStream::CONFIRM_HANDSHAKE), 17 : handshake_mode_(MockCryptoClientStream::CONFIRM_HANDSHAKE),
18 last_stream_(NULL), 18 last_stream_(NULL),
19 proof_verify_details_(NULL) { 19 proof_verify_details_(NULL) {
20 } 20 }
21 21
22 QuicCryptoClientStream* 22 QuicCryptoClientStream*
23 MockCryptoClientStreamFactory::CreateQuicCryptoClientStream( 23 MockCryptoClientStreamFactory::CreateQuicCryptoClientStream(
24 const QuicSessionKey& server_key, 24 const QuicServerId& server_id,
25 QuicClientSession* session, 25 QuicClientSession* session,
26 QuicCryptoClientConfig* crypto_config) { 26 QuicCryptoClientConfig* crypto_config) {
27 last_stream_ = new MockCryptoClientStream( 27 last_stream_ = new MockCryptoClientStream(
28 server_key, session, NULL, crypto_config, handshake_mode_, 28 server_id, session, NULL, crypto_config, handshake_mode_,
29 proof_verify_details_); 29 proof_verify_details_);
30 return last_stream_; 30 return last_stream_;
31 } 31 }
32 32
33 } // namespace net 33 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698