OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/browser_watcher/watcher_win.h" | 5 #include "components/browser_watcher/exit_code_watcher_win.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/process/kill.h" | 8 #include "base/process/kill.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
11 #include "base/synchronization/waitable_event.h" | 11 #include "base/synchronization/waitable_event.h" |
12 #include "base/test/multiprocess_test.h" | 12 #include "base/test/multiprocess_test.h" |
13 #include "base/test/test_reg_util_win.h" | 13 #include "base/test/test_reg_util_win.h" |
14 #include "base/threading/platform_thread.h" | 14 #include "base/threading/platform_thread.h" |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 218 |
219 // Kill the sleeper, and make sure it's exited before we continue. | 219 // Kill the sleeper, and make sure it's exited before we continue. |
220 ASSERT_NO_FATAL_FAILURE(sleeper.Kill(kExitCode, true)); | 220 ASSERT_NO_FATAL_FAILURE(sleeper.Kill(kExitCode, true)); |
221 | 221 |
222 watcher.WaitForExit(); | 222 watcher.WaitForExit(); |
223 | 223 |
224 VerifyWroteExitCode(sleeper.process_id(), kExitCode); | 224 VerifyWroteExitCode(sleeper.process_id(), kExitCode); |
225 } | 225 } |
226 | 226 |
227 } // namespace browser_watcher | 227 } // namespace browser_watcher |
OLD | NEW |