Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: services/native_support/process_controller_impl_unittest.cc

Issue 1388413005: Move //mojo/services/X/public/... to //mojo/services/X/... (part 1). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « services/native_support/process_controller_impl.cc ('k') | services/native_support/process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698