HomeSort by relevance Sort by last modified time
    Searched refs:SYNCHRONOUS (Results 1 - 25 of 45) sorted by null

1 2

  /external/chromium_org/net/http/
http_pipelined_network_transaction_unittest.cc 101 data->set_connect_data(MockConnect(SYNCHRONOUS, OK));
178 ExpectResponse("two.html", two_transaction, SYNCHRONOUS);
209 ExpectResponse("one.html", *one_transaction.get(), SYNCHRONOUS);
211 ExpectResponse("two.html", two_transaction, SYNCHRONOUS);
213 ExpectResponse("three.html", three_transaction, SYNCHRONOUS);
217 ExpectResponse("four.html", four_transaction, SYNCHRONOUS);
240 MockWrite(SYNCHRONOUS, 0, "GET /test.html HTTP/1.1\r\n"
245 MockRead(SYNCHRONOUS, 1, "HTTP/1.1 200 OK\r\n"),
246 MockRead(SYNCHRONOUS, 2, "Content-Length: 9\r\n\r\n"),
247 MockRead(SYNCHRONOUS, 3, "test.html")
    [all...]
http_pipelined_connection_impl_unittest.cc 107 data_->set_connect_data(MockConnect(SYNCHRONOUS, OK));
212 MockWrite(SYNCHRONOUS, 0, "GET /ok.html HTTP/1.1\r\n\r\n"),
215 MockRead(SYNCHRONOUS, 1, "HTTP/1.1 200 OK\r\n"),
216 MockRead(SYNCHRONOUS, 2, "Content-Length: 7\r\n\r\n"),
217 MockRead(SYNCHRONOUS, 3, "ok.html"),
322 MockWrite(SYNCHRONOUS, 0, "GET /ok.html HTTP/1.1\r\n\r\n"),
323 MockWrite(SYNCHRONOUS, 1, "GET /ko.html HTTP/1.1\r\n\r\n"),
326 MockRead(SYNCHRONOUS, 2,
359 MockWrite(SYNCHRONOUS, 0, "GET /ko.html HTTP/1.1\r\n\r\n"),
360 MockWrite(SYNCHRONOUS, 4, "GET /ok.html HTTP/1.1\r\n\r\n")
    [all...]
http_network_layer_unittest.cc 117 MockRead(SYNCHRONOUS, OK),
166 data_reads2[data_reads2_index++] = MockRead(SYNCHRONOUS, OK);
197 MockRead(SYNCHRONOUS, OK),
213 MockRead(SYNCHRONOUS, OK),
245 MockRead(SYNCHRONOUS, OK),
310 MockRead(SYNCHRONOUS, OK),
422 MockRead(SYNCHRONOUS, OK),
505 MockRead(SYNCHRONOUS, OK),
523 MockRead(SYNCHRONOUS, OK),
578 MockRead(SYNCHRONOUS, OK)
    [all...]
http_stream_parser_unittest.cc 218 MockRead(SYNCHRONOUS, 0, 8), // EOF
227 data.set_connect_data(MockConnect(SYNCHRONOUS, OK));
327 MockRead(SYNCHRONOUS, 1, "HTTP/1.1 20"),
328 MockRead(SYNCHRONOUS, 0, 2), // EOF
332 MockRead(SYNCHRONOUS, 1, "HTTP/1.1 200 Ok\r\n"),
333 MockRead(SYNCHRONOUS, 0, 2), // EOF
337 MockRead(SYNCHRONOUS, 1, "HTTP/1.1 200 Ok\r\nHead"),
338 MockRead(SYNCHRONOUS, 0, 2), // EOF
342 MockRead(SYNCHRONOUS, 1, "HTTP/1.1 200 Ok\r\nHeader: foo\r\n"),
343 MockRead(SYNCHRONOUS, 0, 2), // EO
    [all...]
http_network_transaction_unittest.cc 580 MockRead(SYNCHRONOUS, OK),
593 MockRead(SYNCHRONOUS, OK),
606 MockRead(SYNCHRONOUS, OK),
619 MockRead(SYNCHRONOUS, OK),
632 MockRead(SYNCHRONOUS, OK),
649 MockRead(SYNCHRONOUS, OK),
662 MockRead(SYNCHRONOUS, OK),
678 MockRead(SYNCHRONOUS, OK),
697 MockRead(SYNCHRONOUS, OK),
793 MockRead(SYNCHRONOUS, OK)
    [all...]
  /external/chromium_org/net/socket/
deterministic_socket_data_unittest.cc 72 connect_data_(SYNCHRONOUS, OK),
198 MockRead(SYNCHRONOUS, kMsg1, kLen1, 0), // Sync Read
199 MockRead(SYNCHRONOUS, 0, 1), // EOF
210 MockRead(SYNCHRONOUS, kMsg1, kLen1, 1), // Sync Read
211 MockRead(SYNCHRONOUS, 0, 2), // EOF
215 MockWrite(SYNCHRONOUS, 0, 0)
227 MockRead(SYNCHRONOUS, kMsg1, kLen1, 0), // Sync Read
228 MockRead(SYNCHRONOUS, 0, 1), // EOF
239 MockRead(SYNCHRONOUS, kMsg1, kLen1, 0), // Sync Read
240 MockRead(SYNCHRONOUS, kMsg2, kLen2, 1), // Sync Rea
    [all...]
socks_client_socket_pool_unittest.cc 130 SOCKS5MockData data(SYNCHRONOUS);
131 data.data_provider()->set_connect_data(MockConnect(SYNCHRONOUS, OK));
148 SOCKS5MockData data(SYNCHRONOUS);
149 data.data_provider()->set_connect_data(MockConnect(SYNCHRONOUS, OK));
167 SOCKS5MockData data(SYNCHRONOUS);
168 data.data_provider()->set_connect_data(MockConnect(SYNCHRONOUS, OK));
202 socket_data.set_connect_data(MockConnect(SYNCHRONOUS,
234 MockRead(SYNCHRONOUS, 0),
238 socket_data.set_connect_data(MockConnect(SYNCHRONOUS, OK));
257 socket_data.set_connect_data(MockConnect(SYNCHRONOUS, OK))
    [all...]
buffered_write_stream_socket_unittest.cc 29 data_->set_connect_data(MockConnect(SYNCHRONOUS, 0));
55 MockWrite(SYNCHRONOUS, 0, "abc"),
74 MockWrite(SYNCHRONOUS, 0, "abcdef"),
ssl_client_socket_pool_unittest.cc 235 data.set_connect_data(MockConnect(SYNCHRONOUS, ERR_CONNECTION_FAILED));
276 data.set_connect_data(MockConnect(SYNCHRONOUS, OK));
278 SSLSocketDataProvider ssl(SYNCHRONOUS, OK);
305 data.set_connect_data(MockConnect(SYNCHRONOUS, OK));
307 SSLSocketDataProvider ssl(SYNCHRONOUS, OK);
509 data.set_connect_data(MockConnect(SYNCHRONOUS, ERR_CONNECTION_FAILED));
551 data.set_connect_data(MockConnect(SYNCHRONOUS, OK));
553 SSLSocketDataProvider ssl(SYNCHRONOUS, OK);
576 data.set_connect_data(MockConnect(SYNCHRONOUS, OK));
578 SSLSocketDataProvider ssl(SYNCHRONOUS, OK)
    [all...]
socks_client_socket_unittest.cc 218 MockWrite(SYNCHRONOUS, kSOCKSOkRequest, arraysize(kSOCKSOkRequest)) };
220 MockRead(SYNCHRONOUS, tests[i].fail_reply,
328 MockRead(SYNCHRONOUS, 0) };
389 MockWrite data_writes[] = { MockWrite(SYNCHRONOUS, "", 0) };
390 MockRead data_reads[] = { MockRead(SYNCHRONOUS, "", 0) };
socket_test_util.cc 200 return MockWriteResult(SYNCHRONOUS, data.length());
221 return MockWriteResult(SYNCHRONOUS, ERR_UNEXPECTED);
242 return MockRead(SYNCHRONOUS, ERR_UNEXPECTED);
511 // Synchronous read while stopped is an error
512 if (stopped() && current_read_.mode == SYNCHRONOUS) {
513 LOG(ERROR) << "Unable to perform synchronous IO while stopped";
514 return MockRead(SYNCHRONOUS, ERR_UNEXPECTED);
521 MockRead result = MockRead(SYNCHRONOUS, ERR_IO_PENDING);
522 if (current_read_.mode == SYNCHRONOUS) {
523 LOG(ERROR) << "Unable to perform synchronous read:
    [all...]
socks5_client_socket_unittest.cc 201 MockWrite(SYNCHRONOUS, kSOCKS5GreetRequest, kSOCKS5GreetRequestLength),
202 MockWrite(SYNCHRONOUS, request.data(), request.size())
205 MockRead(SYNCHRONOUS, kSOCKS5GreetResponse, kSOCKS5GreetResponseLength),
206 MockRead(SYNCHRONOUS, kSOCKS5OkResponse, kSOCKS5OkResponseLength)
  /external/chromium_org/chrome/browser/net/
network_stats_unittest.cc 257 TestStart(false, 0, 1, 500, net::SYNCHRONOUS);
265 TestStart(false, 1, 1, 100, net::SYNCHRONOUS);
273 TestStart(true, 1, 1, 100, net::SYNCHRONOUS);
281 TestStart(false, 1, 1, 500, net::SYNCHRONOUS);
289 TestStart(true, 1, 1, 500, net::SYNCHRONOUS);
297 TestStart(false, 1, 1, 1200, net::SYNCHRONOUS);
305 TestStart(true, 1, 1, 1200, net::SYNCHRONOUS);
313 TestStart(true, 1, 4, 1200, net::SYNCHRONOUS);
323 false, NetworkStats::NON_PACED_PACKET_TEST, 100, 0, 1, net::SYNCHRONOUS);
333 true, NetworkStats::NON_PACED_PACKET_TEST, 1200, 1, 1, net::SYNCHRONOUS);
    [all...]
  /external/chromium_org/google_apis/gcm/base/
socket_stream_unittest.cc 45 // Synchronous Refresh wrapper.
198 BuildSocket(ReadList(1, net::MockRead(net::SYNCHRONOUS,
214 net::MockRead(net::SYNCHRONOUS,
218 net::MockRead(net::SYNCHRONOUS,
234 net::MockRead(net::SYNCHRONOUS, net::ERR_IO_PENDING));
254 BuildSocket(ReadList(1, net::MockRead(net::SYNCHRONOUS,
273 BuildSocket(ReadList(1, net::MockRead(net::SYNCHRONOUS,
291 BuildSocket(ReadList(1, net::MockRead(net::SYNCHRONOUS, result)),
311 WriteList(1, net::MockWrite(net::SYNCHRONOUS,
322 write_list.push_back(net::MockWrite(net::SYNCHRONOUS,
    [all...]
  /external/chromium_org/net/websockets/
websocket_basic_stream_test.cc 123 socket_data_->set_connect_data(MockConnect(SYNCHRONOUS, OK));
205 // smaller). All reads must be either SYNCHRONOUS or ASYNC (not a mixture),
271 CreateRead(MockRead(SYNCHRONOUS, kSampleFrame, kSampleFrameSize));
293 SYNCHRONOUS, kSampleFrame, kSampleFrameSize, 1, 2, LAST_FRAME_BIG);
311 // If it receives an incomplete header in a synchronous call, then has to wait
314 MockRead reads[] = {MockRead(SYNCHRONOUS, kSampleFrame, 1),
328 MockRead(SYNCHRONOUS, kPartialLargeFrame, kLargeFrameHeaderSize - 1),
329 MockRead(SYNCHRONOUS, ERR_IO_PENDING)};
337 CreateRead(MockRead(SYNCHRONOUS, kPartialLargeFrame, kPartialLargeFrameSize));
348 CreateRead(MockRead(SYNCHRONOUS, kPartialLargeFrame, kLargeFrameHeaderSize))
    [all...]
websocket_test_util.cc 90 detail_->write = MockWrite(SYNCHRONOUS, 0, detail_->expect_written.c_str());
91 detail_->read = MockRead(SYNCHRONOUS, 1, detail_->return_to_read.c_str());
94 socket_data->set_connect_data(MockConnect(SYNCHRONOUS, OK));
websocket_stream_test.cc 64 // errors like "Unable to perform synchronous IO while stopped" will occur.
440 MockConnect(SYNCHRONOUS, ERR_CONNECTION_REFUSED));
463 socket_data->set_connect_data(MockConnect(SYNCHRONOUS, ERR_IO_PENDING));
481 socket_data->set_connect_data(MockConnect(SYNCHRONOUS, OK));
502 socket_data->set_connect_data(MockConnect(SYNCHRONOUS, OK));
  /external/chromium_org/net/quic/
quic_network_transaction_unittest.cc 312 MockConnect hanging_connect(SYNCHRONOUS, ERR_IO_PENDING);
348 MockWrite(SYNCHRONOUS, req->data(), req->length()),
349 MockWrite(SYNCHRONOUS, ack->data(), ack->length()),
356 MockRead(SYNCHRONOUS, resp->data(), resp->length()),
440 MockRead(SYNCHRONOUS, ERR_TEST_PEER_CLOSE_AFTER_NEXT_MOCK_READ),
461 MockRead(SYNCHRONOUS, ERR_TEST_PEER_CLOSE_AFTER_NEXT_MOCK_READ),
475 MockWrite(SYNCHRONOUS, req->data(), req->length()),
476 MockWrite(SYNCHRONOUS, ack->data(), ack->length()),
483 MockRead(SYNCHRONOUS, resp->data(), resp->length()),
514 MockRead(SYNCHRONOUS, ERR_TEST_PEER_CLOSE_AFTER_NEXT_MOCK_READ)
    [all...]
quic_http_stream_test.cc 376 AddWrite(SYNCHRONOUS, ConstructDataPacket(1, true, kFin, 0,
419 AddWrite(SYNCHRONOUS, ConstructDataPacket(1, true, kFin, 0,
466 AddWrite(SYNCHRONOUS, ConstructDataPacket(1, true, kFin, 0, request_data_));
508 AddWrite(SYNCHRONOUS, ConstructDataPacket(1, true, !kFin, 0, request_data_));
509 AddWrite(SYNCHRONOUS, ConstructDataPacket(2, true, kFin,
512 AddWrite(SYNCHRONOUS, ConstructAckPacket(3, 3, 1));
566 AddWrite(SYNCHRONOUS, ConstructDataPacket(1, true, !kFin, 0, request_data_));
567 AddWrite(SYNCHRONOUS, ConstructDataPacket(2, true, !kFin,
570 AddWrite(SYNCHRONOUS, ConstructDataPacket(3, true, kFin,
573 AddWrite(SYNCHRONOUS, ConstructAckPacket(4, 3, 1))
    [all...]
  /external/chromium_org/net/spdy/
spdy_proxy_client_socket_unittest.cc 152 connect_data_(SYNCHRONOUS, OK),
473 CreateMockWrite(*conn, 0, SYNCHRONOUS),
494 CreateMockWrite(*conn, 0, SYNCHRONOUS),
517 CreateMockWrite(*conn, 0, SYNCHRONOUS),
537 CreateMockWrite(*conn, 0, SYNCHRONOUS),
566 CreateMockWrite(*conn, 0, SYNCHRONOUS),
588 CreateMockWrite(*conn, 0, SYNCHRONOUS),
611 CreateMockWrite(*conn, 0, SYNCHRONOUS),
646 CreateMockWrite(*conn, 0, SYNCHRONOUS),
647 CreateMockWrite(*msg1, 2, SYNCHRONOUS),
    [all...]
spdy_session_unittest.cc 237 MockConnect connect_data(SYNCHRONOUS, OK);
241 SSLSocketDataProvider ssl(SYNCHRONOUS, OK);
292 MockConnect connect_data(SYNCHRONOUS, OK);
301 SSLSocketDataProvider ssl(SYNCHRONOUS, OK);
326 MockConnect connect_data(SYNCHRONOUS, OK);
329 CreateMockRead(*goaway, 0, SYNCHRONOUS),
335 SSLSocketDataProvider ssl(SYNCHRONOUS, OK);
353 MockConnect connect_data(SYNCHRONOUS, OK);
372 SSLSocketDataProvider ssl(SYNCHRONOUS, OK);
435 MockConnect connect_data(SYNCHRONOUS, OK)
    [all...]
spdy_session_pool_unittest.cc 101 MockConnect connect_data(SYNCHRONOUS, OK);
103 MockRead(SYNCHRONOUS, ERR_IO_PENDING) // Stall forever.
110 SSLSocketDataProvider ssl(SYNCHRONOUS, OK);
140 MockConnect connect_data(SYNCHRONOUS, OK);
151 SSLSocketDataProvider ssl(SYNCHRONOUS, OK);
264 MockConnect connect_data(SYNCHRONOUS, OK);
266 MockRead(SYNCHRONOUS, ERR_IO_PENDING) // Stall forever.
273 SSLSocketDataProvider ssl(SYNCHRONOUS, OK);
354 MockConnect connect_data(SYNCHRONOUS, OK);
356 MockRead(SYNCHRONOUS, ERR_IO_PENDING) // Stall forever
    [all...]
spdy_stream_unittest.cc 145 MockConnect connect_data(SYNCHRONOUS, OK);
187 MockConnect connect_data(SYNCHRONOUS, OK);
258 MockConnect connect_data(SYNCHRONOUS, OK);
342 MockConnect connect_data(SYNCHRONOUS, OK);
405 MockConnect connect_data(SYNCHRONOUS, OK);
465 MockConnect connect_data(SYNCHRONOUS, OK);
523 MockConnect connect_data(SYNCHRONOUS, OK);
598 MockConnect connect_data(SYNCHRONOUS, OK);
678 MockConnect connect_data(SYNCHRONOUS, OK);
747 MockConnect connect_data(SYNCHRONOUS, OK)
    [all...]
  /external/chromium_org/chrome/browser/sessions/
session_restore.h 24 // restore come in two variants, asynchronous or synchronous. The synchronous
38 SYNCHRONOUS = 1 << 2,
  /external/chromium_org/jingle/glue/
chrome_async_socket_unittest.cc 49 const net::MockRead pending_read(net::SYNCHRONOUS, net::ERR_IO_PENDING);
69 return net::MockWriteResult(net::SYNCHRONOUS, net::ERR_UNEXPECTED);
341 net::MockConnect(net::SYNCHRONOUS, net::OK));
671 net::MockRead(net::SYNCHRONOUS, net::ERR_TIMED_OUT));
749 net::MockWrite(net::SYNCHRONOUS, kWriteData, 3));
751 net::MockWrite(net::SYNCHRONOUS, kWriteData + 3, 5));
753 net::MockWrite(net::SYNCHRONOUS,
1037 net::MockWrite(net::SYNCHRONOUS, kWriteData, 3));
1039 net::MockWrite(net::SYNCHRONOUS, kWriteData + 3, 5));
1041 net::MockWrite(net::SYNCHRONOUS,
    [all...]

Completed in 491 milliseconds

1 2