Home
last modified time | relevance | path

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

123

/external/chromium_org/chrome/common/local_discovery/
Dservice_discovery_client_unittest.cc207 mdns_client_.StartListening(&socket_factory_); in ServiceDiscoveryTest()
228 net::MockMDnsSocketFactory socket_factory_; member in local_discovery::__anon0f1109910111::ServiceDiscoveryTest
247 socket_factory_.SimulateReceive(kSamplePacketPTR, sizeof(kSamplePacketPTR)); in TEST_F()
265 EXPECT_CALL(socket_factory_, OnSendTo(_)).Times(2); in TEST_F()
269 EXPECT_CALL(socket_factory_, OnSendTo(_)).Times(2); in TEST_F()
275 socket_factory_.SimulateReceive(kSamplePacketPTR, sizeof(kSamplePacketPTR)); in TEST_F()
294 socket_factory_.SimulateReceive(kSamplePacketPTR2, sizeof(kSamplePacketPTR2)); in TEST_F()
327 socket_factory_.SimulateReceive(kSamplePacketPTR, sizeof(kSamplePacketPTR)); in TEST_F()
335 socket_factory_.SimulateReceive(kSamplePacketSRV, sizeof(kSamplePacketSRV)); in TEST_F()
337 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::__anon92b2f9fe0111::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_org/net/socket/
Dssl_client_socket_pool_unittest.cc100 &socket_factory_), in SSLClientSocketPoolTest()
155 &socket_factory_, in CreatePool()
196 params.client_socket_factory = &socket_factory_; in CreateNetworkSession()
208 MockClientSocketFactory socket_factory_; member in net::__anon6d5e30540111::SSLClientSocketPoolTest
262 socket_factory_.AddSocketDataProvider(&data1); in TEST_P()
263 socket_factory_.AddSocketDataProvider(&data2); in TEST_P()
264 socket_factory_.AddSocketDataProvider(&data3); in TEST_P()
265 socket_factory_.AddSocketDataProvider(&data4); in TEST_P()
266 socket_factory_.AddSocketDataProvider(&data5); in TEST_P()
267 socket_factory_.AddSocketDataProvider(&data6); in TEST_P()
[all …]
Dclient_socket_pool_manager_impl.cc52 socket_factory_(socket_factory), in ClientSocketPoolManagerImpl()
71 socket_factory_, in ClientSocketPoolManagerImpl()
77 socket_factory_, in ClientSocketPoolManagerImpl()
238 socket_factory_, in GetSocketPoolForSOCKSProxy()
280 socket_factory_, in GetSocketPoolForHTTPProxy()
293 socket_factory_, in GetSocketPoolForHTTPProxy()
309 socket_factory_, in GetSocketPoolForHTTPProxy()
352 socket_factory_, in GetSocketPoolForSSLWithProxy()
Dssl_client_socket_openssl_unittest.cc88 : socket_factory_(ClientSocketFactory::GetDefaultFactory()), in SSLClientSocketOpenSSLClientAuthTest()
108 return socket_factory_->CreateSSLClientSocket(connection.Pass(), in CreateSSLClientSocket()
183 ClientSocketFactory* socket_factory_; member in net::__anonfbde27be0111::SSLClientSocketOpenSSLClientAuthTest
/external/chromium_org/net/quic/
Dquic_network_transaction_unittest.cc191 CreateSessionWithFactory(&socket_factory_, false); in CreateSession()
195 CreateSessionWithFactory(&socket_factory_, true); in CreateSessionWithNextProtos()
304 socket_factory_.AddSocketDataProvider(&hanging_data_); in AddHangingNonAlternateProtocolSocketData()
310 MockClientSocketFactory socket_factory_; member in net::test::QuicNetworkTransactionTest
345 mock_quic_data.AddDelayedSocketDataToFactory(&socket_factory_, 1); in TEST_P()
407 mock_quic_data.AddDelayedSocketDataToFactory(&socket_factory_, 1); in TEST_P()
424 mock_quic_data.AddDelayedSocketDataToFactory(&socket_factory_, 0); in TEST_P()
449 socket_factory_.AddSocketDataProvider(&data); in TEST_P()
451 socket_factory_.AddSSLSocketDataProvider(&ssl); in TEST_P()
469 socket_factory_.AddSocketDataProvider(&http_data); in TEST_P()
[all …]
Dquic_stream_factory_test.cc104 &socket_factory_, in QuicStreamFactoryTest()
147 size_t socket_count = socket_factory_.udp_client_sockets().size(); in GetSourcePortForNewSessionInner()
154 socket_factory_.AddSocketDataProvider(&socket_data); in GetSourcePortForNewSessionInner()
173 if (socket_count + 1 != socket_factory_.udp_client_sockets().size()) { in GetSourcePortForNewSessionInner()
179 socket_factory_. in GetSourcePortForNewSessionInner()
202 DeterministicMockClientSocketFactory socket_factory_; member in net::test::QuicStreamFactoryTest
230 socket_factory_.AddSocketDataProvider(&socket_data); in TEST_P()
272 socket_factory_.AddSocketDataProvider(&socket_data); in TEST_P()
301 socket_factory_.AddSocketDataProvider(&socket_data); in TEST_P()
337 socket_factory_.AddSocketDataProvider(&socket_data1); in TEST_P()
[all …]
Dquic_client_session_test.cc63 socket_factory_.AddSocketDataProvider(&socket_data_); in GetSocket()
64 return socket_factory_.CreateDatagramClientSocket( in GetSocket()
79 MockClientSocketFactory socket_factory_; member in net::test::__anon89cb11ff0111::QuicClientSessionTest
/external/chromium_org/remoting/protocol/
Dchromium_socket_factory_unittest.cc21 socket_factory_.reset(new ChromiumPacketSocketFactory()); in SetUp()
23 socket_.reset(socket_factory_->CreateUdpSocket( in SetUp()
63 scoped_ptr<rtc::PacketSocketFactory> socket_factory_; member in remoting::protocol::ChromiumSocketFactoryTest
72 socket_factory_->CreateUdpSocket( in TEST_F()
89 socket_.reset(socket_factory_->CreateUdpSocket( in TEST_F()
99 socket_factory_->CreateUdpSocket( in TEST_F()
/external/chromium_org/third_party/libjingle/source/talk/p2p/base/
Dbasicpacketsocketfactory.cc46 socket_factory_(NULL) { in BasicPacketSocketFactory()
51 socket_factory_(NULL) { in BasicPacketSocketFactory()
57 socket_factory_(socket_factory) { in BasicPacketSocketFactory()
217 return socket_factory_; in socket_factory()
Dstunport_unittest.cc63 socket_factory_(rtc::Thread::Current()), in StunPortTest()
83 rtc::Thread::Current(), &socket_factory_, &network_, in CreateStunPort()
94 socket_.reset(socket_factory_.CreateUdpSocket( in CreateSharedStunPort()
99 rtc::Thread::Current(), &socket_factory_, in CreateSharedStunPort()
158 rtc::BasicPacketSocketFactory socket_factory_; member in StunPortTest
Dportallocatorsessionproxy_unittest.cc105 : socket_factory_(rtc::Thread::Current()), in PortAllocatorSessionProxyTest()
108 rtc::Thread::Current(), &socket_factory_, in PortAllocatorSessionProxyTest()
128 rtc::BasicPacketSocketFactory socket_factory_; member in PortAllocatorSessionProxyTest
Drelayport_unittest.cc70 socket_factory_(rtc::Thread::Current()), in RelayPortTest()
73 relay_port_(cricket::RelayPort::Create(main_, &socket_factory_, in RelayPortTest()
278 rtc::BasicPacketSocketFactory socket_factory_; member in RelayPortTest
Dturnport_unittest.cc116 socket_factory_(rtc::Thread::Current()), in TurnPortTest()
195 turn_port_.reset(TurnPort::Create(main_, &socket_factory_, &network_, in CreateTurnPort()
214 socket_.reset(socket_factory_.CreateUdpSocket( in CreateSharedTurnPort()
223 main_, &socket_factory_, &network_, socket_.get(), in CreateSharedTurnPort()
245 udp_port_.reset(UDPPort::Create(main_, &socket_factory_, &network_, in CreateUdpPort()
343 rtc::BasicPacketSocketFactory socket_factory_; member in TurnPortTest
/external/chromium_org/remoting/test/
Dfake_port_allocator.h26 FakePacketSocketFactory* socket_factory() { return socket_factory_.get(); } in socket_factory()
40 scoped_ptr<FakePacketSocketFactory> socket_factory_; variable
/external/chromium_org/third_party/libjingle/source/talk/p2p/client/
Dbasicportallocator.h84 rtc::PacketSocketFactory* socket_factory() { return socket_factory_; } in socket_factory()
107 rtc::PacketSocketFactory* socket_factory_; variable
128 rtc::PacketSocketFactory* socket_factory() { return socket_factory_; } in socket_factory()
208 rtc::PacketSocketFactory* socket_factory_; variable
Dconnectivitychecker_unittest.cc223 socket_factory_ = in CreateSocketFactory()
225 return socket_factory_; in CreateSocketFactory()
239 socket_factory_, in CreateStunPort()
256 socket_factory_, in CreateRelayPort()
282 rtc::BasicPacketSocketFactory* socket_factory_; member in cricket::ConnectivityCheckerForTest
Dbasicportallocator.cc172 socket_factory_(socket_factory) { in BasicPortAllocator()
173 ASSERT(socket_factory_ != NULL); in BasicPortAllocator()
180 socket_factory_(NULL) { in BasicPortAllocator()
189 socket_factory_(socket_factory), in BasicPortAllocator()
191 ASSERT(socket_factory_ != NULL); in BasicPortAllocator()
202 socket_factory_(NULL), in BasicPortAllocator()
244 socket_factory_(allocator->socket_factory()), in BasicPortAllocatorSession()
278 if (!socket_factory_) { in StartGettingPorts()
281 socket_factory_ = owned_socket_factory_.get(); in StartGettingPorts()
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/
Dportallocatorfactory.cc50 socket_factory_(new rtc::BasicPacketSocketFactory(worker_thread)) { in PortAllocatorFactory()
66 network_manager_.get(), socket_factory_.get(), stun_hosts)); in CreatePortAllocator()
/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.cc352 socket_factory_.reset(new TestSocketFactory()); in ConfigureFactory()
355 DnsSocketPool::CreateNull(socket_factory_.get()), in ConfigureFactory()
362 CHECK(socket_factory_.get()); in AddSocketData()
364 socket_factory_->AddSocketDataProvider(data->GetProvider()); in AddSocketData()
378 CHECK(socket_factory_.get()); in AddQueryAndResponse()
437 ASSERT_EQ(num_attempts, socket_factory_->remote_endpoints_.size()); in CheckServerOrder()
439 EXPECT_EQ(socket_factory_->remote_endpoints_[i], in CheckServerOrder()
476 scoped_ptr<TestSocketFactory> socket_factory_; member in net::__anon4bc59b490111::DnsTransactionTest
862 socket_factory_->fail_next_socket_ = true; in TEST_F()
875 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/content/renderer/media/webrtc/
Dpeer_connection_dependency_factory.cc124 socket_factory_(socket_factory), in P2PPortAllocatorFactory()
157 socket_factory_, config); in CreatePortAllocator()
168 rtc::PacketSocketFactory* socket_factory_; member in content::P2PPortAllocatorFactory
282 DCHECK(!socket_factory_); in CreatePeerConnectionFactory()
310 socket_factory_.reset( in CreatePeerConnectionFactory()
394 socket_factory_.get(), in CreatePeerConnection()
/external/chromium_org/net/url_request/
Durl_request_http_job_unittest.cc197 socket_factory_.AddSocketDataProvider(&socket_data_); in URLRequestHttpJobWebSocketTestBase()
198 context_.set_client_socket_factory(&socket_factory_); in URLRequestHttpJobWebSocketTestBase()
204 MockClientSocketFactory socket_factory_; member in net::__anon698204690111::URLRequestHttpJobWebSocketTestBase
/external/chromium_org/chrome/test/chromedriver/chrome/
Ddevtools_http_client.cc63 socket_factory_(socket_factory), in DevToolsHttpClient()
97 socket_factory_, in CreateClient()
181 socket_factory_, in CloseFrontends()

123