Lines Matching refs:test_str

217 	char const *test_str = "test_read";  in TEST_F()  local
221 ASSERT_EQ(strlen(test_str) + 1, send_len); in TEST_F()
223 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
225 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
354 char const *test_str = "test_send"; in TEST_F() local
355 int to_send = strlen(test_str) + 1; in TEST_F()
364 EXPECT_EQ(send(self->fd, test_str, to_send, 0), to_send); in TEST_F()
366 EXPECT_EQ(memcmp(test_str, recv_buf, to_send), 0); in TEST_F()
445 char const *test_str = "test_read"; in TEST_F() local
449 send_len = strlen(test_str) + 1; in TEST_F()
450 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
452 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
457 char const *test_str = "test_read"; in TEST_F() local
461 EXPECT_EQ(send(self->fd, test_str, send_len, MSG_MORE), send_len); in TEST_F()
463 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
466 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
471 char const *test_str = "test_read"; in TEST_F() local
475 EXPECT_EQ(send(self->fd, test_str, send_len, MSG_MORE), send_len); in TEST_F()
483 char const *test_str = "test_sendmsg"; in TEST_F() local
488 vec.iov_base = (char *)test_str; in TEST_F()
495 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
502 char const *test_str = "test_sendmsg"; in TEST_F() local
510 vec[i].iov_base = (char *)test_str; in TEST_F()
524 test_str, SEND_LEN), 0); in TEST_F()
557 char const *test_str = "test_sendmsg_multiple"; in TEST_F() local
569 test_strs[i] = (char *)malloc(strlen(test_str) + 1); in TEST_F()
570 snprintf(test_strs[i], strlen(test_str) + 1, "%s", test_str); in TEST_F()
594 char const *test_str = "abcdefghijklmno"; in TEST_F() local
606 test_strs[i] = (char *)malloc(strlen(test_str) + 1); in TEST_F()
607 snprintf(test_strs[i], strlen(test_str) + 1, "%s", test_str); in TEST_F()
664 char const *test_str = "test_read"; in TEST_F() local
670 EXPECT_EQ(send(self->fd, test_str, send_len2, 0), send_len2); in TEST_F()
672 EXPECT_EQ(memcmp(test_str, buf, send_len2), 0); in TEST_F()
699 char *test_str = "test_read"; in TEST_F() local
709 EXPECT_EQ(tls_send_cmsg(self->fd, 100, test_str, send_len, 0), 10); in TEST_F()
717 EXPECT_EQ(memcmp(test_str, buf, send_len), 0); in TEST_F()
722 char *test_str = "test_read"; in TEST_F() local
732 EXPECT_EQ(tls_send_cmsg(self->fd, 100, test_str, send_len, 0), 10); in TEST_F()
740 EXPECT_EQ(memcmp(test_str, buf, send_len), 0); in TEST_F()
794 char const *test_str = "test_recvmsg_single"; in TEST_F() local
795 int send_len = strlen(test_str) + 1; in TEST_F()
801 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
807 EXPECT_EQ(memcmp(test_str, buf, send_len), 0); in TEST_F()
912 char const *test_str = "test_read_partial"; in TEST_F() local
915 int send_len = strlen(test_str) + 1; in TEST_F()
919 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
942 char const *test_str = "test_read_peek"; in TEST_F() local
943 int send_len = strlen(test_str) + 1; in TEST_F()
946 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
948 EXPECT_EQ(memcmp(test_str, buf, send_len), 0); in TEST_F()
951 EXPECT_EQ(memcmp(test_str, buf, send_len), 0); in TEST_F()
956 char const *test_str = "test_read_peek"; in TEST_F() local
957 int send_len = strlen(test_str) + 1; in TEST_F()
962 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
965 EXPECT_EQ(memcmp(test_str, buf, send_len), 0); in TEST_F()
969 EXPECT_EQ(memcmp(test_str, buf, send_len), 0); in TEST_F()
974 char const *test_str = "test_read_peek_mult_recs"; in TEST_F() local
994 len = strlen(test_str) + 1; in TEST_F()
1001 len = strlen(test_str) + 1; in TEST_F()
1002 EXPECT_EQ(memcmp(test_str, buf, len), 0); in TEST_F()
1013 len = strlen(test_str) + 1; in TEST_F()
1017 len = strlen(test_str) + 1; in TEST_F()
1018 EXPECT_EQ(memcmp(test_str, buf, len), 0); in TEST_F()
1023 char const *test_str = "test_read_peek_mult_recs"; in TEST_F() local
1035 len = strlen(test_str) + 1; in TEST_F()
1039 len = strlen(test_str) + 1; in TEST_F()
1040 EXPECT_EQ(memcmp(test_str, buf, len), 0); in TEST_F()
1065 char const *test_str = "test_read"; in TEST_F() local
1085 ASSERT_EQ(strlen(test_str) + 1, send_len); in TEST_F()
1087 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
1089 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
1093 EXPECT_EQ(send(self->cfd, test_str, send_len, 0), send_len); in TEST_F()
1095 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
1100 char const *test_str = "test_poll"; in TEST_F() local
1105 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
1118 char const *test_str = "test_poll_wait"; in TEST_F() local
1119 int send_len = strlen(test_str) + 1; in TEST_F()
1125 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
1376 char *test_str = "test_read"; in TEST_F() local
1384 EXPECT_EQ(tls_send_cmsg(self->fd, record_type, test_str, send_len, 0), in TEST_F()
1392 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
1400 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
1405 char const *test_str = "test_read"; in TEST_F() local
1409 ASSERT_EQ(strlen(test_str) + 1, send_len); in TEST_F()
1411 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
1413 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
1421 char const *test_str = "test_read"; in TEST_F() local
1424 EXPECT_EQ(send(self->fd, test_str, send_len, MSG_MORE), send_len); in TEST_F()
1577 char *test_str = "test_read"; in TEST_F() local
1594 EXPECT_EQ(tls_send_cmsg(self->fd, 100, test_str, send_len, 0), 10); in TEST_F()