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

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

Issue 2181773002: Add a test helper method to construct a full CHLO. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@127821412
Patch Set: Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
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 176d6878feddf9812c28fdc28662eb21fbc5325e..905f90302d84d4c77c8c89cd5523f1e732acb732 100644
--- a/net/quic/test_tools/crypto_test_utils.h
+++ b/net/quic/test_tools/crypto_test_utils.h
@@ -205,6 +205,18 @@ class CryptoTestUtils {
PacketSavingConnection* dest_conn,
Perspective dest_perspective);
+ // 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,
+ QuicCryptoProof* proof,
+ QuicCompressedCertsCache* compressed_certs_cache,
+ CryptoHandshakeMessage* out);
+
private:
static void CompareClientAndServerKeys(QuicCryptoClientStream* client,
QuicCryptoServerStream* server);

Powered by Google App Engine
This is Rietveld 408576698