Lines Matching refs:total_len
402 int total_len = 0; in TEST_F() local
414 total_len += vec[i].iov_len; in TEST_F()
419 EXPECT_EQ(sendmsg(self->cfd, &msg, 0), total_len); in TEST_F()
420 buf = malloc(total_len); in TEST_F()
421 EXPECT_NE(recv(self->fd, buf, total_len, 0), -1); in TEST_F()
439 int total_len = 0; in TEST_F() local
451 total_len += vec[i].iov_len; in TEST_F()
456 EXPECT_EQ(sendmsg(self->fd, &msg, 0), total_len); in TEST_F()
457 EXPECT_NE(recv(self->cfd, buf, total_len, 0), -1); in TEST_F()
601 unsigned int total_len = TLS_PAYLOAD_MAX_LEN * 2; in TEST_F() local
606 EXPECT_GE(send(self->fd, send_mem, total_len, 0), 0); in TEST_F()
607 memset(recv_mem, 0, total_len); in TEST_F()
611 EXPECT_EQ(memcmp(send_mem, recv_mem, total_len), 0); in TEST_F()
616 unsigned int total_len = 2 * 10; in TEST_F() local
623 memset(recv_mem, 0, total_len); in TEST_F()
624 EXPECT_EQ(recv(self->cfd, recv_mem, total_len, MSG_WAITALL), total_len); in TEST_F()
632 const unsigned int total_len = 15; in TEST_F() local
635 char send_mem[total_len]; in TEST_F()
637 EXPECT_GE(send(self->fd, send_mem, total_len, 0), 0); in TEST_F()
638 memset(recv_mem, 0, total_len); in TEST_F()
642 EXPECT_EQ(memcmp(send_mem, recv_mem, total_len), 0); in TEST_F()