/external/chromium/net/socket/ |
deterministic_socket_data_unittest.cc | 32 void Initialize(MockRead* reads, size_t reads_count, MockWrite* writes, 88 void DeterministicSocketDataTest::Initialize(MockRead* reads, 172 MockRead reads[] = { 173 MockRead(false, kMsg1, kLen1, 0), // Sync Read 174 MockRead(false, 0, 1), // EOF 184 MockRead reads[] = { 185 MockRead(false, kMsg1, kLen1, 1), // Sync Read 186 MockRead(false, 0, 2), // EOF 197 MockRead reads[] = { 198 MockRead(false, kMsg1, kLen1, 0), // Sync Rea [all...] |
socks5_client_socket_unittest.cc | 34 SOCKS5ClientSocket* BuildMockSocket(MockRead reads[], 76 MockRead reads[], 118 MockRead data_reads[] = { 119 MockRead(true, kSOCKS5GreetResponse, kSOCKS5GreetResponseLength), 120 MockRead(true, kSOCKS5OkResponse, kSOCKS5OkResponseLength), 121 MockRead(true, payload_read.data(), payload_read.size()) }; 188 MockRead data_reads[] = { 189 MockRead(false, kSOCKS5GreetResponse, kSOCKS5GreetResponseLength), 190 MockRead(false, kSOCKS5OkResponse, kSOCKS5OkResponseLength) 214 MockRead data_reads[] = {MockRead()} [all...] |
socket_test_util.h | 41 // If the |result| member of a MockRead is 42 // ERR_TEST_PEER_CLOSE_AFTER_NEXT_MOCK_READ, that MockRead is just a 44 // MockRead. The other members of that MockRead are ignored. 62 struct MockRead { 69 MockRead() : async(false), result(0), data(NULL), data_len(0), 73 MockRead(bool async, int result) : async(async) , result(result), data(NULL), 77 MockRead(bool async, int result, int seq) : async(async) , result(result), 82 explicit MockRead(const char* data) : async(true), result(0), data(data), 87 MockRead(bool async, const char* data) : async(async), result(0), data(data) [all...] |
socks_client_socket_unittest.cc | 30 SOCKSClientSocket* BuildMockSocket(MockRead reads[], size_t reads_count, 56 MockRead reads[], 126 MockRead data_reads[] = { 127 MockRead(true, kSOCKSOkReply, arraysize(kSOCKSOkReply)), 128 MockRead(true, payload_read.data(), payload_read.size()) }; 200 MockRead data_reads[] = { 201 MockRead(false, tests[i].fail_reply, arraysize(tests[i].fail_reply)) }; 236 MockRead data_reads[] = { 237 MockRead(true, kSOCKSPartialReply1, arraysize(kSOCKSPartialReply1)), 238 MockRead(true, kSOCKSPartialReply2, arraysize(kSOCKSPartialReply2)) } [all...] |
socket_test_util.cc | 106 void DumpMockRead(const MockRead& r) { 112 const char* stop = (r.sequence_number & MockRead::STOPLOOP) ? " (STOP)" : ""; 113 DVLOG(1) << "Stage: " << (r.sequence_number & ~MockRead::STOPLOOP) << stop 128 StaticSocketDataProvider::StaticSocketDataProvider(MockRead* reads, 142 const MockRead& StaticSocketDataProvider::PeekRead() const { 152 const MockRead& StaticSocketDataProvider::PeekRead(size_t index) const { 162 MockRead StaticSocketDataProvider::GetNextRead() { 212 MockRead DynamicSocketDataProvider::GetNextRead() { 214 return MockRead(false, ERR_UNEXPECTED); 215 MockRead result = reads_.front() [all...] |
socks_client_socket_pool_unittest.cc | 37 reads_.reset(new MockRead[3]); 38 reads_[0] = MockRead(async, kSOCKS5GreetResponse, 40 reads_[1] = MockRead(async, kSOCKS5OkResponse, kSOCKS5OkResponseLength); 41 reads_[2] = MockRead(async, 0); 160 MockRead failed_read[] = { 161 MockRead(false, 0), 179 MockRead failed_read[] = { 180 MockRead(true, 0),
|
ssl_client_socket_pool_unittest.cc | 552 MockRead reads[] = { 553 MockRead(false, "HTTP/1.1 200 Connection Established\r\n\r\n"), 583 MockRead reads[] = { 584 MockRead("HTTP/1.1 200 Connection Established\r\n\r\n"), 616 MockRead reads[] = { 617 MockRead("HTTP/1.1 407 Proxy Authentication Required\r\n"), 618 MockRead("Proxy-Authenticate: Basic realm=\"MyRealm1\"\r\n"), 619 MockRead("Content-Length: 10\r\n\r\n"), 620 MockRead("0123456789"), 680 MockRead reads[] = [all...] |
ssl_client_socket_unittest.cc | 536 net::MockRead data_reads[] = { 537 net::MockRead(false, reinterpret_cast<const char*>(application_data), 539 net::MockRead(false, net::OK),
|
/external/chromium/net/http/ |
http_network_transaction_unittest.cc | 137 void KeepAliveConnectionResendRequestTest(const MockRead& read_failure); 145 SimpleGetHelperResult SimpleGetHelper(MockRead data_reads[], 205 void ConnectStatusHelperWithExpectedStatus(const MockRead& status, 208 void ConnectStatusHelper(const MockRead& status); 343 MockRead data_reads[] = { 344 MockRead("HTTP/1.0 200 OK\r\n\r\n"), 345 MockRead("hello world"), 346 MockRead(false, OK), 357 MockRead data_reads[] = { 358 MockRead("hello world") [all...] |
http_proxy_client_socket_pool_unittest.cc | 147 void Initialize(bool async, MockRead* reads, size_t reads_count, 149 MockRead* spdy_reads, size_t spdy_reads_count, 243 MockRead reads[] = { 245 MockRead(true, 1, "HTTP/1.1 407 Proxy Authentication Required\r\n"), 246 MockRead(true, 2, "Proxy-Authenticate: Basic realm=\"MyRealm1\"\r\n"), 247 MockRead(true, 3, "Content-Length: 10\r\n\r\n"), 248 MockRead(true, 4, "0123456789"), 259 MockRead spdy_reads[] = { 261 MockRead(true, 0, 3) 305 MockRead reads[] = [all...] |
http_network_layer_unittest.cc | 74 MockRead data_reads[] = { 75 MockRead("HTTP/1.0 200 OK\r\n\r\n"), 76 MockRead("hello world"), 77 MockRead(false, OK),
|
/external/chromium/net/spdy/ |
spdy_proxy_client_socket_unittest.cc | 63 void Initialize(MockRead* reads, size_t reads_count, MockWrite* writes, 162 void SpdyProxyClientSocketTest::Initialize(MockRead* reads, 424 MockRead reads[] = { 426 MockRead(true, 0, 3), // EOF 445 MockRead reads[] = { 447 MockRead(true, 0, 3), // EOF 468 MockRead reads[] = { 470 MockRead(true, 0, 3), // EOF 488 MockRead reads[] = { 489 MockRead(true, 0, 1), // EO [all...] |
spdy_http_stream_unittest.cc | 25 int InitSession(MockRead* reads, size_t reads_count, 63 MockRead reads[] = { 65 MockRead(false, 0, 3) // EOF 117 MockRead reads[] = { 121 MockRead(false, 0, 6) // EOF 177 MockRead reads[] = { 179 MockRead(false, 0, 3) // EOF
|
spdy_network_transaction_unittest.cc | 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), // EO [all...] |
spdy_test_util.h | 62 MockRead* ChopReadFrame(const char* data, int length, int num_chunks); 67 MockRead* ChopReadFrame(const spdy::SpdyFrame& frame, int num_chunks); 317 // Create a MockRead from the given SpdyFrame. 318 MockRead CreateMockRead(const spdy::SpdyFrame& resp); 320 // Create a MockRead from the given SpdyFrame and sequence number. 321 MockRead CreateMockRead(const spdy::SpdyFrame& resp, int seq); 323 MockRead CreateMockRead(const spdy::SpdyFrame& resp, int seq, bool async);
|
spdy_session_unittest.cc | 69 MockRead reads[] = { 71 MockRead(false, 0, 0) // EOF 172 MockRead reads[] = { 174 MockRead(false, 0, 0) // EOF 255 MockRead reads[] = { 256 MockRead(false, ERR_IO_PENDING) // Stall forever. 343 MockRead reads[] = { 344 MockRead(false, ERR_IO_PENDING) // Stall forever. 444 MockRead reads[] = { 445 MockRead(false, ERR_IO_PENDING) // Stall forever [all...] |
spdy_test_util.cc | 48 MockRead* ChopReadFrame(const char* data, int length, int num_chunks) { 49 MockRead* chunks = new MockRead[num_chunks]; 55 chunks[index] = MockRead(true, ptr, chunk_size); 63 MockRead* ChopReadFrame(const spdy::SpdyFrame& frame, int num_chunks) { [all...] |
spdy_stream_unittest.cc | 177 MockRead reads[] = { 180 MockRead(true, 0, 0), // EOF
|
/external/chromium/net/socket_stream/ |
socket_stream_unittest.cc | 254 MockRead data_reads[] = { 255 MockRead(SocketStreamTest::kWebSocketHandshakeResponse), 257 MockRead(true, ERR_IO_PENDING) 295 MockRead data_reads1[] = { 296 MockRead("HTTP/1.1 407 Proxy Authentication Required\r\n"), 297 MockRead("Proxy-Authenticate: Basic realm=\"MyRealm1\"\r\n"), 298 MockRead("\r\n"), 310 MockRead data_reads2[] = { 311 MockRead("HTTP/1.1 200 Connection Established\r\n"), 312 MockRead("Proxy-agent: Apache/2.2.8\r\n") [all...] |
/external/chromium/net/websockets/ |
websocket_unittest.cc | 145 MockRead data_reads[] = { 146 MockRead("HTTP/1.1 101 Web Socket Protocol Handshake\r\n" 154 MockRead(true, ERR_IO_PENDING), 207 MockRead data_reads[] = { 208 MockRead("HTTP/1.1 101 Web Socket Protocol Handshake\r\n" 215 MockRead(true, kFrame, kFrameLen), 217 MockRead(true, ERR_IO_PENDING),
|
/external/chromium/net/ftp/ |
ftp_network_transaction_unittest.cc | 750 MockRead data_reads[] = { 753 MockRead(false, ERR_TEST_PEER_CLOSE_AFTER_NEXT_MOCK_READ), 754 MockRead(mock_data.c_str()), [all...] |