Lines Matching refs:total_len
546 int total_len = 0; in TEST_F() local
558 total_len += vec[i].iov_len; in TEST_F()
563 EXPECT_EQ(sendmsg(self->cfd, &msg, 0), total_len); in TEST_F()
564 buf = malloc(total_len); in TEST_F()
565 EXPECT_NE(recv(self->fd, buf, total_len, 0), -1); in TEST_F()
583 int total_len = 0; in TEST_F() local
595 total_len += vec[i].iov_len; in TEST_F()
600 EXPECT_EQ(sendmsg(self->fd, &msg, 0), total_len); in TEST_F()
601 EXPECT_NE(recv(self->cfd, buf, total_len, 0), -1); in TEST_F()
835 unsigned int total_len = TLS_PAYLOAD_MAX_LEN * 2; in TEST_F() local
842 EXPECT_GE(send(self->fd, send_mem, total_len, 0), 0); in TEST_F()
843 memset(recv_mem, 0, total_len); in TEST_F()
847 EXPECT_EQ(memcmp(send_mem, recv_mem, total_len), 0); in TEST_F()
852 unsigned int total_len = 2 * 10; in TEST_F() local
859 memset(recv_mem, 0, total_len); in TEST_F()
860 EXPECT_EQ(recv(self->cfd, recv_mem, total_len, MSG_WAITALL), total_len); in TEST_F()
868 const unsigned int total_len = 15; in TEST_F() local
871 char send_mem[total_len]; in TEST_F()
873 EXPECT_GE(send(self->fd, send_mem, total_len, 0), 0); in TEST_F()
874 memset(recv_mem, 0, total_len); in TEST_F()
878 EXPECT_EQ(memcmp(send_mem, recv_mem, total_len), 0); in TEST_F()