| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CRYPTO_TEST_UTILS_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_CRYPTO_TEST_UTILS_H_ |
| 6 #define NET_QUIC_TEST_TOOLS_CRYPTO_TEST_UTILS_H_ | 6 #define NET_QUIC_TEST_TOOLS_CRYPTO_TEST_UTILS_H_ |
| 7 | 7 |
| 8 #include <stdarg.h> | 8 #include <stdarg.h> |
| 9 | 9 |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // Runs pending callbacks from this source. If there is no pending | 51 // Runs pending callbacks from this source. If there is no pending |
| 52 // callback, does nothing. | 52 // callback, does nothing. |
| 53 virtual void RunPendingCallbacks() = 0; | 53 virtual void RunPendingCallbacks() = 0; |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 // FakeClientOptions bundles together a number of options for configuring | 56 // FakeClientOptions bundles together a number of options for configuring |
| 57 // HandshakeWithFakeClient. | 57 // HandshakeWithFakeClient. |
| 58 struct FakeClientOptions { | 58 struct FakeClientOptions { |
| 59 FakeClientOptions(); | 59 FakeClientOptions(); |
| 60 | 60 |
| 61 // If dont_verify_certs is true then no ProofVerifier is set on the client. | |
| 62 // Thus no certificates will be requested or checked. | |
| 63 bool dont_verify_certs; | |
| 64 | |
| 65 // If channel_id_enabled is true then the client will attempt to send a | 61 // If channel_id_enabled is true then the client will attempt to send a |
| 66 // ChannelID. | 62 // ChannelID. |
| 67 bool channel_id_enabled; | 63 bool channel_id_enabled; |
| 68 | 64 |
| 69 // If channel_id_source_async is true then the client will use an async | 65 // If channel_id_source_async is true then the client will use an async |
| 70 // ChannelIDSource for testing. Ignored if channel_id_enabled is false. | 66 // ChannelIDSource for testing. Ignored if channel_id_enabled is false. |
| 71 bool channel_id_source_async; | 67 bool channel_id_source_async; |
| 72 }; | 68 }; |
| 73 | 69 |
| 74 // returns: the number of client hellos that the client sent. | 70 // returns: the number of client hellos that the client sent. |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 QuicCryptoServerStream* server); | 173 QuicCryptoServerStream* server); |
| 178 | 174 |
| 179 DISALLOW_COPY_AND_ASSIGN(CryptoTestUtils); | 175 DISALLOW_COPY_AND_ASSIGN(CryptoTestUtils); |
| 180 }; | 176 }; |
| 181 | 177 |
| 182 } // namespace test | 178 } // namespace test |
| 183 | 179 |
| 184 } // namespace net | 180 } // namespace net |
| 185 | 181 |
| 186 #endif // NET_QUIC_TEST_TOOLS_CRYPTO_TEST_UTILS_H_ | 182 #endif // NET_QUIC_TEST_TOOLS_CRYPTO_TEST_UTILS_H_ |
| OLD | NEW |