Home
last modified time | relevance | path

Searched refs:socket_factory_ (Results 1 – 25 of 81) sorted by relevance

1234

/external/chromium_org/chrome/utility/local_discovery/
Dservice_discovery_client_unittest.cc187 mdns_client_.StartListening(&socket_factory_); in ServiceDiscoveryTest()
208 net::MockMDnsSocketFactory socket_factory_; member in local_discovery::__anon6aed384f0111::ServiceDiscoveryTest
227 socket_factory_.SimulateReceive(kSamplePacketPTR, sizeof(kSamplePacketPTR)); in TEST_F()
245 EXPECT_CALL(socket_factory_, OnSendTo(_)).Times(2); in TEST_F()
249 EXPECT_CALL(socket_factory_, OnSendTo(_)).Times(2); in TEST_F()
255 socket_factory_.SimulateReceive(kSamplePacketPTR, sizeof(kSamplePacketPTR)); in TEST_F()
274 socket_factory_.SimulateReceive(kSamplePacketPTR2, sizeof(kSamplePacketPTR2)); in TEST_F()
307 socket_factory_.SimulateReceive(kSamplePacketPTR, sizeof(kSamplePacketPTR)); in TEST_F()
315 socket_factory_.SimulateReceive(kSamplePacketSRV, sizeof(kSamplePacketSRV)); in TEST_F()
317 socket_factory_.SimulateReceive(kSamplePacketTXT, sizeof(kSamplePacketTXT)); in TEST_F()
[all …]
Dlocal_domain_resolver_unittest.cc64 mdns_client_.StartListening(&socket_factory_); in SetUp()
96 net::MockMDnsSocketFactory socket_factory_; member in local_discovery::__anondcc9717c0111::LocalDomainResolverTest
107 EXPECT_CALL(socket_factory_, OnSendTo(_)).Times(2); // Twice per query in TEST_F()
113 socket_factory_.SimulateReceive(kSamplePacketA, sizeof(kSamplePacketA)); in TEST_F()
122 EXPECT_CALL(socket_factory_, OnSendTo(_)).Times(2); // Twice per query in TEST_F()
128 socket_factory_.SimulateReceive(kSamplePacketAAAA, sizeof(kSamplePacketAAAA)); in TEST_F()
137 EXPECT_CALL(socket_factory_, OnSendTo(_)).Times(4); // Twice per query in TEST_F()
141 socket_factory_.SimulateReceive(kSamplePacketAAAA, sizeof(kSamplePacketAAAA)); in TEST_F()
155 EXPECT_CALL(socket_factory_, OnSendTo(_)).Times(4); // Twice per query in TEST_F()
161 socket_factory_.SimulateReceive(kSamplePacketAAAA, sizeof(kSamplePacketAAAA)); in TEST_F()
[all …]
/external/chromium/net/socket/
Dssl_client_socket_pool_unittest.cc53 &socket_factory_), in SSLClientSocketPoolTest()
97 &socket_factory_, in CreatePool()
137 params.client_socket_factory = &socket_factory_; in CreateNetworkSession()
143 MockClientSocketFactory socket_factory_; member in net::__anona52fa1e00111::SSLClientSocketPoolTest
173 socket_factory_.AddSocketDataProvider(&data); in TEST_F()
190 socket_factory_.AddSocketDataProvider(&data); in TEST_F()
213 socket_factory_.AddSocketDataProvider(&data); in TEST_F()
215 socket_factory_.AddSSLSocketDataProvider(&ssl); in TEST_F()
232 socket_factory_.AddSocketDataProvider(&data); in TEST_F()
234 socket_factory_.AddSSLSocketDataProvider(&ssl); in TEST_F()
[all …]
Dclient_socket_pool_manager.cc258 socket_factory_(socket_factory), in ClientSocketPoolManager()
271 socket_factory_, in ClientSocketPoolManager()
419 socket_factory_, in GetSocketPoolForSOCKSProxy()
458 socket_factory_, in GetSocketPoolForHTTPProxy()
470 socket_factory_, in GetSocketPoolForHTTPProxy()
486 socket_factory_, in GetSocketPoolForHTTPProxy()
523 socket_factory_, in GetSocketPoolForSSLWithProxy()
/external/chromium_org/net/socket/
Dssl_client_socket_pool_unittest.cc95 &socket_factory_), in SSLClientSocketPoolTest()
145 &socket_factory_, in CreatePool()
185 params.client_socket_factory = &socket_factory_; in CreateNetworkSession()
197 MockClientSocketFactory socket_factory_; member in net::__anonb81824e70111::SSLClientSocketPoolTest
236 socket_factory_.AddSocketDataProvider(&data); in TEST_P()
254 socket_factory_.AddSocketDataProvider(&data); in TEST_P()
277 socket_factory_.AddSocketDataProvider(&data); in TEST_P()
279 socket_factory_.AddSSLSocketDataProvider(&ssl); in TEST_P()
306 socket_factory_.AddSocketDataProvider(&data); in TEST_P()
308 socket_factory_.AddSSLSocketDataProvider(&ssl); in TEST_P()
[all …]
Dclient_socket_pool_manager_impl.cc49 socket_factory_(socket_factory), in ClientSocketPoolManagerImpl()
64 socket_factory_, in ClientSocketPoolManagerImpl()
223 socket_factory_, in GetSocketPoolForSOCKSProxy()
265 socket_factory_, in GetSocketPoolForHTTPProxy()
278 socket_factory_, in GetSocketPoolForHTTPProxy()
294 socket_factory_, in GetSocketPoolForHTTPProxy()
335 socket_factory_, in GetSocketPoolForSSLWithProxy()
/external/chromium_org/remoting/jingle_glue/
Dchromium_socket_factory_unittest.cc20 socket_factory_.reset(new ChromiumPacketSocketFactory()); in SetUp()
22 socket_.reset(socket_factory_->CreateUdpSocket( in SetUp()
44 scoped_ptr<talk_base::PacketSocketFactory> socket_factory_; member in remoting::ChromiumSocketFactoryTest
59 sending_socket.reset(socket_factory_->CreateUdpSocket( in TEST_F()
88 socket_.reset(socket_factory_->CreateUdpSocket( in TEST_F()
/external/chromium_org/net/quic/
Dquic_network_transaction_unittest.cc222 CreateSessionWithFactory(&socket_factory_); in CreateSession()
314 socket_factory_.AddSocketDataProvider(&hanging_data_); in AddHangingNonAlternateProtocolSocketData()
319 MockClientSocketFactory socket_factory_; member in net::test::QuicNetworkTransactionTest
365 socket_factory_.AddSocketDataProvider(&quic_data); in TEST_F()
420 socket_factory_.AddSocketDataProvider(&quic_data); in TEST_F()
445 socket_factory_.AddSocketDataProvider(&data); in TEST_F()
447 socket_factory_.AddSSLSocketDataProvider(&ssl); in TEST_F()
467 socket_factory_.AddSocketDataProvider(&http_data); in TEST_F()
492 socket_factory_.AddSocketDataProvider(&quic_data); in TEST_F()
520 socket_factory_.AddSocketDataProvider(&http_data); in TEST_F()
[all …]
Dquic_stream_factory_test.cc69 factory_(&host_resolver_, &socket_factory_, in QuicStreamFactoryTest()
160 DeterministicMockClientSocketFactory socket_factory_; member in net::test::QuicStreamFactoryTest
182 socket_factory_.AddSocketDataProvider(&socket_data); in TEST_F()
215 socket_factory_.AddSocketDataProvider(&socket_data); in TEST_F()
232 socket_factory_.AddSocketDataProvider(&socket_data); in TEST_F()
235 socket_factory_.AddSocketDataProvider(&socket_data2); in TEST_F()
291 socket_factory_.AddSocketDataProvider(&socket_data); in TEST_F()
339 socket_factory_.AddSocketDataProvider(&socket_data); in TEST_F()
359 socket_factory_.AddSocketDataProvider(&socket_data); in TEST_F()
385 socket_factory_.AddSocketDataProvider(&socket_data); in TEST_F()
[all …]
Dquic_client_session_test.cc81 socket_factory_.AddSocketDataProvider(&socket_data_); in GetSocket()
82 return socket_factory_.CreateDatagramClientSocket( in GetSocket()
98 MockClientSocketFactory socket_factory_; member in net::test::__anonebb9bd320111::QuicClientSessionTest
/external/chromium_org/third_party/libjingle/source/talk/p2p/base/
Dstunport_unittest.cc58 socket_factory_(talk_base::Thread::Current()), in StunPortTest()
70 talk_base::Thread::Current(), &socket_factory_, &network_, in CreateStunPort()
81 socket_.reset(socket_factory_.CreateUdpSocket( in CreateSharedStunPort()
86 talk_base::Thread::Current(), &socket_factory_, in CreateSharedStunPort()
137 talk_base::BasicPacketSocketFactory socket_factory_; member in StunPortTest
Dbasicpacketsocketfactory.cc45 socket_factory_(NULL) { in BasicPacketSocketFactory()
50 socket_factory_(NULL) { in BasicPacketSocketFactory()
56 socket_factory_(socket_factory) { in BasicPacketSocketFactory()
206 return socket_factory_; in socket_factory()
Dportallocatorsessionproxy_unittest.cc105 : socket_factory_(talk_base::Thread::Current()), in PortAllocatorSessionProxyTest()
108 talk_base::Thread::Current(), &socket_factory_, in PortAllocatorSessionProxyTest()
128 talk_base::BasicPacketSocketFactory socket_factory_; member in PortAllocatorSessionProxyTest
Drelayport_unittest.cc69 socket_factory_(talk_base::Thread::Current()), in RelayPortTest()
72 relay_port_(cricket::RelayPort::Create(main_, &socket_factory_, in RelayPortTest()
273 talk_base::BasicPacketSocketFactory socket_factory_; member in RelayPortTest
/external/chromium/third_party/libjingle/source/talk/base/
Dbasicpacketsocketfactory.cc41 socket_factory_(NULL) { in BasicPacketSocketFactory()
47 socket_factory_(socket_factory) { in BasicPacketSocketFactory()
156 return socket_factory_; in socket_factory()
/external/chromium_org/chrome/renderer/media/
Dcast_session_delegate.cc37 socket_factory_ = socket_factory.Pass(); in SetSocketFactory()
69 if (!socket_factory_) { in StartSending()
74 socket_ = socket_factory_->Create(); in StartSending()
/external/chromium_org/third_party/libjingle/source/talk/p2p/client/
Dbasicportallocator.h83 talk_base::PacketSocketFactory* socket_factory() { return socket_factory_; } in socket_factory()
106 talk_base::PacketSocketFactory* socket_factory_; variable
127 talk_base::PacketSocketFactory* socket_factory() { return socket_factory_; } in socket_factory()
206 talk_base::PacketSocketFactory* socket_factory_; variable
Dconnectivitychecker_unittest.cc201 socket_factory_ = in CreateSocketFactory()
203 return socket_factory_; in CreateSocketFactory()
216 return new FakeStunPort(worker(), socket_factory_, in CreateStunPort()
225 return new FakeRelayPort(worker(), socket_factory_, in CreateRelayPort()
244 talk_base::BasicPacketSocketFactory* socket_factory_; member in cricket::ConnectivityCheckerForTest
Dbasicportallocator.cc175 socket_factory_(socket_factory) { in BasicPortAllocator()
176 ASSERT(socket_factory_ != NULL); in BasicPortAllocator()
183 socket_factory_(NULL) { in BasicPortAllocator()
192 socket_factory_(socket_factory), in BasicPortAllocator()
194 ASSERT(socket_factory_ != NULL); in BasicPortAllocator()
205 socket_factory_(NULL), in BasicPortAllocator()
244 socket_factory_(allocator->socket_factory()), in BasicPortAllocatorSession()
273 if (!socket_factory_) { in StartGettingPorts()
276 socket_factory_ = owned_socket_factory_.get(); in StartGettingPorts()
/external/chromium/net/http/
Dhttp_proxy_client_socket_pool_unittest.cc61 &socket_factory_), in HttpProxyClientSocketPoolTest()
72 &socket_factory_, in HttpProxyClientSocketPoolTest()
144 return socket_factory_; in socket_factory()
161 socket_factory_.AddSocketDataProvider(data_.get()); in Initialize()
168 socket_factory_.AddSSLSocketDataProvider(ssl_data_.get()); in Initialize()
184 params.client_socket_factory = &socket_factory_; in CreateNetworkSession()
196 DeterministicMockClientSocketFactory socket_factory_; member in net::HttpProxyClientSocketPoolTest
/external/chromium_org/net/dns/
Ddns_socket_pool.cc42 : socket_factory_(socket_factory), in DnsSocketPool()
65 socket_factory_->CreateTransportClientSocket( in CreateTCPSocket()
76 socket = socket_factory_->CreateDatagramClientSocket( in CreateConnectedSocket()
Ddns_transaction_unittest.cc348 socket_factory_.reset(new TestSocketFactory()); in ConfigureFactory()
351 DnsSocketPool::CreateNull(socket_factory_.get()), in ConfigureFactory()
358 CHECK(socket_factory_.get()); in AddSocketData()
360 socket_factory_->AddSocketDataProvider(data->GetProvider()); in AddSocketData()
374 CHECK(socket_factory_.get()); in AddQueryAndResponse()
433 ASSERT_EQ(num_attempts, socket_factory_->remote_endpoints_.size()); in CheckServerOrder()
435 EXPECT_EQ(socket_factory_->remote_endpoints_[i], in CheckServerOrder()
472 scoped_ptr<TestSocketFactory> socket_factory_; member in net::__anone2222c1c0111::DnsTransactionTest
858 socket_factory_->fail_next_socket_ = true; in TEST_F()
871 socket_factory_->fail_next_socket_ = true; in TEST_F()
Daddress_sorter_posix_unittest.cc145 AddressSorterPosixTest() : sorter_(&socket_factory_) {} in AddressSorterPosixTest()
148 socket_factory_.AddMapping(ParseIP(dst), ParseIP(src)); in AddMapping()
185 TestSocketFactory socket_factory_; member in net::AddressSorterPosixTest
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/
Dportallocatorfactory.cc52 socket_factory_(new talk_base::BasicPacketSocketFactory(worker_thread)) { in PortAllocatorFactory()
72 network_manager_.get(), socket_factory_.get(), stun_addr)); in CreatePortAllocator()
/external/chromium_org/net/url_request/
Durl_request_http_job_unittest.cc140 socket_factory_.AddSocketDataProvider(&socket_data_); in URLRequestHttpJobWebSocketTestBase()
141 context_.set_client_socket_factory(&socket_factory_); in URLRequestHttpJobWebSocketTestBase()
147 MockClientSocketFactory socket_factory_; member in net::__anon6bb8141c0111::URLRequestHttpJobWebSocketTestBase

1234