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

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

Issue 1411063004: Remove insecure QUIC support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enough! Created 5 years, 1 month 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
« no previous file with comments | « net/quic/quic_stream_factory_test.cc ('k') | net/quic/test_tools/crypto_test_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/quic/quic_stream_factory_test.cc ('k') | net/quic/test_tools/crypto_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698