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

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 gab's comment. 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
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..3c4beb5a3c499a7a47c6f2db054cf2e4b9621241 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
@@ -22,11 +21,8 @@ def VerifyProcesses(processes):
"""
# Create a list of paths of all running processes.
running_process_paths = []
Mathieu 2013/08/30 19:34:10 running_process_paths = map(lambda t: t[1],
sukolsak 2013/08/30 20:06:07 Done.
- for process in psutil.process_iter():
- try:
- running_process_paths.append(process.exe)
- except psutil.AccessDenied:
- pass
+ for _, process_path in chrome_helper.GetProcessIDAndPathPairs():
+ running_process_paths.append(process_path)
for process_path, expectation in processes.iteritems():
process_resolved_path = path_resolver.ResolvePath(process_path)
« chrome/test/mini_installer/chrome_helper.py ('K') | « 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