| Index: chrome/browser/process_info_snapshot_mac_unittest.cc
|
| diff --git a/chrome/browser/process_info_snapshot_mac_unittest.cc b/chrome/browser/process_info_snapshot_mac_unittest.cc
|
| index e95cf0c91b28107f4f455861e59d33ef2cf44b79..25e084b83dc9305604486bbb5228d1a75ec2504b 100644
|
| --- a/chrome/browser/process_info_snapshot_mac_unittest.cc
|
| +++ b/chrome/browser/process_info_snapshot_mac_unittest.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "chrome/browser/process_info_snapshot.h"
|
|
|
| +#include <stdint.h>
|
| #include <sys/types.h> // For |uid_t| (and |pid_t|).
|
| #include <unistd.h> // For |getpid()|, |getuid()|, etc.
|
|
|
| @@ -31,10 +32,10 @@ TEST_F(ProcessInfoSnapshotMacTest, FindPidOneTest) {
|
|
|
| ProcessInfoSnapshot::ProcInfoEntry proc_info;
|
| ASSERT_TRUE(snapshot.GetProcInfo(1, &proc_info));
|
| - EXPECT_EQ(1, static_cast<int64>(proc_info.pid));
|
| - EXPECT_EQ(0, static_cast<int64>(proc_info.ppid));
|
| - EXPECT_EQ(0, static_cast<int64>(proc_info.uid));
|
| - EXPECT_EQ(0, static_cast<int64>(proc_info.euid));
|
| + EXPECT_EQ(1, static_cast<int64_t>(proc_info.pid));
|
| + EXPECT_EQ(0, static_cast<int64_t>(proc_info.ppid));
|
| + EXPECT_EQ(0, static_cast<int64_t>(proc_info.uid));
|
| + EXPECT_EQ(0, static_cast<int64_t>(proc_info.euid));
|
| EXPECT_GE(proc_info.rss, 0u);
|
| EXPECT_GT(proc_info.vsize, 0u);
|
|
|
| @@ -62,7 +63,7 @@ TEST_F(ProcessInfoSnapshotMacTest, FindPidSelfTest) {
|
| base::ProcessId ppid = static_cast<base::ProcessId>(getppid());
|
| uid_t uid = getuid();
|
| uid_t euid = geteuid();
|
| - EXPECT_NE(static_cast<int64>(ppid), 0);
|
| + EXPECT_NE(static_cast<int64_t>(ppid), 0);
|
|
|
| std::vector<base::ProcessId> pid_list;
|
| pid_list.push_back(pid);
|
| @@ -94,7 +95,7 @@ TEST_F(ProcessInfoSnapshotMacTest, FindPidSelfTest) {
|
| // Find our parent.
|
| ASSERT_TRUE(snapshot.GetProcInfo(ppid, &proc_info));
|
| EXPECT_EQ(ppid, proc_info.pid);
|
| - EXPECT_NE(static_cast<int64>(proc_info.ppid), 0);
|
| + EXPECT_NE(static_cast<int64_t>(proc_info.ppid), 0);
|
| EXPECT_EQ(uid, proc_info.uid); // This (and the following) should be true
|
| EXPECT_EQ(euid, proc_info.euid); // under reasonable circumstances.
|
| // Can't say anything definite about its |rss|.
|
|
|