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