From 307f536386aad3abf7c0978b892ffac059eb0be5 Mon Sep 17 00:00:00 2001 From: "jeremy@chromium.org" Date: Wed, 29 Oct 2008 20:46:04 +0000 Subject: 1) Add a new MULTIPROCESS_TEST_MAIN macro to store child process names in a lookup table. Previously we were using different mechanisms on each platform to look up child process names at runtime. This broke on OS X where we strip the symbol table on release executables. 2) Enable process_util_unittest on OS X. Review URL: http://codereview.chromium.org/8864 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4165 0039d316-1c4b-4281-b951-d872f2087c98 --- base/process_util_unittest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'base/process_util_unittest.cc') diff --git a/base/process_util_unittest.cc b/base/process_util_unittest.cc index 32595c9..261eb46 100644 --- a/base/process_util_unittest.cc +++ b/base/process_util_unittest.cc @@ -17,9 +17,8 @@ namespace { class ProcessUtilTest : public MultiProcessTest { }; -} -extern "C" int DYNAMIC_EXPORT SimpleChildProcess() { +MULTIPROCESS_TEST_MAIN(SimpleChildProcess) { return 0; } @@ -99,3 +98,4 @@ TEST_F(ProcessUtilTest, CalcFreeMemory) { } #endif // defined(OS_WIN) +} // namespace -- cgit v1.1