diff options
author | rvargas <rvargas@chromium.org> | 2015-03-09 16:53:45 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-09 23:55:07 +0000 |
commit | eedb763e54c4c79c7110c2daa21435a390982a71 (patch) | |
tree | 1f6effdb3a34e09e757de1644f450703e6466780 /components/browser_watcher/exit_code_watcher_win_unittest.cc | |
parent | 4f9ceb2fe2f91bb0af51106919570957cde44fee (diff) | |
download | chromium_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.cc | 4 |
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); |