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

Unified Diff: chrome/test/mini_installer/process_verifier.py

Issue 23814002: Remove psutil from the mini_installer test framework. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address mathp's comments. Created 7 years, 4 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 | « chrome/test/mini_installer/chrome_helper.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/mini_installer/process_verifier.py
diff --git a/chrome/test/mini_installer/process_verifier.py b/chrome/test/mini_installer/process_verifier.py
index a23605619bbe73b5fd1d202d34dc8d5242cbf8fd..95c09da4264b5abbc488170285fe0ce87f85dc43 100644
--- a/chrome/test/mini_installer/process_verifier.py
+++ b/chrome/test/mini_installer/process_verifier.py
@@ -2,8 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import psutil
-
+import chrome_helper
import path_resolver
@@ -21,12 +20,8 @@ def VerifyProcesses(processes):
running.
"""
# Create a list of paths of all running processes.
- running_process_paths = []
- for process in psutil.process_iter():
- try:
- running_process_paths.append(process.exe)
- except psutil.AccessDenied:
- pass
+ running_process_paths = [path for (_, path) in
+ chrome_helper.GetProcessIDAndPathPairs()]
for process_path, expectation in processes.iteritems():
process_resolved_path = path_resolver.ResolvePath(process_path)
« no previous file with comments | « chrome/test/mini_installer/chrome_helper.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698