Lines Matching refs:recv_mem

493 	char recv_mem[TLS_PAYLOAD_MAX_LEN];  in TEST_F()  local
499 EXPECT_NE(recv(self->cfd, recv_mem, send_len, 0), -1); in TEST_F()
500 EXPECT_EQ(memcmp(buf, recv_mem, send_len), 0); in TEST_F()
899 char recv_mem[TLS_PAYLOAD_MAX_LEN]; in TEST_F() local
906 vec.iov_base = (char *)recv_mem; in TEST_F()
912 EXPECT_EQ(memcmp(send_mem, recv_mem, send_len), 0); in TEST_F()
948 char recv_mem[TLS_PAYLOAD_MAX_LEN * 2]; in TEST_F() local
953 memset(recv_mem, 0, total_len); in TEST_F()
955 EXPECT_NE(recv(self->cfd, recv_mem, send_len, 0), -1); in TEST_F()
956 EXPECT_NE(recv(self->cfd, recv_mem + send_len, send_len, 0), -1); in TEST_F()
957 EXPECT_EQ(memcmp(send_mem, recv_mem, total_len), 0); in TEST_F()
964 char recv_mem[2 * 10]; in TEST_F() local
971 memset(recv_mem, 0, total_len); in TEST_F()
972 EXPECT_EQ(recv(self->cfd, recv_mem, total_len, MSG_WAITALL), total_len); in TEST_F()
974 EXPECT_EQ(memcmp(send_mem, recv_mem, send_len), 0); in TEST_F()
975 EXPECT_EQ(memcmp(send_mem, recv_mem + send_len, send_len), 0); in TEST_F()
982 char recv_mem[recv_len * 2]; in TEST_F() local
988 memset(recv_mem, 0, total_len); in TEST_F()
990 EXPECT_EQ(recv(self->cfd, recv_mem, recv_len, 0), recv_len); in TEST_F()
991 EXPECT_EQ(recv(self->cfd, recv_mem + recv_len, recv_len, 0), 5); in TEST_F()
992 EXPECT_EQ(memcmp(send_mem, recv_mem, total_len), 0); in TEST_F()
1001 char recv_mem[18]; in TEST_F() local
1003 memset(recv_mem, 0, sizeof(recv_mem)); in TEST_F()
1005 EXPECT_EQ(recv(self->cfd, recv_mem, strlen(test_str_first), in TEST_F()
1007 EXPECT_EQ(memcmp(test_str_first, recv_mem, strlen(test_str_first)), 0); in TEST_F()
1008 memset(recv_mem, 0, sizeof(recv_mem)); in TEST_F()
1009 EXPECT_EQ(recv(self->cfd, recv_mem, strlen(test_str_second), in TEST_F()
1011 EXPECT_EQ(memcmp(test_str_second, recv_mem, strlen(test_str_second)), in TEST_F()
1131 char recv_mem[20]; in TEST_F() local
1137 memset(recv_mem, 0, 20); in TEST_F()
1140 EXPECT_EQ(recv(self->cfd, recv_mem, 1, MSG_WAITALL), 1); in TEST_F()
1141 EXPECT_EQ(recv(self->cfd, recv_mem + 1, 6, MSG_WAITALL), 6); in TEST_F()
1142 EXPECT_EQ(recv(self->cfd, recv_mem + 7, 10, 0), 8); in TEST_F()
1144 EXPECT_EQ(memcmp(send_mem, recv_mem, 10), 0); in TEST_F()
1145 EXPECT_EQ(memcmp(send_mem, recv_mem + 10, 5), 0); in TEST_F()
1206 char recv_mem[15]; in TEST_F() local
1214 EXPECT_EQ(recv(self->cfd, recv_mem, send_len, MSG_WAITALL), send_len); in TEST_F()
1221 char recv_mem[15]; in TEST_F() local
1231 EXPECT_EQ(recv(self->cfd, recv_mem, sizeof(recv_mem), MSG_WAITALL), in TEST_F()
1232 sizeof(recv_mem)); in TEST_F()
1239 EXPECT_EQ(recv(self->cfd, recv_mem, sizeof(recv_mem), 0), in TEST_F()
1240 sizeof(send_mem) - sizeof(recv_mem)); in TEST_F()
1624 char recv_mem[12]; in TEST_F() local
1633 iov[0].iov_base = recv_mem; in TEST_F()
1634 iov[0].iov_len = sizeof(recv_mem); in TEST_F()
1641 EXPECT_EQ(recv(self->cfd, recv_mem, 1, 0), 1); in TEST_F()
1642 EXPECT_EQ(recv_mem[0], rec1[0]); in TEST_F()
1645 EXPECT_LE(ret, sizeof(recv_mem)); in TEST_F()
1647 EXPECT_EQ(memcmp(rec1, recv_mem, 9), 0); in TEST_F()
1649 EXPECT_EQ(memcmp(rec2, recv_mem + 9, ret - 9), 0); in TEST_F()