Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Side by Side Diff: webrtc/base/win32_unittest.cc

Issue 1362503003: Use suffixed {uint,int}{8,16,32,64}_t types. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase + revert basictypes.h (to be landed separately just in case of a revert due to unexpected us… Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/base/win32.cc ('k') | webrtc/base/win32filesystem.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webrtc/base/win32.cc ('k') | webrtc/base/win32filesystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698