summaryrefslogtreecommitdiffstats
path: root/components/browser_watcher/exit_code_watcher_win_unittest.cc
diff options
context:
space:
mode:
authorrvargas <rvargas@chromium.org>2015-03-09 16:53:45 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-09 23:55:07 +0000
commiteedb763e54c4c79c7110c2daa21435a390982a71 (patch)
tree1f6effdb3a34e09e757de1644f450703e6466780 /components/browser_watcher/exit_code_watcher_win_unittest.cc
parent4f9ceb2fe2f91bb0af51106919570957cde44fee (diff)
downloadchromium_src-eedb763e54c4c79c7110c2daa21435a390982a71.zip
chromium_src-eedb763e54c4c79c7110c2daa21435a390982a71.tar.gz
chromium_src-eedb763e54c4c79c7110c2daa21435a390982a71.tar.bz2
Redefine base::Process:Terminate so that it can replace base::KillProcess
BUG=417532 Review URL: https://codereview.chromium.org/983963002 Cr-Commit-Position: refs/heads/master@{#319776}
Diffstat (limited to 'components/browser_watcher/exit_code_watcher_win_unittest.cc')
-rw-r--r--components/browser_watcher/exit_code_watcher_win_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/browser_watcher/exit_code_watcher_win_unittest.cc b/components/browser_watcher/exit_code_watcher_win_unittest.cc
index 3e1728c..e739536 100644
--- a/components/browser_watcher/exit_code_watcher_win_unittest.cc
+++ b/components/browser_watcher/exit_code_watcher_win_unittest.cc
@@ -38,7 +38,7 @@ class ScopedSleeperProcess {
~ScopedSleeperProcess() {
if (process_.IsValid()) {
- process_.Terminate(-1);
+ process_.Terminate(-1, false);
int exit_code = 0;
EXPECT_TRUE(process_.WaitForExit(&exit_code));
}
@@ -57,7 +57,7 @@ class ScopedSleeperProcess {
void Kill(int exit_code, bool wait) {
ASSERT_TRUE(process_.IsValid());
ASSERT_FALSE(is_killed_);
- process_.Terminate(exit_code);
+ process_.Terminate(exit_code, false);
int seen_exit_code = 0;
EXPECT_TRUE(process_.WaitForExit(&seen_exit_code));
EXPECT_EQ(exit_code, seen_exit_code);