| Index: net/quic/iovector_test.cc
|
| diff --git a/net/quic/iovector_test.cc b/net/quic/iovector_test.cc
|
| index b25f29cced80444e218d055a6e14cdffb933b546..83422591ad8e9d735c92b127139bc7815f53a4c5 100644
|
| --- a/net/quic/iovector_test.cc
|
| +++ b/net/quic/iovector_test.cc
|
| @@ -16,10 +16,8 @@ namespace test {
|
| namespace {
|
|
|
| const char* const test_data[] = {
|
| - "test string 1, a medium size one.",
|
| - "test string2",
|
| - "test string 3, a looooooooooooong loooooooooooooooong string"
|
| -};
|
| + "test string 1, a medium size one.", "test string2",
|
| + "test string 3, a looooooooooooong loooooooooooooooong string"};
|
|
|
| TEST(IOVectorTest, CopyConstructor) {
|
| IOVector iov1;
|
| @@ -86,11 +84,9 @@ TEST(IOVectorTest, Append) {
|
|
|
| TEST(IOVectorTest, AppendIovec) {
|
| IOVector iov;
|
| - const struct iovec test_iov[] = {
|
| - {const_cast<char*>("foo"), 3},
|
| - {const_cast<char*>("bar"), 3},
|
| - {const_cast<char*>("buzzzz"), 6}
|
| - };
|
| + const struct iovec test_iov[] = {{const_cast<char*>("foo"), 3},
|
| + {const_cast<char*>("bar"), 3},
|
| + {const_cast<char*>("buzzzz"), 6}};
|
| iov.AppendIovec(test_iov, ARRAYSIZE_UNSAFE(test_iov));
|
| for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_iov); ++i) {
|
| EXPECT_EQ(test_iov[i].iov_base, iov.iovec()[i].iov_base);
|
| @@ -100,8 +96,8 @@ TEST(IOVectorTest, AppendIovec) {
|
| // Test AppendIovecAtMostBytes.
|
| iov.Clear();
|
| // Stop in the middle of a block.
|
| - EXPECT_EQ(5u, iov.AppendIovecAtMostBytes(test_iov, ARRAYSIZE_UNSAFE(test_iov),
|
| - 5));
|
| + EXPECT_EQ(
|
| + 5u, iov.AppendIovecAtMostBytes(test_iov, ARRAYSIZE_UNSAFE(test_iov), 5));
|
| EXPECT_EQ(5u, iov.TotalBufferSize());
|
| iov.Append(static_cast<char*>(test_iov[1].iov_base) + 2, 1);
|
| // Make sure the boundary case, where max_bytes == size of block also works.
|
|
|