Lines Matching defs:send_buf
663 char send_buf[8192];
665 for (size_t i = 0; i < sizeof(send_buf); ++i)
666 send_buf[i] = static_cast<char>(i % 256);
667 char recv_buf[sizeof(send_buf)];
698 // Test sending the send_buf in several chunks as an iov to exercise the
702 static_assert(sizeof(send_buf) % base::ArraySize(iov) == 0,
704 constexpr size_t kChunkSize = sizeof(send_buf) / base::ArraySize(iov);
706 iov[i].iov_base = send_buf + i * kChunkSize;
712 ASSERT_EQ(send_sock.SendMsgAll(&hdr), sizeof(send_buf));
717 ASSERT_EQ(memcmp(send_buf, recv_buf, sizeof(send_buf)), 0);