OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <gtest/gtest.h> | 5 #include <gtest/gtest.h> |
6 #include <stddef.h> | 6 #include <stddef.h> |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
| 13 #include "base/message_loop/message_loop.h" |
13 #include "base/process/kill.h" | 14 #include "base/process/kill.h" |
14 #include "base/process/process.h" | 15 #include "base/process/process.h" |
15 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
16 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
17 #include "base/threading/thread.h" | 18 #include "base/threading/thread.h" |
18 #include "base/threading/thread_task_runner_handle.h" | 19 #include "base/threading/thread_task_runner_handle.h" |
19 #include "chromeos/process_proxy/process_proxy_registry.h" | 20 #include "chromeos/process_proxy/process_proxy_registry.h" |
20 | 21 |
21 namespace chromeos { | 22 namespace chromeos { |
22 | 23 |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 RunTest(); | 235 RunTest(); |
235 } | 236 } |
236 | 237 |
237 // Open new process, then kill it. Verifiy that we detect when the process dies. | 238 // Open new process, then kill it. Verifiy that we detect when the process dies. |
238 TEST_F(ProcessProxyTest, RegistryNotifiedOnProcessExit) { | 239 TEST_F(ProcessProxyTest, RegistryNotifiedOnProcessExit) { |
239 test_runner_.reset(new RegistryNotifiedOnProcessExitTestRunner()); | 240 test_runner_.reset(new RegistryNotifiedOnProcessExitTestRunner()); |
240 RunTest(); | 241 RunTest(); |
241 } | 242 } |
242 | 243 |
243 } // namespace chromeos | 244 } // namespace chromeos |
OLD | NEW |