• Home
  • Raw
  • Download

Lines Matching refs:loopback

231 void SocketTest::ConnectInternal(const IPAddress& loopback) {  in ConnectInternal()  argument
237 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectInternal()
244 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectInternal()
246 EXPECT_EQ(0, server->Bind(SocketAddress(loopback, 0))); in ConnectInternal()
285 void SocketTest::ConnectWithDnsLookupInternal(const IPAddress& loopback, in ConnectWithDnsLookupInternal() argument
292 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectWithDnsLookupInternal()
297 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectWithDnsLookupInternal()
299 EXPECT_EQ(0, server->Bind(SocketAddress(loopback, 0))); in ConnectWithDnsLookupInternal()
334 void SocketTest::ConnectFailInternal(const IPAddress& loopback) { in ConnectFailInternal() argument
340 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectFailInternal()
345 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectFailInternal()
347 EXPECT_EQ(0, server->Bind(SocketAddress(loopback, 0))); in ConnectFailInternal()
352 SocketAddress bogus_addr(loopback, 65535); in ConnectFailInternal()
367 void SocketTest::ConnectWithDnsLookupFailInternal(const IPAddress& loopback) { in ConnectWithDnsLookupFailInternal() argument
373 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectWithDnsLookupFailInternal()
378 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectWithDnsLookupFailInternal()
380 EXPECT_EQ(0, server->Bind(SocketAddress(loopback, 0))); in ConnectWithDnsLookupFailInternal()
408 void SocketTest::ConnectWithClosedSocketInternal(const IPAddress& loopback) { in ConnectWithClosedSocketInternal() argument
411 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectWithClosedSocketInternal()
412 EXPECT_EQ(0, server->Bind(SocketAddress(loopback, 0))); in ConnectWithClosedSocketInternal()
417 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectWithClosedSocketInternal()
426 void SocketTest::ConnectWhileNotClosedInternal(const IPAddress& loopback) { in ConnectWhileNotClosedInternal() argument
430 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectWhileNotClosedInternal()
432 EXPECT_EQ(0, server->Bind(SocketAddress(loopback, 0))); in ConnectWhileNotClosedInternal()
436 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectWhileNotClosedInternal()
468 void SocketTest::ServerCloseDuringConnectInternal(const IPAddress& loopback) { in ServerCloseDuringConnectInternal() argument
473 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ServerCloseDuringConnectInternal()
478 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ServerCloseDuringConnectInternal()
480 EXPECT_EQ(0, server->Bind(SocketAddress(loopback, 0))); in ServerCloseDuringConnectInternal()
496 void SocketTest::ClientCloseDuringConnectInternal(const IPAddress& loopback) { in ClientCloseDuringConnectInternal() argument
502 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ClientCloseDuringConnectInternal()
507 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ClientCloseDuringConnectInternal()
509 EXPECT_EQ(0, server->Bind(SocketAddress(loopback, 0))); in ClientCloseDuringConnectInternal()
534 void SocketTest::ServerCloseInternal(const IPAddress& loopback) { in ServerCloseInternal() argument
540 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ServerCloseInternal()
545 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ServerCloseInternal()
547 EXPECT_EQ(0, server->Bind(SocketAddress(loopback, 0))); in ServerCloseInternal()
607 void SocketTest::CloseInClosedCallbackInternal(const IPAddress& loopback) { in CloseInClosedCallbackInternal() argument
614 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in CloseInClosedCallbackInternal()
620 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in CloseInClosedCallbackInternal()
622 EXPECT_EQ(0, server->Bind(SocketAddress(loopback, 0))); in CloseInClosedCallbackInternal()
659 void SocketTest::SocketServerWaitInternal(const IPAddress& loopback) { in SocketServerWaitInternal() argument
665 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in SocketServerWaitInternal()
667 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in SocketServerWaitInternal()
670 EXPECT_EQ(0, server->Bind(SocketAddress(loopback, 0))); in SocketServerWaitInternal()
709 void SocketTest::TcpInternal(const IPAddress& loopback, in TcpInternal() argument
717 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in TcpInternal()
722 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in TcpInternal()
724 EXPECT_EQ(0, server->Bind(SocketAddress(loopback, 0))); in TcpInternal()
837 void SocketTest::SingleFlowControlCallbackInternal(const IPAddress& loopback) { in SingleFlowControlCallbackInternal() argument
843 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in SingleFlowControlCallbackInternal()
848 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in SingleFlowControlCallbackInternal()
850 EXPECT_EQ(0, server->Bind(SocketAddress(loopback, 0))); in SingleFlowControlCallbackInternal()
906 void SocketTest::UdpInternal(const IPAddress& loopback) { in UdpInternal() argument
907 SocketAddress empty = EmptySocketAddressWithFamily(loopback.family()); in UdpInternal()
909 AsyncSocket* socket = ss_->CreateAsyncSocket(loopback.family(), SOCK_DGRAM); in UdpInternal()
911 EXPECT_EQ(0, socket->Bind(SocketAddress(loopback, 0))); in UdpInternal()
952 void SocketTest::UdpReadyToSend(const IPAddress& loopback) { in UdpReadyToSend() argument
953 SocketAddress empty = EmptySocketAddressWithFamily(loopback.family()); in UdpReadyToSend()
958 (loopback.family() == AF_INET6) ? "2001:db8::1" : "192.0.2.0"; in UdpReadyToSend()
998 void SocketTest::GetSetOptionsInternal(const IPAddress& loopback) { in GetSetOptionsInternal() argument
1000 ss_->CreateAsyncSocket(loopback.family(), SOCK_DGRAM)); in GetSetOptionsInternal()
1001 socket->Bind(SocketAddress(loopback, 0)); in GetSetOptionsInternal()
1041 void SocketTest::SocketRecvTimestamp(const IPAddress& loopback) { in SocketRecvTimestamp() argument
1043 ss_->CreateSocket(loopback.family(), SOCK_DGRAM)); in SocketRecvTimestamp()
1044 EXPECT_EQ(0, socket->Bind(SocketAddress(loopback, 0))); in SocketRecvTimestamp()