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

Unified Diff: net/quic/test_tools/crypto_test_utils.h

Issue 2516433002: Minor refactors to enable sending an Expect-CT header more easily. (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/core/quic_crypto_server_stream.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2405442ee9e01057edcf8f2b307508e971b4c2a4..a9ac2d763f39956cc5d2f845895d59cde7c707d2 100644
--- a/net/quic/test_tools/crypto_test_utils.h
+++ b/net/quic/test_tools/crypto_test_utils.h
@@ -144,7 +144,13 @@ class CryptoTestUtils {
// Returns a new |ProofSource| that serves up test certificates.
static std::unique_ptr<ProofSource> ProofSourceForTesting();
- // Returns a |ProofVerifier| that uses the QUIC testing root CA.
+ // Identical to |ProofSourceForTesting|, with the addition of setting
+ // the |emit_expect_ct_header| field on the test certificates
+ // to be the value of |send_expect_ct_header|.
+ static std::unique_ptr<ProofSource> ProofSourceForTesting(
+ bool send_expect_ct_header);
+
+ // Returns a new |ProofVerifier| that uses the QUIC testing root CA.
static std::unique_ptr<ProofVerifier> ProofVerifierForTesting();
// Returns a real ProofVerifier (not a fake proof verifier) for testing.
« no previous file with comments | « net/quic/core/quic_crypto_server_stream.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698