Home
last modified time | relevance | path

Searched refs:test_iov (Results 1 – 1 of 1) sorted by relevance

/external/chromium_org/net/quic/
Diovector_test.cc89 const struct iovec test_iov[] = { in TEST() local
94 iov.AppendIovec(test_iov, ARRAYSIZE_UNSAFE(test_iov)); in TEST()
95 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_iov); ++i) { in TEST()
96 EXPECT_EQ(test_iov[i].iov_base, iov.iovec()[i].iov_base); in TEST()
97 EXPECT_EQ(test_iov[i].iov_len, iov.iovec()[i].iov_len); in TEST()
103 EXPECT_EQ(5u, iov.AppendIovecAtMostBytes(test_iov, ARRAYSIZE_UNSAFE(test_iov), in TEST()
106 iov.Append(static_cast<char*>(test_iov[1].iov_base) + 2, 1); in TEST()
108 EXPECT_EQ(6u, iov.AppendIovecAtMostBytes(&test_iov[2], 1, 6)); in TEST()
109 ASSERT_LE(ARRAYSIZE_UNSAFE(test_iov), static_cast<size_t>(iov.Size())); in TEST()
110 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_iov); ++i) { in TEST()
[all …]