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/process/kill.h" | 13 #include "base/process/kill.h" |
14 #include "base/process/process.h" | 14 #include "base/process/process.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
16 #include "base/thread_task_runner_handle.h" | |
17 #include "base/threading/thread.h" | 16 #include "base/threading/thread.h" |
| 17 #include "base/threading/thread_task_runner_handle.h" |
18 #include "chromeos/process_proxy/process_proxy_registry.h" | 18 #include "chromeos/process_proxy/process_proxy_registry.h" |
19 | 19 |
20 namespace chromeos { | 20 namespace chromeos { |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 // The test line must have all distinct characters. | 24 // The test line must have all distinct characters. |
25 const char kTestLineToSend[] = "abcdefgh\n"; | 25 const char kTestLineToSend[] = "abcdefgh\n"; |
26 const char kTestLineExpected[] = "abcdefgh\r\n"; | 26 const char kTestLineExpected[] = "abcdefgh\r\n"; |
27 | 27 |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 RunTest(); | 233 RunTest(); |
234 } | 234 } |
235 | 235 |
236 // Open new process, then kill it. Verifiy that we detect when the process dies. | 236 // Open new process, then kill it. Verifiy that we detect when the process dies. |
237 TEST_F(ProcessProxyTest, RegistryNotifiedOnProcessExit) { | 237 TEST_F(ProcessProxyTest, RegistryNotifiedOnProcessExit) { |
238 test_runner_.reset(new RegistryNotifiedOnProcessExitTestRunner()); | 238 test_runner_.reset(new RegistryNotifiedOnProcessExitTestRunner()); |
239 RunTest(); | 239 RunTest(); |
240 } | 240 } |
241 | 241 |
242 } // namespace chromeos | 242 } // namespace chromeos |
OLD | NEW |