Lines Matching refs:test_str
233 char const *test_str = "test_read"; in TEST_F() local
237 ASSERT_EQ(strlen(test_str) + 1, send_len); in TEST_F()
239 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
241 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
414 char const *test_str = "test_send"; in TEST_F() local
415 int to_send = strlen(test_str) + 1; in TEST_F()
424 EXPECT_EQ(send(self->fd, test_str, to_send, 0), to_send); in TEST_F()
426 EXPECT_EQ(memcmp(test_str, recv_buf, to_send), 0); in TEST_F()
505 char const *test_str = "test_read"; in TEST_F() local
509 send_len = strlen(test_str) + 1; in TEST_F()
510 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
512 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
517 char const *test_str = "test_read"; in TEST_F() local
521 EXPECT_EQ(send(self->fd, test_str, send_len, MSG_MORE), send_len); in TEST_F()
523 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
526 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
531 char const *test_str = "test_read"; in TEST_F() local
535 EXPECT_EQ(send(self->fd, test_str, send_len, MSG_MORE), send_len); in TEST_F()
541 char const *test_str = "test_read"; in TEST_F() local
545 EXPECT_EQ(send(self->fd, test_str, send_len, MSG_EOR), send_len); in TEST_F()
547 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
554 char const *test_str = "test_sendmsg"; in TEST_F() local
559 vec.iov_base = (char *)test_str; in TEST_F()
566 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
573 char const *test_str = "test_sendmsg"; in TEST_F() local
581 vec[i].iov_base = (char *)test_str; in TEST_F()
595 test_str, SEND_LEN), 0); in TEST_F()
628 char const *test_str = "test_sendmsg_multiple"; in TEST_F() local
640 test_strs[i] = (char *)malloc(strlen(test_str) + 1); in TEST_F()
641 snprintf(test_strs[i], strlen(test_str) + 1, "%s", test_str); in TEST_F()
665 char const *test_str = "abcdefghijklmno"; in TEST_F() local
677 test_strs[i] = (char *)malloc(strlen(test_str) + 1); in TEST_F()
678 snprintf(test_strs[i], strlen(test_str) + 1, "%s", test_str); in TEST_F()
749 char const *test_str = "test_read"; in TEST_F() local
755 EXPECT_EQ(send(self->fd, test_str, send_len2, 0), send_len2); in TEST_F()
757 EXPECT_EQ(memcmp(test_str, buf, send_len2), 0); in TEST_F()
784 char *test_str = "test_read"; in TEST_F() local
794 EXPECT_EQ(tls_send_cmsg(self->fd, 100, test_str, send_len, 0), 10); in TEST_F()
802 EXPECT_EQ(memcmp(test_str, buf, send_len), 0); in TEST_F()
807 char *test_str = "test_read"; in TEST_F() local
817 EXPECT_EQ(tls_send_cmsg(self->fd, 100, test_str, send_len, 0), 10); in TEST_F()
825 EXPECT_EQ(memcmp(test_str, buf, send_len), 0); in TEST_F()
879 char const *test_str = "test_recvmsg_single"; in TEST_F() local
880 int send_len = strlen(test_str) + 1; in TEST_F()
886 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
892 EXPECT_EQ(memcmp(test_str, buf, send_len), 0); in TEST_F()
997 char const *test_str = "test_read_partial"; in TEST_F() local
1000 int send_len = strlen(test_str) + 1; in TEST_F()
1004 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
1027 char const *test_str = "test_read_peek"; in TEST_F() local
1028 int send_len = strlen(test_str) + 1; in TEST_F()
1031 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
1033 EXPECT_EQ(memcmp(test_str, buf, send_len), 0); in TEST_F()
1036 EXPECT_EQ(memcmp(test_str, buf, send_len), 0); in TEST_F()
1041 char const *test_str = "test_read_peek"; in TEST_F() local
1042 int send_len = strlen(test_str) + 1; in TEST_F()
1047 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
1050 EXPECT_EQ(memcmp(test_str, buf, send_len), 0); in TEST_F()
1054 EXPECT_EQ(memcmp(test_str, buf, send_len), 0); in TEST_F()
1059 char const *test_str = "test_read_peek_mult_recs"; in TEST_F() local
1079 len = strlen(test_str) + 1; in TEST_F()
1086 len = strlen(test_str) + 1; in TEST_F()
1087 EXPECT_EQ(memcmp(test_str, buf, len), 0); in TEST_F()
1098 len = strlen(test_str) + 1; in TEST_F()
1102 len = strlen(test_str) + 1; in TEST_F()
1103 EXPECT_EQ(memcmp(test_str, buf, len), 0); in TEST_F()
1108 char const *test_str = "test_read_peek_mult_recs"; in TEST_F() local
1120 len = strlen(test_str) + 1; in TEST_F()
1124 len = strlen(test_str) + 1; in TEST_F()
1125 EXPECT_EQ(memcmp(test_str, buf, len), 0); in TEST_F()
1150 char const *test_str = "test_read"; in TEST_F() local
1170 ASSERT_EQ(strlen(test_str) + 1, send_len); in TEST_F()
1172 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
1174 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
1178 EXPECT_EQ(send(self->cfd, test_str, send_len, 0), send_len); in TEST_F()
1180 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
1185 char const *test_str = "test_poll"; in TEST_F() local
1190 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
1203 char const *test_str = "test_poll_wait"; in TEST_F() local
1204 int send_len = strlen(test_str) + 1; in TEST_F()
1210 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
1461 char *test_str = "test_read"; in TEST_F() local
1469 EXPECT_EQ(tls_send_cmsg(self->fd, record_type, test_str, send_len, 0), in TEST_F()
1477 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
1485 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
1535 char const *test_str = "test_read"; in TEST_F() local
1539 ASSERT_EQ(strlen(test_str) + 1, send_len); in TEST_F()
1541 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
1543 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
1551 char const *test_str = "test_read"; in TEST_F() local
1554 EXPECT_EQ(send(self->fd, test_str, send_len, MSG_MORE), send_len); in TEST_F()
1775 char *test_str = "test_read"; in TEST_F() local
1792 EXPECT_EQ(tls_send_cmsg(self->fd, 100, test_str, send_len, 0), 10); in TEST_F()