summaryrefslogtreecommitdiffstats
path: root/chrome/test/chrome_process_util_linux.cc
diff options
context:
space:
mode:
authoravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-23 18:07:51 +0000
committeravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-23 18:07:51 +0000
commit075a7253bc09178cb94e44b4ae08f5ad1d00f07a (patch)
tree3102e07f44a1361d31d41ce15b28c0cb56efa290 /chrome/test/chrome_process_util_linux.cc
parentd61653713c71eeff68b379e60a0e44545921994c (diff)
downloadchromium_src-075a7253bc09178cb94e44b4ae08f5ad1d00f07a.zip
chromium_src-075a7253bc09178cb94e44b4ae08f5ad1d00f07a.tar.gz
chromium_src-075a7253bc09178cb94e44b4ae08f5ad1d00f07a.tar.bz2
Create a ChromeProcessUtil for the Mac, and enable it in the tests.
Review URL: http://codereview.chromium.org/95009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14328 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/chrome_process_util_linux.cc')
-rw-r--r--chrome/test/chrome_process_util_linux.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/test/chrome_process_util_linux.cc b/chrome/test/chrome_process_util_linux.cc
index f1c7601..9bcb0ad 100644
--- a/chrome/test/chrome_process_util_linux.cc
+++ b/chrome/test/chrome_process_util_linux.cc
@@ -37,7 +37,10 @@ base::ProcessId ChromeBrowserProcessId(const FilePath& data_dir) {
int pid;
if (!StringToInt(trimmed_output, &pid)) {
- LOG(FATAL) << "Unexpected fuser output: " << fuser_output;
+ // In normal use we'd expect to find what we're looking for, but in the unit
+ // test for chrome_process_util we're explicitly called when there is no
+ // matching process to find. Just return -1 and let our callers realize
+ // something's wrong if they really expect to find a target.
return -1;
}
return pid;