• Home
  • Raw
  • Download

Lines Matching refs:test_str

87 	char const *test_str = "test_read";  in TEST_F()  local
91 ASSERT_EQ(strlen(test_str) + 1, send_len); in TEST_F()
93 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
95 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
183 char const *test_str = "test_send"; in TEST_F() local
184 int to_send = strlen(test_str) + 1; in TEST_F()
193 EXPECT_EQ(send(self->fd, test_str, to_send, 0), to_send); in TEST_F()
195 EXPECT_EQ(memcmp(test_str, recv_buf, to_send), 0); in TEST_F()
214 char const *test_str = "test_read"; in TEST_F() local
218 send_len = strlen(test_str) + 1; in TEST_F()
219 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
221 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
226 char const *test_str = "test_read"; in TEST_F() local
230 EXPECT_EQ(send(self->fd, test_str, send_len, MSG_MORE), send_len); in TEST_F()
232 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
235 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
240 char const *test_str = "test_read"; in TEST_F() local
244 EXPECT_EQ(send(self->fd, test_str, send_len, MSG_MORE), send_len); in TEST_F()
252 char const *test_str = "test_sendmsg"; in TEST_F() local
257 vec.iov_base = (char *)test_str; in TEST_F()
264 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
271 char const *test_str = "test_sendmsg"; in TEST_F() local
279 vec[i].iov_base = (char *)test_str; in TEST_F()
293 test_str, SEND_LEN), 0); in TEST_F()
325 char const *test_str = "test_sendmsg_multiple"; in TEST_F() local
337 test_strs[i] = (char *)malloc(strlen(test_str) + 1); in TEST_F()
338 snprintf(test_strs[i], strlen(test_str) + 1, "%s", test_str); in TEST_F()
362 char const *test_str = "abcdefghijklmno"; in TEST_F() local
374 test_strs[i] = (char *)malloc(strlen(test_str) + 1); in TEST_F()
375 snprintf(test_strs[i], strlen(test_str) + 1, "%s", test_str); in TEST_F()
430 char const *test_str = "test_read"; in TEST_F() local
436 EXPECT_EQ(send(self->fd, test_str, send_len2, 0), send_len2); in TEST_F()
438 EXPECT_EQ(memcmp(test_str, buf, send_len2), 0); in TEST_F()
463 char const *test_str = "test_recvmsg_single"; in TEST_F() local
464 int send_len = strlen(test_str) + 1; in TEST_F()
470 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
476 EXPECT_EQ(memcmp(test_str, buf, send_len), 0); in TEST_F()
574 char const *test_str = "test_read_partial"; in TEST_F() local
577 int send_len = strlen(test_str) + 1; in TEST_F()
581 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
604 char const *test_str = "test_read_peek"; in TEST_F() local
605 int send_len = strlen(test_str) + 1; in TEST_F()
608 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
610 EXPECT_EQ(memcmp(test_str, buf, send_len), 0); in TEST_F()
613 EXPECT_EQ(memcmp(test_str, buf, send_len), 0); in TEST_F()
618 char const *test_str = "test_read_peek"; in TEST_F() local
619 int send_len = strlen(test_str) + 1; in TEST_F()
624 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
627 EXPECT_EQ(memcmp(test_str, buf, send_len), 0); in TEST_F()
631 EXPECT_EQ(memcmp(test_str, buf, send_len), 0); in TEST_F()
636 char const *test_str = "test_read_peek_mult_recs"; in TEST_F() local
656 len = strlen(test_str) + 1; in TEST_F()
663 len = strlen(test_str) + 1; in TEST_F()
664 EXPECT_EQ(memcmp(test_str, buf, len), 0); in TEST_F()
675 len = strlen(test_str) + 1; in TEST_F()
679 len = strlen(test_str) + 1; in TEST_F()
680 EXPECT_EQ(memcmp(test_str, buf, len), 0); in TEST_F()
685 char const *test_str = "test_read_peek_mult_recs"; in TEST_F() local
697 len = strlen(test_str) + 1; in TEST_F()
701 len = strlen(test_str) + 1; in TEST_F()
702 EXPECT_EQ(memcmp(test_str, buf, len), 0); in TEST_F()
727 char const *test_str = "test_read"; in TEST_F() local
748 ASSERT_EQ(strlen(test_str) + 1, send_len); in TEST_F()
750 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
752 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
756 EXPECT_EQ(send(self->cfd, test_str, send_len, 0), send_len); in TEST_F()
758 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
763 char const *test_str = "test_poll"; in TEST_F() local
768 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
781 char const *test_str = "test_poll_wait"; in TEST_F() local
782 int send_len = strlen(test_str) + 1; in TEST_F()
788 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
1043 char const *test_str = "test_read"; in TEST_F() local
1052 vec.iov_base = (char *)test_str; in TEST_F()
1080 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
1093 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
1098 char const *test_str = "test_read"; in TEST_F() local
1102 ASSERT_EQ(strlen(test_str) + 1, send_len); in TEST_F()
1104 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
1106 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
1114 char const *test_str = "test_read"; in TEST_F() local
1117 EXPECT_EQ(send(self->fd, test_str, send_len, MSG_MORE), send_len); in TEST_F()
1322 char const *test_str = "test_read"; in TEST() local
1326 send_len = strlen(test_str) + 1; in TEST()
1327 EXPECT_EQ(send(fd, test_str, send_len, 0), send_len); in TEST()
1329 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST()