Lines Matching refs:MockRead
211 // MockRead below.
214 MockRead reads[] = {
215 MockRead(ASYNC, 5, "HTTP/1.1 200 OK\r\n"),
216 MockRead(ASYNC, 6, "Content-Length: 8\r\n\r\n"),
217 MockRead(ASYNC, 7, "one.html"),
218 MockRead(SYNCHRONOUS, 0, 8), // EOF
326 MockRead truncated_status_reads[] = {
327 MockRead(SYNCHRONOUS, 1, "HTTP/1.1 20"),
328 MockRead(SYNCHRONOUS, 0, 2), // EOF
331 MockRead truncated_after_status_reads[] = {
332 MockRead(SYNCHRONOUS, 1, "HTTP/1.1 200 Ok\r\n"),
333 MockRead(SYNCHRONOUS, 0, 2), // EOF
336 MockRead truncated_in_header_reads[] = {
337 MockRead(SYNCHRONOUS, 1, "HTTP/1.1 200 Ok\r\nHead"),
338 MockRead(SYNCHRONOUS, 0, 2), // EOF
341 MockRead truncated_after_header_reads[] = {
342 MockRead(SYNCHRONOUS, 1, "HTTP/1.1 200 Ok\r\nHeader: foo\r\n"),
343 MockRead(SYNCHRONOUS, 0, 2), // EOF
346 MockRead truncated_after_final_newline_reads[] = {
347 MockRead(SYNCHRONOUS, 1, "HTTP/1.1 200 Ok\r\nHeader: foo\r\n\r"),
348 MockRead(SYNCHRONOUS, 0, 2), // EOF
351 MockRead not_truncated_reads[] = {
352 MockRead(SYNCHRONOUS, 1, "HTTP/1.1 200 Ok\r\nHeader: foo\r\n\r\n"),
353 MockRead(SYNCHRONOUS, 0, 2), // EOF
356 MockRead* reads[] = {
435 MockRead reads[] = {
436 MockRead(SYNCHRONOUS, 1,
513 reads_.push_back(MockRead(SYNCHRONOUS, sequence_number_++, data.data()));
517 reads_.push_back(MockRead(SYNCHRONOUS, 0, sequence_number_++)); // EOF
572 std::vector<MockRead> reads_;
819 MockRead reads[] = {
820 MockRead(SYNCHRONOUS, 5, "HTTP/1.1 200 OK\r\n"),
821 MockRead(SYNCHRONOUS, 6, "Content-Length: 1\r\n\r\n"),
822 MockRead(SYNCHRONOUS, 6, "Connection: Keep-Alive\r\n\r\n"),
823 MockRead(SYNCHRONOUS, 7, "1"),
824 MockRead(SYNCHRONOUS, 0, 8), // EOF