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

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

Issue 2681793002: Landing Recent QUIC changes until 5:30 PM, Feb 3, 2017 UTC-5 (Closed)
Patch Set: sync and rebase 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_encrypter.cc ('k') | net/quic/core/crypto/proof_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/crypto/null_encrypter_test.cc
diff --git a/net/quic/core/crypto/null_encrypter_test.cc b/net/quic/core/crypto/null_encrypter_test.cc
index e0296e4915b42cac59bd8c14a733c1c6219ca110..d875e0e7dc998b0e9f9fc9582709417562e96162 100644
--- a/net/quic/core/crypto/null_encrypter_test.cc
+++ b/net/quic/core/crypto/null_encrypter_test.cc
@@ -22,9 +22,9 @@ TEST_F(NullEncrypterTest, EncryptClient) {
char encrypted[256];
size_t encrypted_len = 0;
NullEncrypter encrypter(Perspective::IS_CLIENT);
- ASSERT_TRUE(encrypter.EncryptPacket(QUIC_VERSION_37, kDefaultPathId, 0,
- "hello world!", "goodbye!", encrypted,
- &encrypted_len, 256));
+ ASSERT_TRUE(encrypter.EncryptPacket(QUIC_VERSION_37, 0, "hello world!",
+ "goodbye!", encrypted, &encrypted_len,
+ 256));
test::CompareCharArraysWithHexError(
"encrypted data", encrypted, encrypted_len,
reinterpret_cast<const char*>(expected), arraysize(expected));
@@ -40,9 +40,9 @@ TEST_F(NullEncrypterTest, EncryptServer) {
char encrypted[256];
size_t encrypted_len = 0;
NullEncrypter encrypter(Perspective::IS_SERVER);
- ASSERT_TRUE(encrypter.EncryptPacket(QUIC_VERSION_37, kDefaultPathId, 0,
- "hello world!", "goodbye!", encrypted,
- &encrypted_len, 256));
+ ASSERT_TRUE(encrypter.EncryptPacket(QUIC_VERSION_37, 0, "hello world!",
+ "goodbye!", encrypted, &encrypted_len,
+ 256));
test::CompareCharArraysWithHexError(
"encrypted data", encrypted, encrypted_len,
reinterpret_cast<const char*>(expected), arraysize(expected));
@@ -58,9 +58,9 @@ TEST_F(NullEncrypterTest, EncryptClientPre37) {
char encrypted[256];
size_t encrypted_len = 0;
NullEncrypter encrypter(Perspective::IS_CLIENT);
- ASSERT_TRUE(encrypter.EncryptPacket(QUIC_VERSION_36, kDefaultPathId, 0,
- "hello world!", "goodbye!", encrypted,
- &encrypted_len, 256));
+ ASSERT_TRUE(encrypter.EncryptPacket(QUIC_VERSION_36, 0, "hello world!",
+ "goodbye!", encrypted, &encrypted_len,
+ 256));
test::CompareCharArraysWithHexError(
"encrypted data", encrypted, encrypted_len,
reinterpret_cast<const char*>(expected), arraysize(expected));
@@ -76,9 +76,9 @@ TEST_F(NullEncrypterTest, EncryptServerPre37) {
char encrypted[256];
size_t encrypted_len = 0;
NullEncrypter encrypter(Perspective::IS_SERVER);
- ASSERT_TRUE(encrypter.EncryptPacket(QUIC_VERSION_36, kDefaultPathId, 0,
- "hello world!", "goodbye!", encrypted,
- &encrypted_len, 256));
+ ASSERT_TRUE(encrypter.EncryptPacket(QUIC_VERSION_36, 0, "hello world!",
+ "goodbye!", encrypted, &encrypted_len,
+ 256));
test::CompareCharArraysWithHexError(
"encrypted data", encrypted, encrypted_len,
reinterpret_cast<const char*>(expected), arraysize(expected));
« no previous file with comments | « net/quic/core/crypto/null_encrypter.cc ('k') | net/quic/core/crypto/proof_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698