Lines Matching refs:total_len
301 int total_len = 0; in TEST_F() local
313 total_len += vec[i].iov_len; in TEST_F()
318 EXPECT_EQ(sendmsg(self->cfd, &msg, 0), total_len); in TEST_F()
319 buf = malloc(total_len); in TEST_F()
320 EXPECT_NE(recv(self->fd, buf, total_len, 0), -1); in TEST_F()
338 int total_len = 0; in TEST_F() local
350 total_len += vec[i].iov_len; in TEST_F()
355 EXPECT_EQ(sendmsg(self->fd, &msg, 0), total_len); in TEST_F()
356 EXPECT_NE(recv(self->cfd, buf, total_len, 0), -1); in TEST_F()
500 unsigned int total_len = TLS_PAYLOAD_MAX_LEN * 2; in TEST_F() local
505 EXPECT_GE(send(self->fd, send_mem, total_len, 0), 0); in TEST_F()
506 memset(recv_mem, 0, total_len); in TEST_F()
510 EXPECT_EQ(memcmp(send_mem, recv_mem, total_len), 0); in TEST_F()
515 unsigned int total_len = 2 * 10; in TEST_F() local
522 memset(recv_mem, 0, total_len); in TEST_F()
523 EXPECT_EQ(recv(self->cfd, recv_mem, total_len, MSG_WAITALL), total_len); in TEST_F()
531 const unsigned int total_len = 15; in TEST_F() local
534 char send_mem[total_len]; in TEST_F()
536 EXPECT_GE(send(self->fd, send_mem, total_len, 0), 0); in TEST_F()
537 memset(recv_mem, 0, total_len); in TEST_F()
541 EXPECT_EQ(memcmp(send_mem, recv_mem, total_len), 0); in TEST_F()