| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2010 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 14 matching lines...) Expand all Loading... |
| 25 public: | 25 public: |
| 26 Win32Test() { | 26 Win32Test() { |
| 27 } | 27 } |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 TEST_F(Win32Test, FileTimeToUInt64Test) { | 30 TEST_F(Win32Test, FileTimeToUInt64Test) { |
| 31 FILETIME ft; | 31 FILETIME ft; |
| 32 ft.dwHighDateTime = 0xBAADF00D; | 32 ft.dwHighDateTime = 0xBAADF00D; |
| 33 ft.dwLowDateTime = 0xFEED3456; | 33 ft.dwLowDateTime = 0xFEED3456; |
| 34 | 34 |
| 35 uint64 expected = 0xBAADF00DFEED3456; | 35 uint64_t expected = 0xBAADF00DFEED3456; |
| 36 EXPECT_EQ(expected, ToUInt64(ft)); | 36 EXPECT_EQ(expected, ToUInt64(ft)); |
| 37 } | 37 } |
| 38 | 38 |
| 39 TEST_F(Win32Test, WinPingTest) { | 39 TEST_F(Win32Test, WinPingTest) { |
| 40 WinPing ping; | 40 WinPing ping; |
| 41 ASSERT_TRUE(ping.IsValid()); | 41 ASSERT_TRUE(ping.IsValid()); |
| 42 | 42 |
| 43 // Test valid ping cases. | 43 // Test valid ping cases. |
| 44 WinPing::PingResult result = ping.Ping(IPAddress(INADDR_LOOPBACK), 20, 50, 1, | 44 WinPing::PingResult result = ping.Ping(IPAddress(INADDR_LOOPBACK), 20, 50, 1, |
| 45 false); | 45 false); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // Test zero compression only done once. | 86 // Test zero compression only done once. |
| 87 ASSERT_TRUE(IPFromString("0:1:000:1190:0000:0001:000:01", &ipv6)); | 87 ASSERT_TRUE(IPFromString("0:1:000:1190:0000:0001:000:01", &ipv6)); |
| 88 EXPECT_EQ("::1:0:1190:0:1:0:1", ipv6.ToString()); | 88 EXPECT_EQ("::1:0:1190:0:1:0:1", ipv6.ToString()); |
| 89 | 89 |
| 90 // Make sure noncompressable IPv6 is the same. | 90 // Make sure noncompressable IPv6 is the same. |
| 91 ASSERT_TRUE(IPFromString("1234:5678:abcd:1234:5678:abcd:1234:5678", &ipv6)); | 91 ASSERT_TRUE(IPFromString("1234:5678:abcd:1234:5678:abcd:1234:5678", &ipv6)); |
| 92 EXPECT_EQ("1234:5678:abcd:1234:5678:abcd:1234:5678", ipv6.ToString()); | 92 EXPECT_EQ("1234:5678:abcd:1234:5678:abcd:1234:5678", ipv6.ToString()); |
| 93 } | 93 } |
| 94 | 94 |
| 95 } // namespace rtc | 95 } // namespace rtc |
| OLD | NEW |