Home
last modified time | relevance | path

Searched refs:MockConnect (Results 1 – 25 of 27) sorted by relevance

12

/external/chromium_org/net/socket/
Dsocks_client_socket_pool_unittest.cc131 data.data_provider()->set_connect_data(MockConnect(SYNCHRONOUS, OK)); in TEST_F()
149 data.data_provider()->set_connect_data(MockConnect(SYNCHRONOUS, OK)); in TEST_F()
168 data.data_provider()->set_connect_data(MockConnect(SYNCHRONOUS, OK)); in TEST_F()
202 socket_data.set_connect_data(MockConnect(SYNCHRONOUS, in TEST_F()
216 socket_data.set_connect_data(MockConnect(ASYNC, ERR_CONNECTION_REFUSED)); in TEST_F()
238 socket_data.set_connect_data(MockConnect(SYNCHRONOUS, OK)); in TEST_F()
257 socket_data.set_connect_data(MockConnect(SYNCHRONOUS, OK)); in TEST_F()
309 data.data_provider()->set_connect_data(MockConnect(SYNCHRONOUS, OK)); in TEST_F()
314 data2.data_provider()->set_connect_data(MockConnect(SYNCHRONOUS, OK)); in TEST_F()
Dsocket_test_util.h60 struct MockConnect { struct
64 MockConnect();
67 MockConnect(IoMode io_mode, int r);
68 MockConnect(IoMode io_mode, int r, IPEndPoint addr);
69 ~MockConnect();
214 MockConnect connect_data() const { return connect_; } in connect_data()
215 void set_connect_data(const MockConnect& connect) { connect_ = connect; } in set_connect_data()
218 MockConnect connect_;
234 virtual void OnConnectComplete(const MockConnect& data) = 0;
326 MockConnect connect;
[all …]
Dsocket_test_util.cc130 MockConnect::MockConnect() : mode(ASYNC), result(OK) { in MockConnect() function in net::MockConnect
136 MockConnect::MockConnect(IoMode io_mode, int r) : mode(io_mode), result(r) { in MockConnect() function in net::MockConnect
142 MockConnect::MockConnect(IoMode io_mode, int r, IPEndPoint addr) : in MockConnect() function in net::MockConnect
148 MockConnect::~MockConnect() {} in ~MockConnect()
311 const MockConnect& connect, int write_delay, MockRead* reads, in DelayedSocketData()
370 const MockConnect& connect, in OrderedSocketData()
986 void MockTCPClientSocket::OnConnectComplete(const MockConnect& data) { in OnConnectComplete()
1224 const MockConnect& data) { in OnConnectComplete()
1318 const MockConnect& data) {} in OnConnectComplete()
1470 void MockSSLClientSocket::OnConnectComplete(const MockConnect& data) { in OnConnectComplete()
[all …]
Dssl_client_socket_pool_unittest.cc703 data.set_connect_data(MockConnect(SYNCHRONOUS, ERR_CONNECTION_FAILED)); in TEST_P()
721 data.set_connect_data(MockConnect(ASYNC, ERR_CONNECTION_FAILED)); in TEST_P()
744 data.set_connect_data(MockConnect(SYNCHRONOUS, OK)); in TEST_P()
773 data.set_connect_data(MockConnect(SYNCHRONOUS, OK)); in TEST_P()
975 data.set_connect_data(MockConnect(SYNCHRONOUS, ERR_CONNECTION_FAILED)); in TEST_P()
994 data.set_connect_data(MockConnect(ASYNC, ERR_CONNECTION_FAILED)); in TEST_P()
1017 data.set_connect_data(MockConnect(SYNCHRONOUS, OK)); in TEST_P()
1042 data.set_connect_data(MockConnect(SYNCHRONOUS, OK)); in TEST_P()
1086 data.set_connect_data(MockConnect(SYNCHRONOUS, ERR_CONNECTION_FAILED)); in TEST_P()
1105 data.set_connect_data(MockConnect(ASYNC, ERR_CONNECTION_FAILED)); in TEST_P()
[all …]
Ddeterministic_socket_data_unittest.cc57 MockConnect connect_data_;
/external/chromium_org/net/http/
Dhttp_stream_factory_impl_unittest.cc595 socket_data1.set_connect_data(MockConnect(ASYNC, ERR_ADDRESS_UNREACHABLE)); in TEST_P()
600 socket_data2.set_connect_data(MockConnect(ASYNC, OK)); in TEST_P()
633 socket_data.set_connect_data(MockConnect(ASYNC, OK)); in TEST_P()
687 socket_data.set_connect_data(MockConnect(ASYNC, OK)); in TEST_P()
740 socket_data.set_connect_data(MockConnect(ASYNC, OK)); in TEST_P()
767 socket_data.set_connect_data(MockConnect(ASYNC, OK)); in TEST_P()
814 socket_data.set_connect_data(MockConnect(ASYNC, OK)); in TEST_P()
861 socket_data.set_connect_data(MockConnect(ASYNC, OK)); in TEST_P()
913 socket_data.set_connect_data(MockConnect(ASYNC, OK)); in TEST_P()
958 socket_data.set_connect_data(MockConnect(ASYNC, OK)); in TEST_P()
[all …]
Dhttp_stream_parser_unittest.cc227 data.set_connect_data(MockConnect(SYNCHRONOUS, OK)); in TEST()
381 data.set_connect_data(MockConnect(SYNCHRONOUS, OK)); in TEST()
450 data.set_connect_data(MockConnect(SYNCHRONOUS, OK)); in TEST()
522 data_->set_connect_data(MockConnect(SYNCHRONOUS, OK)); in SetupParserAndSendRequest()
829 data.set_connect_data(MockConnect(SYNCHRONOUS, OK)); in TEST()
Dhttp_proxy_client_socket_pool_unittest.cc267 data_->set_connect_data(MockConnect(SYNCHRONOUS, OK)); in Initialize()
543 data_->set_connect_data(MockConnect(ASYNC, ERR_CONNECTION_CLOSED)); in TEST_P()
562 data_->set_connect_data(MockConnect(ASYNC, OK)); in TEST_P()
587 data_->set_connect_data(MockConnect(ASYNC, OK)); in TEST_P()
Dhttp_network_transaction_unittest.cc8469 MockConnect mock_connect(ASYNC, ERR_CONNECTION_REFUSED); in TEST_P()
8532 MockConnect mock_connect(ASYNC, ERR_CONNECTION_REFUSED); in TEST_P()
8583 MockConnect mock_connect(ASYNC, ERR_CONNECTION_REFUSED); in TEST_P()
8631 MockConnect mock_connect(ASYNC, ERR_CONNECTION_REFUSED); in TEST_P()
8680 MockConnect mock_connect(ASYNC, ERR_CONNECTION_REFUSED); in TEST_P()
8728 MockConnect mock_connect(ASYNC, ERR_CONNECTION_REFUSED); in TEST_P()
8863 MockConnect never_finishing_connect(SYNCHRONOUS, ERR_IO_PENDING); in TEST_P()
8932 MockConnect never_finishing_connect(SYNCHRONOUS, ERR_IO_PENDING); in TEST_P()
9052 MockConnect never_finishing_connect(SYNCHRONOUS, ERR_IO_PENDING); in TEST_P()
9208 MockConnect never_finishing_connect(SYNCHRONOUS, ERR_IO_PENDING); in TEST_P()
[all …]
/external/chromium_org/net/spdy/
Dspdy_stream_unittest.cc144 MockConnect connect_data(SYNCHRONOUS, OK); in TEST_P()
184 MockConnect connect_data(SYNCHRONOUS, OK); in TEST_P()
262 MockConnect connect_data(SYNCHRONOUS, OK); in TEST_P()
344 MockConnect connect_data(SYNCHRONOUS, OK); in TEST_P()
405 MockConnect connect_data(SYNCHRONOUS, OK); in TEST_P()
463 MockConnect connect_data(SYNCHRONOUS, OK); in TEST_P()
521 MockConnect connect_data(SYNCHRONOUS, OK); in TEST_P()
596 MockConnect connect_data(SYNCHRONOUS, OK); in TEST_P()
676 MockConnect connect_data(SYNCHRONOUS, OK); in TEST_P()
745 MockConnect connect_data(SYNCHRONOUS, OK); in TEST_P()
[all …]
Dspdy_session_unittest.cc242 MockConnect connect_data(SYNCHRONOUS, OK); in TEST_P()
291 MockConnect connect_data(SYNCHRONOUS, OK); in TEST_P()
321 MockConnect connect_data(SYNCHRONOUS, OK); in TEST_P()
348 MockConnect connect_data(SYNCHRONOUS, OK); in TEST_P()
428 MockConnect connect_data(SYNCHRONOUS, OK); in TEST_P()
508 MockConnect connect_data(SYNCHRONOUS, OK); in TEST_P()
616 MockConnect connect_data(SYNCHRONOUS, OK); in TEST_P()
652 MockConnect connect_data(SYNCHRONOUS, OK); in TEST_P()
716 MockConnect connect_data(SYNCHRONOUS, OK); in TEST_P()
781 MockConnect connect_data(SYNCHRONOUS, OK); in TEST_P()
[all …]
Dspdy_session_pool_unittest.cc101 MockConnect connect_data(SYNCHRONOUS, OK); in TEST_P()
140 MockConnect connect_data(SYNCHRONOUS, OK); in TEST_P()
272 MockConnect connect_data(SYNCHRONOUS, OK); in TEST_P()
362 MockConnect connect_data(SYNCHRONOUS, OK); in RunIPPoolingTest()
512 MockConnect connect_data(SYNCHRONOUS, OK); in TEST_P()
Dspdy_proxy_client_socket_unittest.cc128 MockConnect connect_data_;
/external/chromium_org/jingle/glue/
Dproxy_resolving_client_socket_unittest.cc79 net::MockConnect(net::ASYNC, net::ERR_ADDRESS_UNREACHABLE)); in TEST_F()
92 socket_data2.set_connect_data(net::MockConnect(net::ASYNC, net::OK)); in TEST_F()
Dfake_ssl_client_socket_unittest.cc99 void SetData(const net::MockConnect& mock_connect, in SetData()
134 net::MockConnect mock_connect(mode, net::OK); in RunSuccessfulHandshakeTest()
196 net::MockConnect mock_connect(mode, net::OK); in RunUnsuccessfulHandshakeTestHelper()
Dchrome_async_socket_unittest.cc350 net::MockConnect(net::SYNCHRONOUS, net::OK)); in DoOpenClosed()
539 net::MockConnect(net::ASYNC, net::OK)); in TEST_F()
561 net::MockConnect(net::ASYNC, net::OK)); in TEST_F()
576 net::MockConnect(net::ASYNC, net::ERR_TIMED_OUT)); in TEST_F()
603 net::MockConnect(net::ASYNC, net::OK)); in TEST_F()
918 net::MockConnect(net::ASYNC, net::ERR_CERT_COMMON_NAME_INVALID), in TEST_F()
/external/chromium_org/extensions/browser/api/cast_channel/
Dcast_socket_unittest.cc89 explicit MockTCPSocket(const net::MockConnect& connect_data) : in MockTCPSocket()
137 net::MockConnect connect_data_;
211 tcp_connect_data_[0].reset(new net::MockConnect(mode, result)); in SetupTcp1Connect()
214 ssl_connect_data_[0].reset(new net::MockConnect(mode, result)); in SetupSsl1Connect()
217 tcp_connect_data_[1].reset(new net::MockConnect(mode, result)); in SetupTcp2Connect()
220 ssl_connect_data_[1].reset(new net::MockConnect(mode, result)); in SetupSsl2Connect()
291 net::MockConnect* connect_data = tcp_connect_data_[connect_index_].get(); in CreateTcpSocket()
299 net::MockConnect* connect_data = ssl_connect_data_[connect_index_].get(); in CreateSslSocket()
330 scoped_ptr<net::MockConnect> tcp_connect_data_[2];
331 scoped_ptr<net::MockConnect> ssl_connect_data_[2];
/external/chromium_org/net/websockets/
Dwebsocket_stream_test.cc73 socket_data->set_connect_data(MockConnect(SYNCHRONOUS, OK)); in BuildSocketData()
1094 MockConnect(SYNCHRONOUS, ERR_CONNECTION_REFUSED)); in TEST_F()
1109 MockConnect(ASYNC, ERR_CONNECTION_TIMED_OUT)); in TEST_F()
1121 socket_data->set_connect_data(MockConnect(SYNCHRONOUS, ERR_IO_PENDING)); in TEST_F()
1162 MockConnect(SYNCHRONOUS, ERR_CONNECTION_REFUSED)); in TEST_F()
1182 socket_data->set_connect_data(MockConnect(SYNCHRONOUS, ERR_IO_PENDING)); in TEST_F()
1201 socket_data->set_connect_data(MockConnect(SYNCHRONOUS, OK)); in TEST_F()
Dwebsocket_test_util.cc120 socket_data->set_connect_data(MockConnect(SYNCHRONOUS, OK)); in SetExpectations()
Dwebsocket_basic_stream_test.cc125 socket_data_->set_connect_data(MockConnect(SYNCHRONOUS, OK)); in MakeTransportSocket()
Dwebsocket_job_test.cc283 MockConnect connect_data(SYNCHRONOUS, OK); in MockHttpTransactionFactory()
/external/chromium_org/net/quic/
Dquic_network_transaction_unittest.cc302 MockConnect hanging_connect(SYNCHRONOUS, ERR_IO_PENDING); in AddHangingNonAlternateProtocolSocketData()
890 http_data.set_connect_data(MockConnect(ASYNC, ERR_SOCKET_NOT_CONNECTED)); in TEST_P()
976 quic_data.set_connect_data(MockConnect(SYNCHRONOUS, in TEST_P()
/external/chromium_org/net/url_request/
Durl_request_ftp_job_unittest.cc235 socket_data->set_connect_data(MockConnect(SYNCHRONOUS, OK)); in AddSocket()
/external/chromium_org/net/dns/
Ddns_transaction_unittest.cc119 provider_->set_connect_data(MockConnect(reads_[0].mode, OK)); in GetProvider()
/external/chromium_org/net/socket_stream/
Dsocket_stream_unittest.cc971 MockConnect mock_connect(ASYNC, ERR_CONNECTION_REFUSED); in TEST_F()

12