Lines Matching defs:proc_info
33 ProcessInfoSnapshot::ProcInfoEntry proc_info;
34 ASSERT_TRUE(snapshot.GetProcInfo(1, &proc_info));
35 EXPECT_EQ(1, static_cast<int64>(proc_info.pid));
36 EXPECT_EQ(0, static_cast<int64>(proc_info.ppid));
37 EXPECT_EQ(0, static_cast<int64>(proc_info.uid));
38 EXPECT_EQ(0, static_cast<int64>(proc_info.euid));
39 EXPECT_GE(proc_info.rss, 0u);
40 EXPECT_GT(proc_info.vsize, 0u);
50 EXPECT_FALSE(snapshot.GetProcInfo(2, &proc_info));
53 EXPECT_FALSE(snapshot.GetProcInfo(2, &proc_info));
57 EXPECT_FALSE(snapshot.GetProcInfo(1, &proc_info));
75 ProcessInfoSnapshot::ProcInfoEntry proc_info;
76 ASSERT_TRUE(snapshot.GetProcInfo(pid, &proc_info));
77 EXPECT_EQ(pid, proc_info.pid);
78 EXPECT_EQ(ppid, proc_info.ppid);
79 EXPECT_EQ(uid, proc_info.uid);
80 EXPECT_EQ(euid, proc_info.euid);
82 EXPECT_GE(proc_info.rss, 100u);
84 EXPECT_GE(proc_info.vsize, 1024u);
90 EXPECT_GE(proc_info.rshrd, 1024u);
92 EXPECT_GE(proc_info.rprvt, 1024u);
96 ASSERT_TRUE(snapshot.GetProcInfo(ppid, &proc_info));
97 EXPECT_EQ(ppid, proc_info.pid);
98 EXPECT_NE(static_cast<int64>(proc_info.ppid), 0);
99 EXPECT_EQ(uid, proc_info.uid); // This (and the following) should be true
100 EXPECT_EQ(euid, proc_info.euid); // under reasonable circumstances.
102 EXPECT_GT(proc_info.vsize, 0u); // Its |vsize| should be nonzero though.
139 ProcessInfoSnapshot::ProcInfoEntry proc_info;
140 ASSERT_TRUE(snapshot.GetProcInfo(process_handle, &proc_info));
142 EXPECT_EQ(proc_info.euid, 0u);
144 EXPECT_EQ(proc_info.uid, geteuid());