OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <signal.h> | 5 #include <signal.h> |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "mojo/public/cpp/bindings/interface_request.h" | 11 #include "mojo/public/cpp/bindings/interface_request.h" |
12 #include "mojo/public/cpp/bindings/type_converter.h" | 12 #include "mojo/public/cpp/bindings/type_converter.h" |
13 #include "mojo/services/files/public/cpp/input_stream_file.h" | 13 #include "mojo/services/files/cpp/input_stream_file.h" |
14 #include "mojo/services/files/public/cpp/output_stream_file.h" | 14 #include "mojo/services/files/cpp/output_stream_file.h" |
15 #include "mojo/services/files/public/interfaces/types.mojom.h" | 15 #include "mojo/services/files/interfaces/types.mojom.h" |
16 #include "services/native_support/process_test_base.h" | 16 #include "services/native_support/process_test_base.h" |
17 | 17 |
18 namespace native_support { | 18 namespace native_support { |
19 namespace { | 19 namespace { |
20 | 20 |
21 using ProcessControllerImplTest = ProcessTestBase; | 21 using ProcessControllerImplTest = ProcessTestBase; |
22 | 22 |
23 void QuitMessageLoop() { | 23 void QuitMessageLoop() { |
24 base::MessageLoop::current()->QuitWhenIdle(); | 24 base::MessageLoop::current()->QuitWhenIdle(); |
25 } | 25 } |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 // The child should be killed. | 187 // The child should be killed. |
188 // TODO(vtl): It's pretty hard to verify that the child process was actually | 188 // TODO(vtl): It's pretty hard to verify that the child process was actually |
189 // killed. This could be done, e.g., by having the child trap SIGTERM and | 189 // killed. This could be done, e.g., by having the child trap SIGTERM and |
190 // writing something to a file, and then separately checking for that file. | 190 // writing something to a file, and then separately checking for that file. |
191 // For now now, just be happy if it doesn't crash. (I've actually verified it | 191 // For now now, just be happy if it doesn't crash. (I've actually verified it |
192 // "manually", but automation is hard.) | 192 // "manually", but automation is hard.) |
193 } | 193 } |
194 | 194 |
195 } // namespace | 195 } // namespace |
196 } // namespace native_support | 196 } // namespace native_support |
OLD | NEW |