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

Side by Side Diff: net/quic/test_tools/mock_crypto_client_stream.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.h" 5 #include "net/quic/test_tools/mock_crypto_client_stream.h"
6 6
7 namespace net { 7 namespace net {
8 8
9 MockCryptoClientStream::MockCryptoClientStream( 9 MockCryptoClientStream::MockCryptoClientStream(
10 const string& server_hostname, 10 const string& server_hostname,
11 const QuicConfig& config,
12 QuicSession* session, 11 QuicSession* session,
13 QuicCryptoClientConfig* crypto_config, 12 QuicCryptoClientConfig* crypto_config,
14 HandshakeMode handshake_mode) 13 HandshakeMode handshake_mode)
15 : QuicCryptoClientStream(server_hostname, config, session, crypto_config), 14 : QuicCryptoClientStream(server_hostname, session, crypto_config),
16 handshake_mode_(handshake_mode) { 15 handshake_mode_(handshake_mode) {
17 } 16 }
18 17
19 MockCryptoClientStream::~MockCryptoClientStream() { 18 MockCryptoClientStream::~MockCryptoClientStream() {
20 } 19 }
21 20
22 void MockCryptoClientStream::OnHandshakeMessage( 21 void MockCryptoClientStream::OnHandshakeMessage(
23 const CryptoHandshakeMessage& message) { 22 const CryptoHandshakeMessage& message) {
24 CloseConnection(QUIC_CRYPTO_MESSAGE_AFTER_HANDSHAKE_COMPLETE); 23 CloseConnection(QUIC_CRYPTO_MESSAGE_AFTER_HANDSHAKE_COMPLETE);
25 } 24 }
(...skipping 18 matching lines...) Expand all
44 case COLD_START: { 43 case COLD_START: {
45 handshake_confirmed_ = false; 44 handshake_confirmed_ = false;
46 encryption_established_ = false; 45 encryption_established_ = false;
47 break; 46 break;
48 } 47 }
49 } 48 }
50 return true; 49 return true;
51 } 50 }
52 51
53 } // namespace net 52 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/mock_crypto_client_stream.h ('k') | net/quic/test_tools/mock_crypto_client_stream_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698