| Index: net/quic/core/crypto/null_decrypter_test.cc
|
| diff --git a/net/quic/core/crypto/null_decrypter_test.cc b/net/quic/core/crypto/null_decrypter_test.cc
|
| index 56d20c2ccb69facd44bc1890a97540c3c410c448..c70964ca0034763d9144772b2df089ba58ba3b53 100644
|
| --- a/net/quic/core/crypto/null_decrypter_test.cc
|
| +++ b/net/quic/core/crypto/null_decrypter_test.cc
|
| @@ -24,9 +24,9 @@ TEST_F(NullDecrypterTest, DecryptClient) {
|
| NullDecrypter decrypter(Perspective::IS_SERVER);
|
| char buffer[256];
|
| size_t length = 0;
|
| - ASSERT_TRUE(decrypter.DecryptPacket(QUIC_VERSION_37, kDefaultPathId, 0,
|
| - "hello world!", StringPiece(data, len),
|
| - buffer, &length, 256));
|
| + ASSERT_TRUE(decrypter.DecryptPacket(QUIC_VERSION_37, 0, "hello world!",
|
| + StringPiece(data, len), buffer, &length,
|
| + 256));
|
| EXPECT_LT(0u, length);
|
| EXPECT_EQ("goodbye!", StringPiece(buffer, length));
|
| }
|
| @@ -43,9 +43,9 @@ TEST_F(NullDecrypterTest, DecryptServer) {
|
| NullDecrypter decrypter(Perspective::IS_CLIENT);
|
| char buffer[256];
|
| size_t length = 0;
|
| - ASSERT_TRUE(decrypter.DecryptPacket(QUIC_VERSION_37, kDefaultPathId, 0,
|
| - "hello world!", StringPiece(data, len),
|
| - buffer, &length, 256));
|
| + ASSERT_TRUE(decrypter.DecryptPacket(QUIC_VERSION_37, 0, "hello world!",
|
| + StringPiece(data, len), buffer, &length,
|
| + 256));
|
| EXPECT_LT(0u, length);
|
| EXPECT_EQ("goodbye!", StringPiece(buffer, length));
|
| }
|
| @@ -62,9 +62,9 @@ TEST_F(NullDecrypterTest, DecryptClientPre37) {
|
| NullDecrypter decrypter(Perspective::IS_CLIENT);
|
| char buffer[256];
|
| size_t length = 0;
|
| - ASSERT_TRUE(decrypter.DecryptPacket(QUIC_VERSION_36, kDefaultPathId, 0,
|
| - "hello world!", StringPiece(data, len),
|
| - buffer, &length, 256));
|
| + ASSERT_TRUE(decrypter.DecryptPacket(QUIC_VERSION_36, 0, "hello world!",
|
| + StringPiece(data, len), buffer, &length,
|
| + 256));
|
| EXPECT_LT(0u, length);
|
| EXPECT_EQ("goodbye!", StringPiece(buffer, length));
|
| }
|
| @@ -81,9 +81,9 @@ TEST_F(NullDecrypterTest, DecryptServerPre37) {
|
| NullDecrypter decrypter(Perspective::IS_SERVER);
|
| char buffer[256];
|
| size_t length = 0;
|
| - ASSERT_TRUE(decrypter.DecryptPacket(QUIC_VERSION_36, kDefaultPathId, 0,
|
| - "hello world!", StringPiece(data, len),
|
| - buffer, &length, 256));
|
| + ASSERT_TRUE(decrypter.DecryptPacket(QUIC_VERSION_36, 0, "hello world!",
|
| + StringPiece(data, len), buffer, &length,
|
| + 256));
|
| EXPECT_LT(0u, length);
|
| EXPECT_EQ("goodbye!", StringPiece(buffer, length));
|
| }
|
| @@ -100,9 +100,9 @@ TEST_F(NullDecrypterTest, BadHash) {
|
| NullDecrypter decrypter(Perspective::IS_CLIENT);
|
| char buffer[256];
|
| size_t length = 0;
|
| - ASSERT_FALSE(decrypter.DecryptPacket(QUIC_VERSION_35, kDefaultPathId, 0,
|
| - "hello world!", StringPiece(data, len),
|
| - buffer, &length, 256));
|
| + ASSERT_FALSE(decrypter.DecryptPacket(QUIC_VERSION_35, 0, "hello world!",
|
| + StringPiece(data, len), buffer, &length,
|
| + 256));
|
| }
|
|
|
| TEST_F(NullDecrypterTest, ShortInput) {
|
| @@ -115,9 +115,9 @@ TEST_F(NullDecrypterTest, ShortInput) {
|
| NullDecrypter decrypter(Perspective::IS_CLIENT);
|
| char buffer[256];
|
| size_t length = 0;
|
| - ASSERT_FALSE(decrypter.DecryptPacket(QUIC_VERSION_35, kDefaultPathId, 0,
|
| - "hello world!", StringPiece(data, len),
|
| - buffer, &length, 256));
|
| + ASSERT_FALSE(decrypter.DecryptPacket(QUIC_VERSION_35, 0, "hello world!",
|
| + StringPiece(data, len), buffer, &length,
|
| + 256));
|
| }
|
|
|
| } // namespace test
|
|
|