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

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

Issue 1397983007: relnote: remove insecure QUIC support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rch_insecure_quic
Patch Set: Compile fix Created 5 years, 2 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
« 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
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