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

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

Issue 2766603004: QUIC: mark QUIC handshake failed if connection is closed after CryptoConnect (Closed)
Patch Set: address rch's comments Created 3 years, 9 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
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 #ifndef NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ 5 #ifndef NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_
6 #define NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ 6 #define NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 17 matching lines...) Expand all
28 // in the field, but is convenient for higher level tests. 28 // in the field, but is convenient for higher level tests.
29 CONFIRM_HANDSHAKE, 29 CONFIRM_HANDSHAKE,
30 30
31 // ZERO_RTT indicates that CryptoConnect will establish encryption but will 31 // ZERO_RTT indicates that CryptoConnect will establish encryption but will
32 // not confirm the handshake. 32 // not confirm the handshake.
33 ZERO_RTT, 33 ZERO_RTT,
34 34
35 // COLD_START indicates that CryptoConnect will neither establish encryption 35 // COLD_START indicates that CryptoConnect will neither establish encryption
36 // nor confirm the handshake 36 // nor confirm the handshake
37 COLD_START, 37 COLD_START,
38
39 // USE_DEFAULT_CRYPTO indicates that MockCryptoClientStreamFactory will
40 // fallback to use normal QuicCryptoClientStream to do CryptoConnect.
Ryan Hamilton 2017/03/22 14:13:01 nit: // USE_DEFAULT_CRYPTO indicates that MockCry
Zhongyi Shi 2017/03/22 18:53:10 Done.
41 USE_DEFAULT_CRYPTO_STREAM,
38 }; 42 };
39 43
40 MockCryptoClientStream( 44 MockCryptoClientStream(
41 const QuicServerId& server_id, 45 const QuicServerId& server_id,
42 QuicClientSessionBase* session, 46 QuicClientSessionBase* session,
43 ProofVerifyContext* verify_context, 47 ProofVerifyContext* verify_context,
44 const QuicConfig& config, 48 const QuicConfig& config,
45 QuicCryptoClientConfig* crypto_config, 49 QuicCryptoClientConfig* crypto_config,
46 HandshakeMode handshake_mode, 50 HandshakeMode handshake_mode,
47 const ProofVerifyDetailsChromium* proof_verify_details_); 51 const ProofVerifyDetailsChromium* proof_verify_details_);
(...skipping 17 matching lines...) Expand all
65 const QuicServerId server_id_; 69 const QuicServerId server_id_;
66 const ProofVerifyDetailsChromium* proof_verify_details_; 70 const ProofVerifyDetailsChromium* proof_verify_details_;
67 const QuicConfig config_; 71 const QuicConfig config_;
68 72
69 DISALLOW_COPY_AND_ASSIGN(MockCryptoClientStream); 73 DISALLOW_COPY_AND_ASSIGN(MockCryptoClientStream);
70 }; 74 };
71 75
72 } // namespace net 76 } // namespace net
73 77
74 #endif // NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ 78 #endif // NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698