diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-06 03:57:17 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-06 03:57:17 +0000 |
commit | 607fa45213174fde8e97f0fed0457b29fb5bebc0 (patch) | |
tree | 06453e4f8a586435ad58a13932752c4eed515802 /base/process_util_unittest.cc | |
parent | c61db1db11956890955bcd716c2841f9fa1a956f (diff) | |
download | chromium_src-607fa45213174fde8e97f0fed0457b29fb5bebc0.zip chromium_src-607fa45213174fde8e97f0fed0457b29fb5bebc0.tar.gz chromium_src-607fa45213174fde8e97f0fed0457b29fb5bebc0.tar.bz2 |
Rewrite the mac named process iterator:
- walk thru only processes for this user.
- properly handle walking the data collect.
- handle the number of processes increasing between count and data collection.
Enable the one unittest the uses the named process iterator.
Review URL: http://codereview.chromium.org/20122
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9305 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util_unittest.cc')
-rw-r--r-- | base/process_util_unittest.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/base/process_util_unittest.cc b/base/process_util_unittest.cc index 1c99733..09922cc 100644 --- a/base/process_util_unittest.cc +++ b/base/process_util_unittest.cc @@ -55,17 +55,10 @@ MULTIPROCESS_TEST_MAIN(SlowChildProcess) { #define EXE_SUFFIX L"" #endif -#if defined(OS_MACOSX) -// TODO(port): finish port on Mac -TEST_F(ProcessUtilTest, DISABLED_KillSlowChild) { -#else TEST_F(ProcessUtilTest, KillSlowChild) { -#endif remove("SlowChildProcess.die"); int oldcount = GetProcessCount(L"base_unittests" EXE_SUFFIX, 0); - ProcessHandle handle = this->SpawnChild(L"SlowChildProcess"); - ASSERT_NE(static_cast<ProcessHandle>(NULL), handle); EXPECT_EQ(oldcount+1, GetProcessCount(L"base_unittests" EXE_SUFFIX, 0)); FILE *fp = fopen("SlowChildProcess.die", "w"); |