| 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 7d1d7ecd8df9481c08e6249fa956369034af3ecb..1147697ba5fff8739751d1cbb565e9658c9779ff 100644
|
| --- a/net/quic/test_tools/crypto_test_utils.h
|
| +++ b/net/quic/test_tools/crypto_test_utils.h
|
| @@ -175,19 +175,21 @@ void FillInDummyReject(CryptoHandshakeMessage* rej, bool reject_is_stateless);
|
| // format). It CHECK fails if there's a parse error.
|
| QuicTag ParseTag(const char* tagstr);
|
|
|
| -// Message constructs a handshake message from a variable number of
|
| -// arguments. |message_tag| is passed to |ParseTag| and used as the tag of
|
| -// the resulting message. The arguments are taken in pairs and nullptr
|
| -// terminated. The first of each pair is the tag of a tag/value and is given
|
| -// as an argument to |ParseTag|. The second is the value of the tag/value
|
| -// pair and is either a hex dump, preceeded by a '#', or a raw value.
|
| +// Message constructs a CHLO message from a provided vector of tag/value pairs.
|
| +// The first of each pair is the tag of a tag/value and is given as an argument
|
| +// to |ParseTag|. The second is the value of the tag/value pair and is either a
|
| +// hex dump, preceeded by a '#', or a raw value. If minimum_size_bytes is
|
| +// provided then the message will be padded to this minimum size.
|
| //
|
| -// Message(
|
| -// "CHLO",
|
| -// "NOCE", "#11223344",
|
| -// "SNI", "www.example.com",
|
| -// nullptr);
|
| -CryptoHandshakeMessage Message(const char* message_tag, ...);
|
| +// CreateCHLO(
|
| +// {{"NOCE", "#11223344"},
|
| +// {"SNI", "www.example.com"}},
|
| +// optional_minimum_size_bytes);
|
| +CryptoHandshakeMessage CreateCHLO(
|
| + std::vector<std::pair<std::string, std::string>> tags_and_values);
|
| +CryptoHandshakeMessage CreateCHLO(
|
| + std::vector<std::pair<std::string, std::string>> tags_and_values,
|
| + int minimum_size_bytes);
|
|
|
| // ChannelIDSourceForTesting returns a ChannelIDSource that generates keys
|
| // deterministically based on the hostname given in the GetChannelIDKey call.
|
|
|