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

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

Issue 2516033003: Landing Recent QUIC changes until Mon Nov 14 04:43:50 2016 +0000 (Closed)
Patch Set: Remove unused UpdatePacketGapSentHistogram() function. 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/quartc/quartc_session_test.cc ('k') | net/quic/test_tools/crypto_test_utils.cc » ('j') | 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 d1468dc38a61c261cd5da93f67f74fdf38856d39..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.
@@ -212,15 +218,16 @@ class CryptoTestUtils {
// Takes a inchoate CHLO, returns a full CHLO in |out| which can pass
// |crypto_config|'s validation.
- static void GenerateFullCHLO(const CryptoHandshakeMessage& inchoate_chlo,
- QuicCryptoServerConfig* crypto_config,
- IPAddress server_ip,
- IPEndPoint client_addr,
- QuicVersion version,
- const QuicClock* clock,
- scoped_refptr<QuicCryptoProof> proof,
- QuicCompressedCertsCache* compressed_certs_cache,
- CryptoHandshakeMessage* out);
+ static void GenerateFullCHLO(
+ const CryptoHandshakeMessage& inchoate_chlo,
+ QuicCryptoServerConfig* crypto_config,
+ IPAddress server_ip,
+ IPEndPoint client_addr,
+ QuicVersion version,
+ const QuicClock* clock,
+ scoped_refptr<QuicSignedServerConfig> signed_config,
+ QuicCompressedCertsCache* compressed_certs_cache,
+ CryptoHandshakeMessage* out);
private:
static void CompareClientAndServerKeys(QuicCryptoClientStream* client,
« no previous file with comments | « net/quic/quartc/quartc_session_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