Index: net/quic/test_tools/crypto_test_utils.h |
diff --git a/net/quic/test_tools/crypto_test_utils.h b/net/quic/test_tools/crypto_test_utils.h |
index 62748a384bf9121e2e9f5eae3807c00ba8ad4977..3a4fdd4960ef158b817416d9d1f61d1e2cb39e3f 100644 |
--- a/net/quic/test_tools/crypto_test_utils.h |
+++ b/net/quic/test_tools/crypto_test_utils.h |
@@ -32,13 +32,24 @@ class PacketSavingConnection; |
class CryptoTestUtils { |
public: |
+ // FakeClientOptions bundles together a number of options for configuring |
+ // HandshakeWithFakeClient. |
+ struct FakeClientOptions { |
+ FakeClientOptions(); |
+ |
+ // If dont_verify_certs is true then no ProofVerifier is set on the client. |
+ // Thus no certificates will be requested or checked. |
+ bool dont_verify_certs; |
+ }; |
+ |
// returns: the number of client hellos that the client sent. |
static int HandshakeWithFakeServer(PacketSavingConnection* client_conn, |
QuicCryptoClientStream* client); |
// returns: the number of client hellos that the client sent. |
static int HandshakeWithFakeClient(PacketSavingConnection* server_conn, |
- QuicCryptoServerStream* server); |
+ QuicCryptoServerStream* server, |
+ const FakeClientOptions& options); |
// SetupCryptoServerConfigForTest configures |config| and |crypto_config| |
// with sensible defaults for testing. |