Chromium Code Reviews| Index: base/process_util_unittest.cc |
| =================================================================== |
| --- base/process_util_unittest.cc (revision 17847) |
| +++ base/process_util_unittest.cc (working copy) |
| @@ -270,6 +270,13 @@ |
| EXPECT_STREQ("foobar42", output.c_str()); |
| } |
| +#if defined(OS_LINUX) |
| +TEST_F(ProcessUtilTest, GetParentProcessId) { |
| + base::ProcessId ppid = GetParentProcessId(GetCurrentProcId()); |
| + EXPECT_EQ(ppid, getppid()); |
| +} |
| +#endif |
| + |
| #endif // defined(OS_POSIX) |
| } // namespace base |