/external/chromium_org/net/url_request/ |
url_request_ftp_job_unittest.cc | 259 MockWrite(ASYNC, 0, "GET ftp://ftp.example.com/ HTTP/1.1\r\n" 264 MockRead(ASYNC, 1, "HTTP/1.1 200 OK\r\n"), 265 MockRead(ASYNC, 2, "Content-Length: 9\r\n\r\n"), 266 MockRead(ASYNC, 3, "test.html"), 309 MockWrite(ASYNC, 0, "GET ftp://ftp.example.com/ HTTP/1.1\r\n" 315 MockRead(ASYNC, 1, "HTTP/1.1 407 Proxy Authentication Required\r\n"), 316 MockRead(ASYNC, 2, "Proxy-Authenticate: Basic " 318 MockRead(ASYNC, 3, "Content-Length: 9\r\n\r\n"), 319 MockRead(ASYNC, 4, "test.html"), 343 MockWrite(ASYNC, 0, "GET ftp://ftp.example.com/ HTTP/1.1\r\n [all...] |
/external/chromium_org/net/socket/ |
socks5_client_socket_unittest.cc | 129 MockWrite(ASYNC, kSOCKS5GreetRequest, kSOCKS5GreetRequestLength), 130 MockWrite(ASYNC, kOkRequest, arraysize(kOkRequest)), 131 MockWrite(ASYNC, payload_write.data(), payload_write.size()) }; 133 MockRead(ASYNC, kSOCKS5GreetResponse, kSOCKS5GreetResponseLength), 134 MockRead(ASYNC, kSOCKS5OkResponse, kSOCKS5OkResponseLength), 135 MockRead(ASYNC, payload_read.data(), payload_read.size()) }; 261 MockWrite(ASYNC, arraysize(partial1)), 262 MockWrite(ASYNC, partial2, arraysize(partial2)), 263 MockWrite(ASYNC, kOkRequest, arraysize(kOkRequest)) }; 265 MockRead(ASYNC, kSOCKS5GreetResponse, kSOCKS5GreetResponseLength) [all...] |
deterministic_socket_data_unittest.cc | 266 MockRead(ASYNC, kMsg1, kLen1, 0), // Async Read 277 MockRead(ASYNC, kMsg1, kLen1, 0), // Async Read 278 MockRead(ASYNC, kMsg2, kLen2, 1), // Async Read 279 MockRead(ASYNC, kMsg3, kLen3, 2), // Async Read 280 MockRead(ASYNC, kMsg3, kLen3, 3), // Async Rea [all...] |
socks_client_socket_unittest.cc | 142 MockWrite(ASYNC, kSOCKSOkRequest, arraysize(kSOCKSOkRequest)), 143 MockWrite(ASYNC, payload_write.data(), payload_write.size()) }; 145 MockRead(ASYNC, kSOCKSOkReply, arraysize(kSOCKSOkReply)), 146 MockRead(ASYNC, payload_read.data(), payload_read.size()) }; 256 MockWrite(ASYNC, kSOCKSOkRequest, arraysize(kSOCKSOkRequest)) }; 258 MockRead(ASYNC, kSOCKSPartialReply1, arraysize(kSOCKSPartialReply1)), 259 MockRead(ASYNC, kSOCKSPartialReply2, arraysize(kSOCKSPartialReply2)) }; 290 MockWrite(ASYNC, arraysize(kSOCKSPartialRequest1)), 292 MockWrite(ASYNC, 0), 293 MockWrite(ASYNC, 0) [all...] |
ssl_client_socket_pool_unittest.cc | 269 SSLSocketDataProvider ssl(ASYNC, ERR_SSL_PROTOCOL_ERROR); 271 SSLSocketDataProvider ssl2(ASYNC, ERR_SSL_PROTOCOL_ERROR); 273 SSLSocketDataProvider ssl3(ASYNC, ERR_SSL_PROTOCOL_ERROR); 275 SSLSocketDataProvider ssl4(ASYNC, OK); 277 SSLSocketDataProvider ssl5(ASYNC, OK); 279 SSLSocketDataProvider ssl6(ASYNC, OK); 281 SSLSocketDataProvider ssl7(ASYNC, OK); 340 SSLSocketDataProvider ssl(ASYNC, OK); 343 SSLSocketDataProvider ssl2(ASYNC, OK); 346 SSLSocketDataProvider ssl3(ASYNC, OK) [all...] |
socks_client_socket_pool_unittest.cc | 182 TEST_F(SOCKSClientSocketPoolTest, Async) { 183 SOCKS5MockData data(ASYNC); 216 socket_data.set_connect_data(MockConnect(ASYNC, ERR_CONNECTION_REFUSED)); 253 MockRead(ASYNC, 0), 308 SOCKS5MockData data(ASYNC); 313 SOCKS5MockData data2(ASYNC); 331 // Now wait for the async data to reach the SOCKS connect jobs.
|
/external/chromium_org/net/spdy/ |
spdy_proxy_client_socket_unittest.cc | 394 CreateMockRead(*resp, 1, ASYNC), 395 MockRead(ASYNC, 0, 2), // EOF 415 CreateMockRead(*resp, 1, ASYNC), 416 MockRead(ASYNC, 0, 2), // EOF 436 CreateMockRead(*resp, 1, ASYNC), 437 MockRead(ASYNC, 0, 2), // EOF 458 CreateMockRead(*resp, 1, ASYNC), MockRead(ASYNC, 0, 3), // EOF 489 MockRead(ASYNC, 0, 1), // EOF 513 CreateMockRead(*resp, 1, ASYNC), MockRead(ASYNC, 0, 3), // EO [all...] |
spdy_network_transaction_unittest.cc | 317 new SSLSocketDataProvider(ASYNC, OK)); 353 new SSLSocketDataProvider(ASYNC, OK); 749 MockRead(ASYNC, 0, 0) // EOF 821 MockRead(ASYNC, 0, 0) // EOF [all...] |
/external/chromium_org/google_apis/gcm/engine/ |
connection_handler_impl_unittest.cc | 235 WriteList write_list(1, net::MockWrite(net::ASYNC, 239 ReadList read_list(1, net::MockRead(net::ASYNC, 258 WriteList write_list(1, net::MockWrite(net::ASYNC, 264 ReadList read_list(1, net::MockRead(net::ASYNC, 282 WriteList write_list(1, net::MockWrite(net::ASYNC, 302 WriteList write_list(1, net::MockWrite(net::ASYNC, 307 read_list.push_back(net::MockRead(net::ASYNC, 326 WriteList write_list(1, net::MockWrite(net::ASYNC, 343 read_list[0] = net::MockRead(net::ASYNC, 359 WriteList write_list(1, net::MockWrite(net::ASYNC, [all...] |
/external/chromium_org/chrome/browser/net/ |
network_stats_unittest.cc | 48 // |io_mode_write| is the IO mode for writing only. Reading is always async. 84 net::MockRead(net::ASYNC, &inputs_[0][0], inputs_[0].size(), 1)); 99 net::ASYNC, &inputs_[1 + i][0], inputs_[1 + i].size(), 3 + i)); 253 TestStart(true, 0, 1, 100, net::ASYNC); 261 TestStart(false, 1, 1, 100, net::ASYNC); 269 TestStart(true, 1, 1, 100, net::ASYNC); 277 TestStart(true, 1, 1, 500, net::ASYNC); 285 TestStart(false, 1, 1, 500, net::ASYNC); 293 TestStart(true, 1, 1, 1200, net::ASYNC); 301 TestStart(false, 1, 1, 1200, net::ASYNC); [all...] |
/external/chromium_org/net/http/ |
http_proxy_client_socket_pool_unittest.cc | 367 MockWrite(ASYNC, 0, "CONNECT www.google.com:443 HTTP/1.1\r\n" 373 MockRead(ASYNC, 1, "HTTP/1.1 407 Proxy Authentication Required\r\n"), 374 MockRead(ASYNC, 2, "Proxy-Authenticate: Basic realm=\"MyRealm1\"\r\n"), 375 MockRead(ASYNC, 3, "Content-Length: 10\r\n\r\n"), 376 MockRead(ASYNC, 4, "0123456789"), 383 CreateMockWrite(*req, 0, ASYNC), 384 CreateMockWrite(*rst, 2, ASYNC), 393 CreateMockRead(*resp, 1, ASYNC), 394 MockRead(ASYNC, 0, 3) 467 MockWrite(ASYNC, 0, "CONNECT www.google.com:443 HTTP/1.1\r\n [all...] |
http_network_transaction_ssl_unittest.cc | 113 SSLSocketDataProvider ssl_data1(ASYNC, ERR_SSL_PROTOCOL_ERROR); 121 SSLSocketDataProvider ssl_data2(ASYNC, ERR_SSL_PROTOCOL_ERROR); 129 SSLSocketDataProvider ssl_data3(ASYNC, ERR_SSL_PROTOCOL_ERROR);
|
http_stream_factory_impl_unittest.cc | 595 socket_data1.set_connect_data(MockConnect(ASYNC, ERR_ADDRESS_UNREACHABLE)); 600 socket_data2.set_connect_data(MockConnect(ASYNC, OK)); 633 socket_data.set_connect_data(MockConnect(ASYNC, OK)); 636 SSLSocketDataProvider ssl(ASYNC, OK); 687 socket_data.set_connect_data(MockConnect(ASYNC, OK)); 690 SSLSocketDataProvider ssl(ASYNC, OK); 740 socket_data.set_connect_data(MockConnect(ASYNC, OK)); 767 socket_data.set_connect_data(MockConnect(ASYNC, OK)); 812 MockRead mock_read(ASYNC, OK); 814 socket_data.set_connect_data(MockConnect(ASYNC, OK)) [all...] |
http_network_transaction_unittest.cc | [all...] |
/external/chromium_org/extensions/browser/api/cast_channel/ |
cast_socket_unittest.cc | 106 if (connect_data_.mode == net::ASYNC) { 408 socket_->AddReadResult(net::ASYNC, net::ERR_IO_PENDING); 451 // - TCP connection succeeds (async) 452 // - SSL connection succeeds (async) 456 socket_->SetupTcp1Connect(net::ASYNC, net::OK); 457 socket_->SetupSsl1Connect(net::ASYNC, net::OK); 458 socket_->AddReadResult(net::ASYNC, net::ERR_IO_PENDING); 470 // - TCP connection succeeds (async) 471 // - SSL connection fails with cert error (async) 473 // - Second TCP connection succeeds (async) [all...] |
/external/chromium_org/net/quic/ |
quic_network_transaction_unittest.cc | 422 mock_quic_data.AddRead(ASYNC, ERR_SOCKET_NOT_CONNECTED); 445 MockRead(ASYNC, OK) 450 SSLSocketDataProvider ssl(ASYNC, OK); 464 MockRead(ASYNC, OK) 501 MockRead(ASYNC, OK) 539 MockRead(ASYNC, OK) 561 MockRead(ASYNC, OK) 585 MockRead(ASYNC, OK) 641 MockWrite(ASYNC, ERR_IO_PENDING, 0) 644 MockRead(ASYNC, ERR_IO_PENDING, 1) [all...] |
quic_stream_factory_test.cc | 150 MockRead(ASYNC, OK, 0) // EOF 227 MockRead(ASYNC, OK, 0) // EOF 269 MockRead(ASYNC, OK, 0) // EOF 298 MockRead(ASYNC, OK, 0) // EOF 333 MockRead(ASYNC, OK, 0) // EOF 381 MockRead(ASYNC, OK, 0) // EOF 428 MockRead(ASYNC, OK, 0) // EOF 483 MockRead(ASYNC, OK, 0) // EOF 552 MockRead(ASYNC, OK, 0) // EOF 613 MockRead(ASYNC, OK, 0) // EO [all...] |
/external/chromium_org/net/websockets/ |
websocket_basic_stream_test.cc | 207 // smaller). All reads must be either SYNCHRONOUS or ASYNC (not a mixture), 282 CreateRead(MockRead(ASYNC, kSampleFrame, kSampleFrameSize)); 305 ASYNC, kSampleFrame, kSampleFrameSize, 1, 2, LAST_FRAME_BIG); 317 MockRead(ASYNC, kSampleFrame + 1, kSampleFrameSize - 1)}; 364 MockRead(ASYNC, 385 CreateChunkedRead(ASYNC, 409 CreateChunkedRead(ASYNC, 435 CreateChunkedRead(ASYNC, 480 CreateRead(MockRead(ASYNC, "", 0)); 498 CreateRead(MockRead(ASYNC, ERR_CONNECTION_CLOSED)) [all...] |
websocket_stream_test.cc | [all...] |
/external/chromium_org/net/ftp/ |
ftp_network_transaction_unittest.cc | 68 return MockWriteResult(ASYNC, data.length()); 116 return MockWriteResult(ASYNC, ERR_UNEXPECTED); 171 return MockWriteResult(ASYNC, data.length()); 173 return MockWriteResult(ASYNC, ERR_UNEXPECTED); 210 return MockWriteResult(ASYNC, data.length()); 237 return MockWriteResult(ASYNC, data.length()); 263 return MockWriteResult(ASYNC, data.length()); 283 return MockWriteResult(ASYNC, data.length()); 317 return MockWriteResult(ASYNC, data.length()); 353 return MockWriteResult(ASYNC, data.length()) [all...] |
/external/chromium_org/net/dns/ |
dns_transaction_unittest.cc | 115 reads_.push_back(MockRead(ASYNC, ERR_IO_PENDING)); 390 AddQueryAndResponse(id, dotted_name, qtype, data, data_length, ASYNC, 407 new DnsSocketData(id, dotted_name, qtype, ASYNC, false)); 427 AddQueryAndRcode(dotted_name, qtype, rcode, ASYNC, false); 577 new DnsSocketData(0 /* id */, kT0HostName, kT0Qtype, ASYNC, false)); 579 arraysize(kT1ResponseDatagram), ASYNC); 581 arraysize(kT0ResponseDatagram), ASYNC); 888 ASYNC, true /* use_tcp */); 898 ASYNC, true /* use_tcp */); 908 new DnsSocketData(0 /* id */, kT0HostName, kT0Qtype, ASYNC, true)) [all...] |
/external/chromium_org/jingle/glue/ |
chrome_async_socket_unittest.cc | 146 : ssl_socket_data_provider_(net::ASYNC, net::OK), 539 net::MockConnect(net::ASYNC, net::OK)); 561 net::MockConnect(net::ASYNC, net::OK)); 576 net::MockConnect(net::ASYNC, net::ERR_TIMED_OUT)); 603 net::MockConnect(net::ASYNC, net::OK)); 734 net::MockRead(net::ASYNC, net::ERR_TIMED_OUT)); 783 net::MockWrite(net::ASYNC, kWriteData, 3)); 785 net::MockWrite(net::ASYNC, kWriteData + 3, 5)); 787 net::MockWrite(net::ASYNC, kWriteData + 8, arraysize(kWriteData) - 8)); 806 net::MockWrite(net::ASYNC, kWriteData, 3)) [all...] |
proxy_resolving_client_socket_unittest.cc | 79 net::MockConnect(net::ASYNC, net::ERR_ADDRESS_UNREACHABLE)); 92 socket_data2.set_connect_data(net::MockConnect(net::ASYNC, net::OK));
|
fake_ssl_client_socket_unittest.cc | 114 if (mode == net::ASYNC) { 157 if (mode == net::ASYNC) { 261 RunUnsuccessfulHandshakeTestHelper(net::ASYNC, error, location); 313 RunSuccessfulHandshakeTest(net::ASYNC, i, j, 0); 319 RunSuccessfulHandshakeTest(net::ASYNC, 1, 2, 3);
|
/external/chromium_org/net/socket_stream/ |
socket_stream_unittest.cc | 408 MockWrite(ASYNC, "\0message1\xff", 10), 409 MockWrite(ASYNC, "\0message2\xff", 10) 414 MockRead(ASYNC, ERR_IO_PENDING) 549 MockRead(ASYNC, ERR_IO_PENDING) 607 MockRead(ASYNC, ERR_IO_PENDING) 661 MockRead(ASYNC, ERR_IO_PENDING) 667 SSLSocketDataProvider data2(ASYNC, OK); 727 MockWrite(ASYNC, "\0message1\xff", 10), 728 MockWrite(ASYNC, "\0message2\xff", 10) 733 MockRead(ASYNC, ERR_IO_PENDING [all...] |