Lines Matching refs:total_len
561 int total_len = 0; in TEST_F() local
573 total_len += vec[i].iov_len; in TEST_F()
578 EXPECT_EQ(sendmsg(self->cfd, &msg, 0), total_len); in TEST_F()
579 buf = malloc(total_len); in TEST_F()
580 EXPECT_NE(recv(self->fd, buf, total_len, 0), -1); in TEST_F()
598 int total_len = 0; in TEST_F() local
610 total_len += vec[i].iov_len; in TEST_F()
615 EXPECT_EQ(sendmsg(self->fd, &msg, 0), total_len); in TEST_F()
616 EXPECT_NE(recv(self->cfd, buf, total_len, 0), -1); in TEST_F()
860 unsigned int total_len = TLS_PAYLOAD_MAX_LEN * 2; in TEST_F() local
867 EXPECT_GE(send(self->fd, send_mem, total_len, 0), 0); in TEST_F()
868 memset(recv_mem, 0, total_len); in TEST_F()
872 EXPECT_EQ(memcmp(send_mem, recv_mem, total_len), 0); in TEST_F()
877 unsigned int total_len = 2 * 10; in TEST_F() local
886 memset(recv_mem, 0, total_len); in TEST_F()
887 EXPECT_EQ(recv(self->cfd, recv_mem, total_len, MSG_WAITALL), total_len); in TEST_F()
895 const unsigned int total_len = 15; in TEST_F() local
898 char send_mem[total_len]; in TEST_F()
902 EXPECT_GE(send(self->fd, send_mem, total_len, 0), 0); in TEST_F()
903 memset(recv_mem, 0, total_len); in TEST_F()
907 EXPECT_EQ(memcmp(send_mem, recv_mem, total_len), 0); in TEST_F()