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

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

Issue 14816006: Land Recent QUIC changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing NET_PRIVATE_EXPORT to QuicWallTime Created 7 years, 7 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/crypto/null_decrypter.cc ('k') | net/quic/crypto/null_encrypter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/null_decrypter_test.cc
diff --git a/net/quic/crypto/null_decrypter_test.cc b/net/quic/crypto/null_decrypter_test.cc
index 7854b04aaf97fd810fcbd0b871560e253418666a..e9b9647d202fc0cd6ec5ca9fd40ba9ca14cfea12 100644
--- a/net/quic/crypto/null_decrypter_test.cc
+++ b/net/quic/crypto/null_decrypter_test.cc
@@ -22,11 +22,9 @@ TEST(NullDecrypterTest, Decrypt) {
'b', 'y', 'e', '!',
};
NullDecrypter decrypter;
- scoped_ptr<QuicData> decrypted(
- decrypter.DecryptPacket(
- 0, "hello world!",
- StringPiece(reinterpret_cast<const char*>(expected),
- arraysize(expected))));
+ scoped_ptr<QuicData> decrypted(decrypter.DecryptPacket(
+ 0, "hello world!", StringPiece(reinterpret_cast<const char*>(expected),
+ arraysize(expected))));
ASSERT_TRUE(decrypted.get());
EXPECT_EQ("goodbye!", decrypted->AsStringPiece());
}
@@ -43,11 +41,9 @@ TEST(NullDecrypterTest, BadHash) {
'b', 'y', 'e', '!',
};
NullDecrypter decrypter;
- scoped_ptr<QuicData> decrypted(
- decrypter.DecryptPacket(
- 0, "hello world!",
- StringPiece(reinterpret_cast<const char*>(expected),
- arraysize(expected))));
+ scoped_ptr<QuicData> decrypted(decrypter.DecryptPacket(
+ 0, "hello world!", StringPiece(reinterpret_cast<const char*>(expected),
+ arraysize(expected))));
ASSERT_FALSE(decrypted.get());
}
@@ -60,11 +56,9 @@ TEST(NullDecrypterTest, ShortInput) {
0x88, 0x79, 0xca,
};
NullDecrypter decrypter;
- scoped_ptr<QuicData> decrypted(
- decrypter.DecryptPacket(
- 0, "hello world!",
- StringPiece(reinterpret_cast<const char*>(expected),
- arraysize(expected))));
+ scoped_ptr<QuicData> decrypted(decrypter.DecryptPacket(
+ 0, "hello world!", StringPiece(reinterpret_cast<const char*>(expected),
+ arraysize(expected))));
ASSERT_FALSE(decrypted.get());
}
« no previous file with comments | « net/quic/crypto/null_decrypter.cc ('k') | net/quic/crypto/null_encrypter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698