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 5ece1dba1790fcd9ac37f654e8c2b26624d8015b..73ff4802d19350d776d313437f3a8b7c4663fdd9 100644 |
--- a/net/quic/test_tools/crypto_test_utils.h |
+++ b/net/quic/test_tools/crypto_test_utils.h |
@@ -14,8 +14,12 @@ |
namespace net { |
+class QuicClock; |
+class QuicConfig; |
class QuicCryptoClientStream; |
+class QuicCryptoServerConfig; |
class QuicCryptoServerStream; |
+class QuicRandom; |
namespace test { |
@@ -29,6 +33,14 @@ class CryptoTestUtils { |
static void HandshakeWithFakeClient(PacketSavingConnection* server_conn, |
QuicCryptoServerStream* server); |
+ // SetupCryptoServerConfigForTest configures |config| and |crypto_config| |
+ // with sensible defaults for testing. |
+ static void SetupCryptoServerConfigForTest( |
+ const QuicClock* clock, |
+ QuicRandom* rand, |
+ QuicConfig* config, |
+ QuicCryptoServerConfig* crypto_config); |
+ |
// Returns the value for the tag |tag| in the tag value map of |message|. |
static std::string GetValueForTag(const CryptoHandshakeMessage& message, |
CryptoTag tag); |