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

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

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 #include "net/quic/crypto/quic_decrypter.h" 7 #include "net/quic/crypto/quic_decrypter.h"
8 #include "net/quic/quic_client_session_base.h" 8 #include "net/quic/quic_client_session_base.h"
9 #include "net/quic/quic_server_id.h" 9 #include "net/quic/quic_server_id.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace net { 12 namespace net {
13 13
14 MockCryptoClientStream::MockCryptoClientStream( 14 MockCryptoClientStream::MockCryptoClientStream(
15 const QuicServerId& server_id, 15 const QuicServerId& server_id,
16 QuicClientSessionBase* session, 16 QuicClientSessionBase* session,
17 ProofVerifyContext* verify_context, 17 ProofVerifyContext* verify_context,
18 QuicCryptoClientConfig* crypto_config, 18 QuicCryptoClientConfig* crypto_config,
19 HandshakeMode handshake_mode, 19 HandshakeMode handshake_mode,
20 const ProofVerifyDetails* proof_verify_details) 20 const ProofVerifyDetails* proof_verify_details)
21 : QuicCryptoClientStream(server_id, session, verify_context, 21 : QuicCryptoClientStream(server_id, session, verify_context, crypto_config),
22 crypto_config),
23 handshake_mode_(handshake_mode), 22 handshake_mode_(handshake_mode),
24 proof_verify_details_(proof_verify_details) { 23 proof_verify_details_(proof_verify_details) {
25 } 24 }
26 25
27 MockCryptoClientStream::~MockCryptoClientStream() { 26 MockCryptoClientStream::~MockCryptoClientStream() {
28 } 27 }
29 28
30 void MockCryptoClientStream::OnHandshakeMessage( 29 void MockCryptoClientStream::OnHandshakeMessage(
31 const CryptoHandshakeMessage& message) { 30 const CryptoHandshakeMessage& message) {
32 CloseConnection(QUIC_CRYPTO_MESSAGE_AFTER_HANDSHAKE_COMPLETE); 31 CloseConnection(QUIC_CRYPTO_MESSAGE_AFTER_HANDSHAKE_COMPLETE);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 session()->config()->ProcessPeerHello(msg, CLIENT, &error_details); 96 session()->config()->ProcessPeerHello(msg, CLIENT, &error_details);
98 ASSERT_EQ(QUIC_NO_ERROR, error); 97 ASSERT_EQ(QUIC_NO_ERROR, error);
99 ASSERT_TRUE(session()->config()->negotiated()); 98 ASSERT_TRUE(session()->config()->negotiated());
100 } 99 }
101 100
102 QuicClientSessionBase* MockCryptoClientStream::client_session() { 101 QuicClientSessionBase* MockCryptoClientStream::client_session() {
103 return reinterpret_cast<QuicClientSessionBase*>(session()); 102 return reinterpret_cast<QuicClientSessionBase*>(session());
104 } 103 }
105 104
106 } // namespace net 105 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698