Lines Matching refs:total_len
460 int total_len = 0; in TEST_F() local
472 total_len += vec[i].iov_len; in TEST_F()
477 EXPECT_EQ(sendmsg(self->cfd, &msg, 0), total_len); in TEST_F()
478 buf = malloc(total_len); in TEST_F()
479 EXPECT_NE(recv(self->fd, buf, total_len, 0), -1); in TEST_F()
497 int total_len = 0; in TEST_F() local
509 total_len += vec[i].iov_len; in TEST_F()
514 EXPECT_EQ(sendmsg(self->fd, &msg, 0), total_len); in TEST_F()
515 EXPECT_NE(recv(self->cfd, buf, total_len, 0), -1); in TEST_F()
663 unsigned int total_len = TLS_PAYLOAD_MAX_LEN * 2; in TEST_F() local
670 EXPECT_GE(send(self->fd, send_mem, total_len, 0), 0); in TEST_F()
671 memset(recv_mem, 0, total_len); in TEST_F()
675 EXPECT_EQ(memcmp(send_mem, recv_mem, total_len), 0); in TEST_F()
680 unsigned int total_len = 2 * 10; in TEST_F() local
687 memset(recv_mem, 0, total_len); in TEST_F()
688 EXPECT_EQ(recv(self->cfd, recv_mem, total_len, MSG_WAITALL), total_len); in TEST_F()
696 const unsigned int total_len = 15; in TEST_F() local
699 char send_mem[total_len]; in TEST_F()
701 EXPECT_GE(send(self->fd, send_mem, total_len, 0), 0); in TEST_F()
702 memset(recv_mem, 0, total_len); in TEST_F()
706 EXPECT_EQ(memcmp(send_mem, recv_mem, total_len), 0); in TEST_F()