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

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

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: net/quic/crypto/null_encrypter_test.cc
diff --git a/net/quic/crypto/null_encrypter_test.cc b/net/quic/crypto/null_encrypter_test.cc
index 4f4dae754a71714ac7a7160f180ac8cc66a94cf2..32fdad126c6507e826c14cbe72dff3b541e832dd 100644
--- a/net/quic/crypto/null_encrypter_test.cc
+++ b/net/quic/crypto/null_encrypter_test.cc
@@ -10,27 +10,24 @@ using base::StringPiece;
namespace net {
namespace test {
-class NullEncrypterTest : public ::testing::TestWithParam<bool> {
-};
+class NullEncrypterTest : public ::testing::TestWithParam<bool> {};
TEST_F(NullEncrypterTest, Encrypt) {
- unsigned char expected[] = {
- // fnv hash
- 0xa0, 0x6f, 0x44, 0x8a,
- 0x44, 0xf8, 0x18, 0x3b,
- 0x47, 0x91, 0xb2, 0x13,
- // payload
- 'g', 'o', 'o', 'd',
- 'b', 'y', 'e', '!',
+ unsigned char expected[] = {// fnv hash
+ 0xa0, 0x6f, 0x44, 0x8a, 0x44, 0xf8, 0x18, 0x3b,
+ 0x47, 0x91, 0xb2, 0x13,
+ // payload
+ 'g', 'o', 'o', 'd', 'b', 'y', 'e', '!',
};
NullEncrypter encrypter;
scoped_ptr<QuicData> encrypted(
encrypter.EncryptPacket(0, "hello world!", "goodbye!"));
ASSERT_TRUE(encrypted.get());
- test::CompareCharArraysWithHexError(
- "encrypted data", encrypted->data(), encrypted->length(),
- reinterpret_cast<const char*>(expected),
- arraysize(expected));
+ test::CompareCharArraysWithHexError("encrypted data",
+ encrypted->data(),
+ encrypted->length(),
+ reinterpret_cast<const char*>(expected),
+ arraysize(expected));
}
TEST_F(NullEncrypterTest, GetMaxPlaintextSize) {

Powered by Google App Engine
This is Rietveld 408576698