Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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_STREAM indicates that MockCryptoClientStreamFactory | |
|
xunjieli
2017/03/23 16:18:02
Hmm.. even though this is test code, there is laye
Zhongyi Shi
2017/03/23 17:28:50
I prefer to move this to another CL, since if we m
xunjieli
2017/03/23 17:43:37
SG. Can we add a crbug to track it?
| |
| 40 // will create a QuicCryptoClientStream instead of a | |
| 41 // MockCryptoClientStream. | |
| 42 USE_DEFAULT_CRYPTO_STREAM, | |
| 38 }; | 43 }; |
| 39 | 44 |
| 40 MockCryptoClientStream( | 45 MockCryptoClientStream( |
| 41 const QuicServerId& server_id, | 46 const QuicServerId& server_id, |
| 42 QuicClientSessionBase* session, | 47 QuicClientSessionBase* session, |
| 43 ProofVerifyContext* verify_context, | 48 ProofVerifyContext* verify_context, |
| 44 const QuicConfig& config, | 49 const QuicConfig& config, |
| 45 QuicCryptoClientConfig* crypto_config, | 50 QuicCryptoClientConfig* crypto_config, |
| 46 HandshakeMode handshake_mode, | 51 HandshakeMode handshake_mode, |
| 47 const ProofVerifyDetailsChromium* proof_verify_details_); | 52 const ProofVerifyDetailsChromium* proof_verify_details_); |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 65 const QuicServerId server_id_; | 70 const QuicServerId server_id_; |
| 66 const ProofVerifyDetailsChromium* proof_verify_details_; | 71 const ProofVerifyDetailsChromium* proof_verify_details_; |
| 67 const QuicConfig config_; | 72 const QuicConfig config_; |
| 68 | 73 |
| 69 DISALLOW_COPY_AND_ASSIGN(MockCryptoClientStream); | 74 DISALLOW_COPY_AND_ASSIGN(MockCryptoClientStream); |
| 70 }; | 75 }; |
| 71 | 76 |
| 72 } // namespace net | 77 } // namespace net |
| 73 | 78 |
| 74 #endif // NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ | 79 #endif // NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ |
| OLD | NEW |