Home
last modified time | relevance | path

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

/external/chromium/net/socket/
Dsocks_client_socket_pool_unittest.cc100 data.data_provider()->set_connect_data(MockConnect(false, 0)); in TEST_F()
130 socket_data->set_connect_data(MockConnect(false, ERR_CONNECTION_REFUSED)); in TEST_F()
143 socket_data->set_connect_data(MockConnect(true, ERR_CONNECTION_REFUSED)); in TEST_F()
165 socket_data->set_connect_data(MockConnect(false, 0)); in TEST_F()
184 socket_data->set_connect_data(MockConnect(false, 0)); in TEST_F()
236 data.data_provider()->set_connect_data(MockConnect(false, 0)); in TEST_F()
241 data2.data_provider()->set_connect_data(MockConnect(false, 0)); in TEST_F()
Dsocket_test_util.h53 struct MockConnect { struct
55 MockConnect() : async(true), result(OK) { } in MockConnect() function
56 MockConnect(bool a, int r) : async(a), result(r) { } in MockConnect() function
152 MockConnect connect_data() const { return connect_; } in connect_data()
153 void set_connect_data(const MockConnect& connect) { connect_ = connect; } in set_connect_data()
156 MockConnect connect_;
249 MockConnect connect;
281 DelayedSocketData(const MockConnect& connect, int write_delay,
327 OrderedSocketData(const MockConnect& connect,
Dssl_client_socket_pool_unittest.cc172 data.set_connect_data(MockConnect(false, ERR_CONNECTION_FAILED)); in TEST_F()
189 data.set_connect_data(MockConnect(true, ERR_CONNECTION_FAILED)); in TEST_F()
212 data.set_connect_data(MockConnect(false, OK)); in TEST_F()
419 data.set_connect_data(MockConnect(false, ERR_CONNECTION_FAILED)); in TEST_F()
438 data.set_connect_data(MockConnect(true, ERR_CONNECTION_FAILED)); in TEST_F()
461 data.set_connect_data(MockConnect(false, OK)); in TEST_F()
504 data.set_connect_data(MockConnect(false, ERR_CONNECTION_FAILED)); in TEST_F()
523 data.set_connect_data(MockConnect(true, ERR_CONNECTION_FAILED)); in TEST_F()
557 data.set_connect_data(MockConnect(false, OK)); in TEST_F()
Ddeterministic_socket_data_unittest.cc51 MockConnect connect_data_;
Dsocket_test_util.cc258 const MockConnect& connect, int write_delay, MockRead* reads, in DelayedSocketData()
309 const MockConnect& connect, in OrderedSocketData()
/external/chromium/net/spdy/
Dspdy_session_unittest.cc111 MockConnect connect_data(false, OK); in TEST_F()
172 MockConnect connect_data(false, OK); in TEST_F()
308 MockConnect connect_data(false, OK); in TEST_F()
399 MockConnect connect_data(false, OK); in TEST_F()
497 MockConnect connect_data(false, OK); in TEST_F()
582 MockConnect connect_data(false, OK); in IPPoolingTest()
Dspdy_stream_unittest.cc189 MockConnect connect_data(false, OK); in TEST_F()
Dspdy_proxy_client_socket_unittest.cc111 MockConnect connect_data_;
Dspdy_network_transaction_unittest.cc244 MockConnect never_finishing_connect(false, ERR_IO_PENDING); in AddData()
273 MockConnect never_finishing_connect(false, ERR_IO_PENDING); in AddDeterministicData()
736 MockConnect never_finishing_connect(false, ERR_IO_PENDING); in TEST_P()
823 MockConnect never_finishing_connect(true, ERR_IO_PENDING); in TEST_P()
/external/chromium/net/http/
Dhttp_proxy_client_socket_pool_unittest.cc158 data_->set_connect_data(MockConnect(async, 0)); in Initialize()
368 data_->set_connect_data(MockConnect(true, ERR_CONNECTION_CLOSED)); in TEST_P()
387 data_->set_connect_data(MockConnect(true, OK)); in TEST_P()
412 data_->set_connect_data(MockConnect(true, OK)); in TEST_P()
Dhttp_network_transaction_unittest.cc6497 MockConnect mock_connect(true, ERR_CONNECTION_REFUSED); in TEST_F()
6590 MockConnect never_finishing_connect(false, ERR_IO_PENDING); in TEST_F()
6658 MockConnect never_finishing_connect(false, ERR_IO_PENDING); in TEST_F()
6781 MockConnect never_finishing_connect(false, ERR_IO_PENDING); in TEST_F()
6929 MockConnect never_finishing_connect(false, ERR_IO_PENDING); in TEST_F()
7743 bug37454_connection.set_connect_data(MockConnect(true, ERR_UNEXPECTED)); in TEST_F()
8016 MockConnect never_finishing_connect(false, ERR_IO_PENDING); in TEST_F()
8070 MockConnect mock_connect(false, OK); in TEST_F()