| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  *  Copyright 2009 The WebRTC Project Authors. All rights reserved. | 2  *  Copyright 2009 The WebRTC Project Authors. All rights reserved. | 
| 3  * | 3  * | 
| 4  *  Use of this source code is governed by a BSD-style license | 4  *  Use of this source code is governed by a BSD-style license | 
| 5  *  that can be found in the LICENSE file in the root of the source | 5  *  that can be found in the LICENSE file in the root of the source | 
| 6  *  tree. An additional intellectual property rights grant can be found | 6  *  tree. An additional intellectual property rights grant can be found | 
| 7  *  in the file PATENTS.  All contributing project authors may | 7  *  in the file PATENTS.  All contributing project authors may | 
| 8  *  be found in the AUTHORS file in the root of the source tree. | 8  *  be found in the AUTHORS file in the root of the source tree. | 
| 9  */ | 9  */ | 
| 10 | 10 | 
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 45   void TestServerCloseIPv6(); | 45   void TestServerCloseIPv6(); | 
| 46   void TestCloseInClosedCallbackIPv4(); | 46   void TestCloseInClosedCallbackIPv4(); | 
| 47   void TestCloseInClosedCallbackIPv6(); | 47   void TestCloseInClosedCallbackIPv6(); | 
| 48   void TestSocketServerWaitIPv4(); | 48   void TestSocketServerWaitIPv4(); | 
| 49   void TestSocketServerWaitIPv6(); | 49   void TestSocketServerWaitIPv6(); | 
| 50   void TestTcpIPv4(); | 50   void TestTcpIPv4(); | 
| 51   void TestTcpIPv6(); | 51   void TestTcpIPv6(); | 
| 52   void TestSingleFlowControlCallbackIPv4(); | 52   void TestSingleFlowControlCallbackIPv4(); | 
| 53   void TestSingleFlowControlCallbackIPv6(); | 53   void TestSingleFlowControlCallbackIPv6(); | 
| 54   void TestUdpIPv4(); | 54   void TestUdpIPv4(); | 
|  | 55   void TestUdpIpv4Interval(); | 
| 55   void TestUdpIPv6(); | 56   void TestUdpIPv6(); | 
|  | 57   void TestUdpIpv6Interval(); | 
| 56   void TestUdpReadyToSendIPv4(); | 58   void TestUdpReadyToSendIPv4(); | 
| 57   void TestUdpReadyToSendIPv6(); | 59   void TestUdpReadyToSendIPv6(); | 
| 58   void TestGetSetOptionsIPv4(); | 60   void TestGetSetOptionsIPv4(); | 
| 59   void TestGetSetOptionsIPv6(); | 61   void TestGetSetOptionsIPv6(); | 
| 60 | 62 | 
| 61   static const int kTimeout = 5000;  // ms | 63   static const int kTimeout = 5000;  // ms | 
| 62   const IPAddress kIPv4Loopback; | 64   const IPAddress kIPv4Loopback; | 
| 63   const IPAddress kIPv6Loopback; | 65   const IPAddress kIPv6Loopback; | 
| 64 | 66 | 
| 65  protected: | 67  protected: | 
| 66   void TcpInternal(const IPAddress& loopback, size_t data_size, | 68   void TcpInternal(const IPAddress& loopback, size_t data_size, | 
| 67       ssize_t max_send_size); | 69       ssize_t max_send_size); | 
| 68 | 70 | 
| 69  private: | 71  private: | 
| 70   void ConnectInternal(const IPAddress& loopback); | 72   void ConnectInternal(const IPAddress& loopback); | 
| 71   void ConnectWithDnsLookupInternal(const IPAddress& loopback, | 73   void ConnectWithDnsLookupInternal(const IPAddress& loopback, | 
| 72                                     const std::string& host); | 74                                     const std::string& host); | 
| 73   void ConnectFailInternal(const IPAddress& loopback); | 75   void ConnectFailInternal(const IPAddress& loopback); | 
| 74 | 76 | 
| 75   void ConnectWithDnsLookupFailInternal(const IPAddress& loopback); | 77   void ConnectWithDnsLookupFailInternal(const IPAddress& loopback); | 
| 76   void ConnectWithClosedSocketInternal(const IPAddress& loopback); | 78   void ConnectWithClosedSocketInternal(const IPAddress& loopback); | 
| 77   void ConnectWhileNotClosedInternal(const IPAddress& loopback); | 79   void ConnectWhileNotClosedInternal(const IPAddress& loopback); | 
| 78   void ServerCloseDuringConnectInternal(const IPAddress& loopback); | 80   void ServerCloseDuringConnectInternal(const IPAddress& loopback); | 
| 79   void ClientCloseDuringConnectInternal(const IPAddress& loopback); | 81   void ClientCloseDuringConnectInternal(const IPAddress& loopback); | 
| 80   void ServerCloseInternal(const IPAddress& loopback); | 82   void ServerCloseInternal(const IPAddress& loopback); | 
| 81   void CloseInClosedCallbackInternal(const IPAddress& loopback); | 83   void CloseInClosedCallbackInternal(const IPAddress& loopback); | 
| 82   void SocketServerWaitInternal(const IPAddress& loopback); | 84   void SocketServerWaitInternal(const IPAddress& loopback); | 
| 83   void SingleFlowControlCallbackInternal(const IPAddress& loopback); | 85   void SingleFlowControlCallbackInternal(const IPAddress& loopback); | 
| 84   void UdpInternal(const IPAddress& loopback); | 86   void UdpInternal(const IPAddress& loopback); | 
|  | 87   void SendUdpInterval(const IPAddress& loopback, int64_t time_interval_ms); | 
| 85   void UdpReadyToSend(const IPAddress& loopback); | 88   void UdpReadyToSend(const IPAddress& loopback); | 
| 86   void GetSetOptionsInternal(const IPAddress& loopback); | 89   void GetSetOptionsInternal(const IPAddress& loopback); | 
| 87 | 90 | 
| 88   SocketServer* ss_; | 91   SocketServer* ss_; | 
| 89 }; | 92 }; | 
| 90 | 93 | 
| 91 // For unbound sockets, GetLocalAddress / GetRemoteAddress return AF_UNSPEC | 94 // For unbound sockets, GetLocalAddress / GetRemoteAddress return AF_UNSPEC | 
| 92 // values on Windows, but an empty address of the same family on Linux/MacOS X. | 95 // values on Windows, but an empty address of the same family on Linux/MacOS X. | 
| 93 bool IsUnspecOrEmptyIP(const IPAddress& address); | 96 bool IsUnspecOrEmptyIP(const IPAddress& address); | 
| 94 | 97 | 
| 95 }  // namespace rtc | 98 }  // namespace rtc | 
| 96 | 99 | 
| 97 #endif  // WEBRTC_BASE_SOCKET_UNITTEST_H_ | 100 #endif  // WEBRTC_BASE_SOCKET_UNITTEST_H_ | 
| OLD | NEW | 
|---|