| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 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 |
| 11 #if defined(WEBRTC_POSIX) | 11 #if defined(WEBRTC_POSIX) |
| 12 #include <netinet/in.h> // for sockaddr_in | 12 #include <netinet/in.h> // for sockaddr_in |
| 13 #endif | 13 #endif |
| 14 | 14 |
| 15 #include "webrtc/base/gunit.h" | 15 #include "webrtc/rtc_base/gunit.h" |
| 16 #include "webrtc/base/socketaddress.h" | 16 #include "webrtc/rtc_base/ipaddress.h" |
| 17 #include "webrtc/base/ipaddress.h" | 17 #include "webrtc/rtc_base/socketaddress.h" |
| 18 | 18 |
| 19 namespace rtc { | 19 namespace rtc { |
| 20 | 20 |
| 21 const in6_addr kTestV6Addr = { { {0x20, 0x01, 0x0d, 0xb8, | 21 const in6_addr kTestV6Addr = { { {0x20, 0x01, 0x0d, 0xb8, |
| 22 0x10, 0x20, 0x30, 0x40, | 22 0x10, 0x20, 0x30, 0x40, |
| 23 0x50, 0x60, 0x70, 0x80, | 23 0x50, 0x60, 0x70, 0x80, |
| 24 0x90, 0xA0, 0xB0, 0xC0} } }; | 24 0x90, 0xA0, 0xB0, 0xC0} } }; |
| 25 const in6_addr kMappedV4Addr = { { {0x00, 0x00, 0x00, 0x00, | 25 const in6_addr kMappedV4Addr = { { {0x00, 0x00, 0x00, 0x00, |
| 26 0x00, 0x00, 0x00, 0x00, | 26 0x00, 0x00, 0x00, 0x00, |
| 27 0x00, 0x00, 0xFF, 0xFF, | 27 0x00, 0x00, 0xFF, 0xFF, |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 EXPECT_EQ("[" + kTestV6AddrAnonymizedString + "]", | 342 EXPECT_EQ("[" + kTestV6AddrAnonymizedString + "]", |
| 343 addr_v6.HostAsSensitiveURIString()); | 343 addr_v6.HostAsSensitiveURIString()); |
| 344 EXPECT_EQ(kTestV6AddrFullAnonymizedString, addr_v6.ToSensitiveString()); | 344 EXPECT_EQ(kTestV6AddrFullAnonymizedString, addr_v6.ToSensitiveString()); |
| 345 #else | 345 #else |
| 346 EXPECT_EQ("[" + kTestV6AddrString + "]", addr_v6.HostAsSensitiveURIString()); | 346 EXPECT_EQ("[" + kTestV6AddrString + "]", addr_v6.HostAsSensitiveURIString()); |
| 347 EXPECT_EQ(kTestV6AddrFullString, addr_v6.ToSensitiveString()); | 347 EXPECT_EQ(kTestV6AddrFullString, addr_v6.ToSensitiveString()); |
| 348 #endif // defined(NDEBUG) | 348 #endif // defined(NDEBUG) |
| 349 } | 349 } |
| 350 | 350 |
| 351 } // namespace rtc | 351 } // namespace rtc |
| OLD | NEW |