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); |