Lines Matching refs:MockRead
338 void ConnectStatusHelperWithExpectedStatus(const MockRead& status,
341 void ConnectStatusHelper(const MockRead& status);
532 MockRead reads[] = {
535 MockRead(true, 0, 0) // EOF
582 MockRead reads[] = {
585 MockRead(true, 0, 0) // EOF
634 MockRead reads[] = {
646 MockRead(true, 0, 0), // EOF
723 MockRead reads[] = {
730 MockRead(true, 0, 0), // EOF
810 MockRead reads[] = {
817 MockRead(true, 0, 0), // EOF
931 MockRead reads[] = {
943 MockRead(true, 0, 0), // EOF
1069 MockRead reads[] = {
1083 MockRead(true, 0, 0), // EOF
1212 MockRead reads[] = {
1220 MockRead(true, 0, 0), // EOF
1335 MockRead reads[] = {
1341 MockRead(true, ERR_CONNECTION_RESET, 0), // Abort!
1460 MockRead reads[] = {
1463 MockRead(true, 0, 0) // EOF
1531 MockRead reads[] = {
1534 MockRead(true, 0, 0) // EOF
1559 MockRead reads[] = {
1562 MockRead(true, 0, 0) // EOF
1590 MockRead reads[] = {
1594 MockRead(true, 0, 0) // EOF
1629 MockRead reads[] = {
1632 MockRead(true, 0, 0) // EOF
1673 MockRead reads[] = {
1676 MockRead(true, 0, 0) // EOF
1710 MockRead reads[] = {
1713 MockRead(false, 0, 0) // EOF
1743 MockRead reads[] = {
1745 MockRead(true, 0, 0, 4) // EOF
1774 MockRead reads[] = {
1776 MockRead(true, 0, 0) // EOF
1796 MockRead reads[] = {
1800 MockRead(true, 0, 0) // EOF
1878 MockRead reads[] = {
1888 MockRead(true, 0, 0) // EOF
1947 MockRead reads[] = {
1950 MockRead(true, ERR_IO_PENDING, 0), // Force a pause
1952 MockRead(true, ERR_IO_PENDING, 0), // Force a pause
1953 MockRead(true, 0, 0) // EOF
2043 MockRead reads[] = {
2049 MockRead(true, ERR_IO_PENDING, 0), // Wait for the RST to be written.
2050 MockRead(true, 0, 0) // EOF
2150 MockRead reads[] = {
2156 MockRead(true, 0, 0) // EOF
2207 MockRead reads[] = {
2212 // MockRead will do here.
2213 MockRead(true, 0, 0) // EOF
2247 MockRead reads[] = {
2249 MockRead(true, 0, 0, 3) // EOF
2323 MockRead reads[] = {
2325 MockRead(true, ERR_IO_PENDING, 3), // Force a pause
2326 MockRead(true, reinterpret_cast<const char*>(kGetBodyFrame2),
2328 MockRead(true, ERR_IO_PENDING, 5), // Force a pause
2329 MockRead(true, 0, 0, 6), // EOF
2331 MockRead reads2[] = {
2333 MockRead(true, 0, 0, 3), // EOF
2391 MockRead reads[] = {
2393 MockRead(true, ERR_IO_PENDING, 3), // Force a pause
2395 MockRead(true, 0, 0, 5), // EOF
2476 MockRead reads[] = {
2478 MockRead(true, 0, 0, 3) // EOF
2487 MockRead reads2[] = {
2490 MockRead(true, 0, 0, 4) // EOF
2579 MockRead reads[] = {
2583 MockRead(true, ERR_IO_PENDING, 5), // Force a pause
2584 MockRead(true, 0, 0, 7) // EOF
2613 MockRead reads2[] = {
2616 MockRead(true, 0, 0, 5) // EOF
2693 MockRead reads[] = {
2697 MockRead(true, reinterpret_cast<const char*>(kPushBodyFrame),
2699 MockRead(true, ERR_IO_PENDING, 6), // Force a pause
2746 MockRead reads[] = {
2749 MockRead(true, reinterpret_cast<const char*>(kPushBodyFrame),
2752 MockRead(true, ERR_IO_PENDING, 6), // Force a pause
2796 MockRead reads[] = {
2801 MockRead(true, ERR_IO_PENDING, 6), // Force a pause
2872 MockRead reads[] = {
2877 MockRead(true, reinterpret_cast<const char*>(kPushBodyFrame),
2879 MockRead(true, ERR_IO_PENDING, 8), // Force a pause
2930 MockRead reads[] = {
2933 MockRead(true, reinterpret_cast<const char*>(kPushBodyFrame1),
2935 MockRead(true, reinterpret_cast<const char*>(kPushBodyFrame2),
2937 MockRead(true, reinterpret_cast<const char*>(kPushBodyFrame3),
2939 MockRead(true, reinterpret_cast<const char*>(kPushBodyFrame4),
2942 MockRead(true, ERR_IO_PENDING, 9), // Force a pause
2993 MockRead reads[] = {
2996 MockRead(true, reinterpret_cast<const char*>(kPushBodyFrame1),
2998 MockRead(true, reinterpret_cast<const char*>(kPushBodyFrame2),
3000 MockRead(true, ERR_IO_PENDING, 6), // Force a pause
3001 MockRead(true, reinterpret_cast<const char*>(kPushBodyFrame3),
3003 MockRead(true, reinterpret_cast<const char*>(kPushBodyFrame4),
3006 MockRead(true, ERR_IO_PENDING, 10) // Force a pause.
3051 MockRead reads[] = {
3055 MockRead(true, ERR_IO_PENDING, 5) // Force a pause
3112 MockRead reads[] = {
3116 MockRead(true, ERR_IO_PENDING, 5), // Force a pause
3169 MockRead reads[] = {
3173 MockRead(true, ERR_IO_PENDING, 5) // Force a pause
3258 MockRead reads[] = {
3261 MockRead(true, 0, 0) // EOF
3397 MockRead reads[] = {
3400 MockRead(true, 0, 0) // EOF
3513 MockRead reads[] = {
3516 MockRead(true, 0, 0) // EOF
3552 MockRead reads[] = {
3555 MockRead(true, 0, 0) // EOF
3599 MockRead reads[] = {
3602 MockRead(true, 0, 0) // EOF
3634 MockRead reads[] = {
3637 MockRead(true, 0, 0)
3664 MockRead reads[] = {
3667 MockRead(true, 0, 0) // EOF
3765 MockRead reads[] = {
3767 MockRead(true, ERR_IO_PENDING), // Force a pause
3768 MockRead(true, combined_data_frames, combined_data_frames_len),
3769 MockRead(true, ERR_IO_PENDING), // Force a pause
3771 MockRead(true, 0, 0) // EOF
3859 MockRead reads[] = {
3861 MockRead(true, ERR_IO_PENDING), // Force a pause
3862 MockRead(true, combined_data_frames, combined_data_frames_len),
3863 MockRead(true, 0, 0) // EOF
3956 MockRead reads[] = {
3957 MockRead(true, combined_frames, combined_frames_len),
3958 MockRead(true, 0, 0) // EOF
4042 MockRead reads[] = {
4044 MockRead(true, ERR_IO_PENDING), // Force a wait
4045 MockRead(true, combined_data_frames, combined_data_frames_len),
4046 MockRead(true, 0, 0) // EOF
4122 MockRead reads[] = {
4124 MockRead(true, ERR_IO_PENDING), // Force a wait
4126 MockRead(true, 0, 0) // EOF
4249 MockRead reads[] = {
4253 MockRead(true, 0, 0) // EOF
4363 MockRead reads[] = {
4366 MockRead(true, 0, 0) // EOF
4407 MockRead reads[] = {
4409 MockRead(true, 0, 0), // EOF
4428 MockRead reads[] = {
4430 MockRead(false, 0, 0) // EOF
4487 MockRead reads_SPDYNPN[] = {
4488 MockRead(false, kHTTP200, arraysize(kHTTP200) - 1, 1),
4491 MockRead(true, 0, 0, 5),
4498 MockRead reads_SPDYSSL[] = {
4499 MockRead(false, kHTTP200, arraysize(kHTTP200) - 1, 1),
4502 MockRead(true, 0, 0, 5),
4509 MockRead reads_SPDYNOSSL[] = {
4512 MockRead(true, 0, 0, 3),
4584 MockRead reads[] = {
4587 MockRead(true, ERR_IO_PENDING, 4), // Force a pause
4588 MockRead(true, 0, 5) // EOF
4640 MockRead reads_SPDYNPN[] = {
4641 MockRead(false, kHTTP200, arraysize(kHTTP200) - 1, 1),
4644 MockRead(true, 0, 5) // EOF
4650 MockRead reads_SPDYNOSSL[] = {
4653 MockRead(true, 0, 3) // EOF
4660 MockRead reads_SPDYSSL[] = {
4661 MockRead(false, kHTTP200, arraysize(kHTTP200) - 1, 1),
4664 MockRead(true, 0, 0, 5),
4736 MockRead reads[] = {
4739 MockRead(true, ERR_IO_PENDING),
4740 MockRead(true, ERR_CONNECTION_RESET),
4743 MockRead reads2[] = {
4746 MockRead(true, 0, 0) // EOF
4821 MockRead spdy_reads[] = {
4824 MockRead(true, 0, 0) // EOF
4840 MockRead http_reads[] = {
4841 MockRead("HTTP/1.1 200 OK\r\n\r\n"),
4842 MockRead("hello from http"),
4843 MockRead(false, OK),
4899 MockRead spdy_reads[] = {
4904 MockRead(true, 0, 7),
5002 MockRead reads[] = {
5007 MockRead(true, reinterpret_cast<const char*>(kPushBodyFrame),
5009 MockRead(true, ERR_IO_PENDING, 7), // Force a pause
5086 MockRead reads[] = {
5091 MockRead(true, reinterpret_cast<const char*>(kPushBodyFrame),
5093 MockRead(true, 0, 5), // EOF
5234 MockRead reads[] = {
5240 MockRead(true, reinterpret_cast<const char*>(kPushBodyFrame),
5242 MockRead(true, 0, 6), // EOF
5363 MockRead reads[] = {
5367 MockRead(true, 0, 0) // EOF
5420 MockRead reads[] = {
5425 MockRead(true, 0, 0) // EOF
5478 MockRead reads[] = {
5483 MockRead(true, 0, 0) // EOF
5554 MockRead reads[] = {
5558 MockRead(true, reinterpret_cast<const char*>(kPushBodyFrame),
5560 MockRead(true, ERR_IO_PENDING, 7), // Force a pause