diff options
author | robertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-07 21:20:19 +0000 |
---|---|---|
committer | robertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-07 21:20:19 +0000 |
commit | 0b5a2f86ee50eaa88d090c9f0e0a81b30e650b39 (patch) | |
tree | c28c9683dcaf72e73b1a0557e2e80851dcc9ccbe /chrome_frame/test_utils.h | |
parent | dcf3c878a87776d20f021d9bbd2b4f3b09fbb44e (diff) | |
download | chromium_src-0b5a2f86ee50eaa88d090c9f0e0a81b30e650b39.zip chromium_src-0b5a2f86ee50eaa88d090c9f0e0a81b30e650b39.tar.gz chromium_src-0b5a2f86ee50eaa88d090c9f0e0a81b30e650b39.tar.bz2 |
Kill all browser instances at test start up in addition to at tear down which should improve test reliability.
Make running the Chrome Frame integration tests slightly less onerous by not killing non-ChromeFrame instances of Chrome.
BUG=All chrome.exe instances would die when running these tests, which made them annoying to run.
TEST=Only Chrome Frame instances of Chrome will be killed when running the integration tests.
Review URL: http://codereview.chromium.org/467036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33991 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/test_utils.h')
-rw-r--r-- | chrome_frame/test_utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome_frame/test_utils.h b/chrome_frame/test_utils.h index 260b4b5..9dc3a7e 100644 --- a/chrome_frame/test_utils.h +++ b/chrome_frame/test_utils.h @@ -76,5 +76,11 @@ class DispCallback Method method_; }; +// Kills all running processes named |process_name| that have the string +// |argument| on their command line. Useful for killing all Chrome Frame +// instances of Chrome that all have --chrome-frame in their command line. +bool KillAllNamedProcessesWithArgument(const std::wstring& process_name, + const std::wstring& argument); + #endif // CHROME_FRAME_TEST_UTILS_H_ |