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

Unified Diff: net/quic/core/crypto/null_decrypter_test.cc

Issue 2679673005: Remove path id from IV in QUIC encrytion algorithms. (Closed)
Patch Set: Created 3 years, 10 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/crypto/null_decrypter.cc ('k') | net/quic/core/crypto/null_encrypter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « net/quic/core/crypto/null_decrypter.cc ('k') | net/quic/core/crypto/null_encrypter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698