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

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

Issue 2236973002: Landing Recent QUIC changes until 4AM, Aug 7, 2016 UTC-4 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: flip quic_sequencer_buffer_retire_block_in_time to true Created 4 years, 4 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
« no previous file with comments | « net/quic/core/reliable_quic_stream_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 22c6d5faca3391e4ce181359641134ee16fa9292..5c64abd1b2f7604ae3059fbcb803f355a110352a 100644
--- a/net/quic/test_tools/crypto_test_utils.h
+++ b/net/quic/test_tools/crypto_test_utils.h
@@ -205,6 +205,12 @@ class CryptoTestUtils {
PacketSavingConnection* dest_conn,
Perspective dest_perspective);
+ // Return an inchoate CHLO with some basic tag value std:pairs.
+ static CryptoHandshakeMessage GenerateDefaultInchoateCHLO(
+ const QuicClock* clock,
+ QuicVersion version,
+ QuicCryptoServerConfig* crypto_config);
+
// Takes a inchoate CHLO, returns a full CHLO in |out| which can pass
// |crypto_config|'s validation.
static void GenerateFullCHLO(const CryptoHandshakeMessage& inchoate_chlo,
@@ -221,6 +227,14 @@ class CryptoTestUtils {
static void CompareClientAndServerKeys(QuicCryptoClientStream* client,
QuicCryptoServerStream* server);
+ // Return a CHLO nonce in hexadecimal.
+ static std::string GenerateClientNonceHex(
+ const QuicClock* clock,
+ QuicCryptoServerConfig* crypto_config);
+
+ // Return a CHLO PUBS in hexadecimal.
+ static std::string GenerateClientPublicValuesHex();
+
DISALLOW_COPY_AND_ASSIGN(CryptoTestUtils);
};
« no previous file with comments | « net/quic/core/reliable_quic_stream_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