Home
last modified time | relevance | path

Searched refs:MockWrite (Results 1 – 20 of 20) sorted by relevance

/external/chromium/net/socket/
Ddeterministic_socket_data_unittest.cc32 void Initialize(MockRead* reads, size_t reads_count, MockWrite* writes,
90 MockWrite* writes, in Initialize()
297 MockWrite writes[] = { in TEST_F()
298 MockWrite(false, kMsg1, kLen1, 0), // Sync Read in TEST_F()
308 MockWrite writes[] = { in TEST_F()
309 MockWrite(false, kMsg1, kLen1, 1), // Sync Write in TEST_F()
320 MockWrite writes[] = { in TEST_F()
321 MockWrite(false, kMsg1, kLen1, 0), // Sync Write in TEST_F()
332 MockWrite writes[] = { in TEST_F()
333 MockWrite(false, kMsg1, kLen1, 0), // Sync Write in TEST_F()
[all …]
Dsocks5_client_socket_unittest.cc36 MockWrite writes[],
78 MockWrite writes[], in BuildMockSocket()
114 MockWrite data_writes[] = { in TEST_F()
115 MockWrite(true, kSOCKS5GreetRequest, kSOCKS5GreetRequestLength), in TEST_F()
116 MockWrite(true, kOkRequest, arraysize(kOkRequest)), in TEST_F()
117 MockWrite(true, payload_write.data(), payload_write.size()) }; in TEST_F()
184 MockWrite data_writes[] = { in TEST_F()
185 MockWrite(false, kSOCKS5GreetRequest, kSOCKS5GreetRequestLength), in TEST_F()
186 MockWrite(false, request.data(), request.size()) in TEST_F()
213 MockWrite data_writes[] = {MockWrite()}; in TEST_F()
[all …]
Dsocks_client_socket_unittest.cc31 MockWrite writes[], size_t writes_count,
58 MockWrite writes[], in BuildMockSocket()
123 MockWrite data_writes[] = { in TEST_F()
124 MockWrite(true, kSOCKSOkRequest, arraysize(kSOCKSOkRequest)), in TEST_F()
125 MockWrite(true, payload_write.data(), payload_write.size()) }; in TEST_F()
198 MockWrite data_writes[] = { in TEST_F()
199 MockWrite(false, kSOCKSOkRequest, arraysize(kSOCKSOkRequest)) }; in TEST_F()
234 MockWrite data_writes[] = { in TEST_F()
235 MockWrite(true, kSOCKSOkRequest, arraysize(kSOCKSOkRequest)) }; in TEST_F()
268 MockWrite data_writes[] = { in TEST_F()
[all …]
Dsocks_client_socket_pool_unittest.cc31 writes_.reset(new MockWrite[3]); in SOCKS5MockData()
32 writes_[0] = MockWrite(async, kSOCKS5GreetRequest, in SOCKS5MockData()
34 writes_[1] = MockWrite(async, kSOCKS5OkRequest, kSOCKS5OkRequestLength); in SOCKS5MockData()
35 writes_[2] = MockWrite(async, 0); in SOCKS5MockData()
51 scoped_array<MockWrite> writes_;
52 scoped_array<MockWrite> reads_;
Dsocket_test_util.h123 typedef MockRead MockWrite; typedef
168 MockWrite* writes, size_t writes_count);
173 const MockWrite& PeekWrite() const;
176 const MockWrite& PeekWrite(size_t index) const;
196 MockWrite* writes_;
271 MockWrite* writes, size_t writes_count);
283 MockWrite* writes, size_t writes_count);
319 MockWrite* writes, size_t writes_count);
329 MockWrite* writes, size_t writes_count);
420 MockWrite* writes, size_t writes_count);
[all …]
Dsocket_test_util.cc130 MockWrite* writes, in StaticSocketDataProvider()
147 const MockWrite& StaticSocketDataProvider::PeekWrite() const { in PeekWrite()
157 const MockWrite& StaticSocketDataProvider::PeekWrite(size_t index) const { in PeekWrite()
178 net::MockWrite* w = &writes_[write_index_++]; in OnWrite()
250 MockWrite* writes, size_t writes_count) in DelayedSocketData()
259 size_t reads_count, MockWrite* writes, size_t writes_count) in DelayedSocketData()
302 MockRead* reads, size_t reads_count, MockWrite* writes, size_t writes_count) in OrderedSocketData()
311 MockWrite* writes, size_t writes_count) in OrderedSocketData()
400 size_t reads_count, MockWrite* writes, size_t writes_count) in DeterministicSocketData()
494 const MockWrite& next_write = StaticSocketDataProvider::PeekWrite(); in OnWrite()
Dssl_client_socket_pool_unittest.cc545 MockWrite writes[] = { in TEST_F()
546 MockWrite(false, in TEST_F()
577 MockWrite writes[] = { in TEST_F()
578 MockWrite("CONNECT host:80 HTTP/1.1\r\n" in TEST_F()
611 MockWrite writes[] = { in TEST_F()
612 MockWrite("CONNECT host:80 HTTP/1.1\r\n" in TEST_F()
/external/chromium/net/http/
Dhttp_network_transaction_unittest.cc580 MockWrite data_writes1[] = { in TEST_F()
581 MockWrite("HEAD / HTTP/1.1\r\n" in TEST_F()
1041 MockWrite data_writes1[] = { in TEST_F()
1042 MockWrite("GET / HTTP/1.1\r\n" in TEST_F()
1062 MockWrite data_writes2[] = { in TEST_F()
1063 MockWrite("GET / HTTP/1.1\r\n" in TEST_F()
1126 MockWrite data_writes[] = { in TEST_F()
1127 MockWrite("GET / HTTP/1.1\r\n" in TEST_F()
1168 MockWrite data_writes1[] = { in TEST_F()
1169 MockWrite("GET / HTTP/1.1\r\n" in TEST_F()
[all …]
Dhttp_proxy_client_socket_pool_unittest.cc148 MockWrite* writes, size_t writes_count, in Initialize()
150 MockWrite* spdy_writes, size_t spdy_writes_count) { in Initialize()
238 MockWrite writes[] = { in TEST_P()
239 MockWrite(true, 0, "CONNECT www.google.com:443 HTTP/1.1\r\n" in TEST_P()
252 MockWrite spdy_writes[] = { in TEST_P()
298 MockWrite writes[] = { in TEST_P()
299 MockWrite(false, 0, in TEST_P()
324 MockWrite writes[] = { in TEST_P()
325 MockWrite("CONNECT www.google.com:443 HTTP/1.1\r\n" in TEST_P()
336 MockWrite spdy_writes[] = { in TEST_P()
[all …]
Dhttp_network_layer_unittest.cc79 MockWrite data_writes[] = { in TEST_F()
80 MockWrite("GET / HTTP/1.1\r\n" in TEST_F()
/external/chromium/net/spdy/
Dspdy_proxy_client_socket_unittest.cc63 void Initialize(MockRead* reads, size_t reads_count, MockWrite* writes,
164 MockWrite* writes, in Initialize()
419 MockWrite writes[] = { in TEST_F()
440 MockWrite writes[] = { in TEST_F()
463 MockWrite writes[] = { in TEST_F()
483 MockWrite writes[] = { in TEST_F()
505 MockWrite writes[] = { in TEST_F()
528 MockWrite writes[] = { in TEST_F()
557 MockWrite writes[] = { in TEST_F()
582 MockWrite writes[] = { in TEST_F()
[all …]
Dspdy_test_util.h51 MockWrite* ChopWriteFrame(const char* data, int length, int num_chunks);
56 MockWrite* ChopWriteFrame(const spdy::SpdyFrame& frame, int num_chunks);
314 MockWrite CreateMockWrite(const spdy::SpdyFrame& req);
317 MockWrite CreateMockWrite(const spdy::SpdyFrame& req, int seq);
319 MockWrite CreateMockWrite(const spdy::SpdyFrame& req, int seq, bool async);
Dspdy_network_transaction_unittest.cc528 MockWrite writes[] = { CreateMockWrite(*req) }; in TEST_P()
555 MockWrite writes[] = { CreateMockWrite(*req) }; in TEST_P()
629 MockWrite writes[] = { in TEST_P()
719 MockWrite writes[] = { in TEST_P()
806 MockWrite writes[] = { in TEST_P()
925 MockWrite writes[] = { in TEST_P()
1064 MockWrite writes[] = { CreateMockWrite(*req), in TEST_P()
1209 MockWrite writes[] = { CreateMockWrite(*req), in TEST_P()
1332 MockWrite writes[] = { CreateMockWrite(*req), in TEST_P()
1436 MockWrite writes[] = { in TEST_P()
[all …]
Dspdy_test_util.cc23 MockWrite* ChopWriteFrame(const char* data, int length, int num_chunks) { in ChopWriteFrame()
24 MockWrite* chunks = new MockWrite[num_chunks]; in ChopWriteFrame()
30 chunks[index] = MockWrite(true, ptr, chunk_size); in ChopWriteFrame()
38 MockWrite* ChopWriteFrame(const spdy::SpdyFrame& frame, int num_chunks) { in ChopWriteFrame()
842 MockWrite CreateMockWrite(const spdy::SpdyFrame& req) { in CreateMockWrite()
843 return MockWrite( in CreateMockWrite()
848 MockWrite CreateMockWrite(const spdy::SpdyFrame& req, int seq) { in CreateMockWrite()
853 MockWrite CreateMockWrite(const spdy::SpdyFrame& req, int seq, bool async) { in CreateMockWrite()
854 return MockWrite( in CreateMockWrite()
Dspdy_http_stream_unittest.cc26 MockWrite* writes, size_t writes_count, in InitSession()
59 MockWrite writes[] = { in TEST_F()
111 MockWrite writes[] = { in TEST_F()
173 MockWrite writes[] = { in TEST_F()
Dspdy_stream_unittest.cc167 MockWrite writes[] = { in TEST_F()
Dspdy_session_unittest.cc500 MockWrite writes[] = { in TEST_F()
/external/chromium/net/socket_stream/
Dsocket_stream_unittest.cc249 MockWrite data_writes[] = { in TEST_F()
250 MockWrite(SocketStreamTest::kWebSocketHandshakeRequest), in TEST_F()
251 MockWrite(true, "\0message1\xff", 10), in TEST_F()
252 MockWrite(true, "\0message2\xff", 10) in TEST_F()
290 MockWrite data_writes1[] = { in TEST_F()
291 MockWrite("CONNECT example.com:80 HTTP/1.1\r\n" in TEST_F()
304 MockWrite data_writes2[] = { in TEST_F()
305 MockWrite("CONNECT example.com:80 HTTP/1.1\r\n" in TEST_F()
/external/chromium/net/websockets/
Dwebsocket_unittest.cc156 MockWrite data_writes[] = { in TEST_F()
157 MockWrite("GET /demo HTTP/1.1\r\n" in TEST_F()
219 MockWrite data_writes[] = { in TEST_F()
220 MockWrite("GET /demo HTTP/1.1\r\n" in TEST_F()
/external/chromium/net/ftp/
Dftp_network_transaction_unittest.cc1159 MockWrite ctrl_writes[] = { in TEST_F()
1160 MockWrite("QUIT\r\n"), in TEST_F()
1191 MockWrite ctrl_writes[] = { in TEST_F()
1192 MockWrite("USER innocent\r\n"), in TEST_F()
1193 MockWrite("QUIT\r\n"), in TEST_F()