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

Unified Diff: base/process_util_unittest.cc

Issue 119289: Enable zygote manager by default. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/process_util_linux.cc ('k') | base/zygote_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « base/process_util_linux.cc ('k') | base/zygote_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698