Home
last modified time | relevance | path

Searched refs:socket_data (Results 1 – 7 of 7) sorted by relevance

/external/chromium_org/net/quic/
Dquic_stream_factory_test.cc152 DeterministicSocketData socket_data(reads, arraysize(reads), NULL, 0); in GetSourcePortForNewSessionInner() local
153 socket_data.StopAfter(1); in GetSourcePortForNewSessionInner()
154 socket_factory_.AddSocketDataProvider(&socket_data); in GetSourcePortForNewSessionInner()
189 EXPECT_TRUE(socket_data.at_read_eof()); in GetSourcePortForNewSessionInner()
190 EXPECT_TRUE(socket_data.at_write_eof()); in GetSourcePortForNewSessionInner()
229 DeterministicSocketData socket_data(reads, arraysize(reads), NULL, 0); in TEST_P() local
230 socket_factory_.AddSocketDataProvider(&socket_data); in TEST_P()
231 socket_data.StopAfter(1); in TEST_P()
263 EXPECT_TRUE(socket_data.at_read_eof()); in TEST_P()
264 EXPECT_TRUE(socket_data.at_write_eof()); in TEST_P()
[all …]
/external/chromium_org/net/websockets/
Dwebsocket_test_util.cc115 scoped_ptr<DeterministicSocketData> socket_data( in SetExpectations() local
120 socket_data->set_connect_data(MockConnect(SYNCHRONOUS, OK)); in SetExpectations()
121 socket_data->SetStop(sequence); in SetExpectations()
122 AddRawExpectations(socket_data.Pass()); in SetExpectations()
126 scoped_ptr<DeterministicSocketData> socket_data) { in AddRawExpectations() argument
127 detail_->factory.AddSocketDataProvider(socket_data.get()); in AddRawExpectations()
128 detail_->socket_data_vector.push_back(socket_data.release()); in AddRawExpectations()
146 scoped_ptr<DeterministicSocketData> socket_data) { in AddRawExpectations() argument
147 maker_.AddRawExpectations(socket_data.Pass()); in AddRawExpectations()
Dwebsocket_stream_test.cc71 scoped_ptr<DeterministicSocketData> socket_data( in BuildSocketData() local
73 socket_data->set_connect_data(MockConnect(SYNCHRONOUS, OK)); in BuildSocketData()
74 socket_data->SetStop(reads_count + writes_count); in BuildSocketData()
75 return socket_data.Pass(); in BuildSocketData()
149 scoped_ptr<DeterministicSocketData> socket_data, in CreateAndConnectRawExpectations() argument
151 AddRawExpectations(socket_data.Pass()); in CreateAndConnectRawExpectations()
156 void AddRawExpectations(scoped_ptr<DeterministicSocketData> socket_data) { in AddRawExpectations() argument
157 url_request_context_host_.AddRawExpectations(socket_data.Pass()); in AddRawExpectations()
1092 scoped_ptr<DeterministicSocketData> socket_data(BuildNullSocketData()); in TEST_F() local
1093 socket_data->set_connect_data( in TEST_F()
[all …]
Dwebsocket_test_util.h86 void AddRawExpectations(scoped_ptr<DeterministicSocketData> socket_data);
119 void AddRawExpectations(scoped_ptr<DeterministicSocketData> socket_data);
/external/chromium_org/net/http/
Dhttp_stream_factory_impl_unittest.cc632 StaticSocketDataProvider socket_data; in TEST_P() local
633 socket_data.set_connect_data(MockConnect(ASYNC, OK)); in TEST_P()
634 session_deps.socket_factory->AddSocketDataProvider(&socket_data); in TEST_P()
686 StaticSocketDataProvider socket_data; in TEST_P() local
687 socket_data.set_connect_data(MockConnect(ASYNC, OK)); in TEST_P()
688 session_deps.socket_factory->AddSocketDataProvider(&socket_data); in TEST_P()
739 StaticSocketDataProvider socket_data; in TEST_P() local
740 socket_data.set_connect_data(MockConnect(ASYNC, OK)); in TEST_P()
741 session_deps.socket_factory->AddSocketDataProvider(&socket_data); in TEST_P()
766 StaticSocketDataProvider socket_data; in TEST_P() local
[all …]
/external/chromium_org/net/url_request/
Durl_request_ftp_job_unittest.cc233 DeterministicSocketData* socket_data = new DeterministicSocketData( in AddSocket() local
235 socket_data->set_connect_data(MockConnect(SYNCHRONOUS, OK)); in AddSocket()
236 socket_data->StopAfter(reads_size + writes_size - 1); in AddSocket()
237 socket_factory_.AddSocketDataProvider(socket_data); in AddSocket()
239 socket_data_.push_back(socket_data); in AddSocket()
244 DeterministicSocketData* socket_data(size_t index) { in socket_data() function in net::__anon20c2f1f30111::URLRequestFtpJobTest
277 socket_data(0)->RunFor(4); in TEST_F()
330 socket_data(0)->RunFor(5); in TEST_F()
375 socket_data(0)->RunFor(9); in TEST_F()
407 socket_data(0)->RunFor(5); in TEST_F()
[all …]
/external/chromium_org/net/socket/
Dsocks_client_socket_pool_unittest.cc201 StaticSocketDataProvider socket_data; in TEST_F() local
202 socket_data.set_connect_data(MockConnect(SYNCHRONOUS, in TEST_F()
204 transport_client_socket_factory_.AddSocketDataProvider(&socket_data); in TEST_F()
215 StaticSocketDataProvider socket_data; in TEST_F() local
216 socket_data.set_connect_data(MockConnect(ASYNC, ERR_CONNECTION_REFUSED)); in TEST_F()
217 transport_client_socket_factory_.AddSocketDataProvider(&socket_data); in TEST_F()
236 StaticSocketDataProvider socket_data( in TEST_F() local
238 socket_data.set_connect_data(MockConnect(SYNCHRONOUS, OK)); in TEST_F()
239 transport_client_socket_factory_.AddSocketDataProvider(&socket_data); in TEST_F()
255 StaticSocketDataProvider socket_data( in TEST_F() local
[all …]