| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 TestUdpIPv6(); | 55 void TestUdpIPv6(); |
| 56 void TestUdpReadyToSendIPv4(); | 56 void TestUdpReadyToSendIPv4(); |
| 57 void TestUdpReadyToSendIPv6(); | 57 void TestUdpReadyToSendIPv6(); |
| 58 void TestGetSetOptionsIPv4(); | 58 void TestGetSetOptionsIPv4(); |
| 59 void TestGetSetOptionsIPv6(); | 59 void TestGetSetOptionsIPv6(); |
| 60 void TestSocketRecvTimestamp(); | 60 void TestSocketRecvTimestampIPv4(); |
| 61 void TestSocketRecvTimestampIPv6(); |
| 61 | 62 |
| 62 static const int kTimeout = 5000; // ms | 63 static const int kTimeout = 5000; // ms |
| 63 const IPAddress kIPv4Loopback; | 64 const IPAddress kIPv4Loopback; |
| 64 const IPAddress kIPv6Loopback; | 65 const IPAddress kIPv6Loopback; |
| 65 | 66 |
| 66 protected: | 67 protected: |
| 67 void TcpInternal(const IPAddress& loopback, size_t data_size, | 68 void TcpInternal(const IPAddress& loopback, size_t data_size, |
| 68 ssize_t max_send_size); | 69 ssize_t max_send_size); |
| 69 | 70 |
| 70 private: | 71 private: |
| (...skipping 19 matching lines...) Expand all Loading... |
| 90 SocketServer* ss_; | 91 SocketServer* ss_; |
| 91 }; | 92 }; |
| 92 | 93 |
| 93 // For unbound sockets, GetLocalAddress / GetRemoteAddress return AF_UNSPEC | 94 // For unbound sockets, GetLocalAddress / GetRemoteAddress return AF_UNSPEC |
| 94 // 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. |
| 95 bool IsUnspecOrEmptyIP(const IPAddress& address); | 96 bool IsUnspecOrEmptyIP(const IPAddress& address); |
| 96 | 97 |
| 97 } // namespace rtc | 98 } // namespace rtc |
| 98 | 99 |
| 99 #endif // WEBRTC_BASE_SOCKET_UNITTEST_H_ | 100 #endif // WEBRTC_BASE_SOCKET_UNITTEST_H_ |
| OLD | NEW |