OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 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 // Note: This file also tests child_process.*. | 5 // Note: This file also tests child_process.*. |
6 | 6 |
7 #include "mojo/shell/runner/host/child_process_host.h" | 7 #include "services/shell/runner/host/child_process_host.h" |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
17 #include "base/path_service.h" | 17 #include "base/path_service.h" |
18 #include "base/run_loop.h" | 18 #include "base/run_loop.h" |
19 #include "base/threading/thread.h" | 19 #include "base/threading/thread.h" |
20 #include "mojo/edk/embedder/embedder.h" | 20 #include "mojo/edk/embedder/embedder.h" |
21 #include "mojo/edk/embedder/process_delegate.h" | 21 #include "mojo/edk/embedder/process_delegate.h" |
22 #include "mojo/message_pump/message_pump_mojo.h" | 22 #include "mojo/message_pump/message_pump_mojo.h" |
23 #include "mojo/shell/native_runner_delegate.h" | 23 #include "services/shell/native_runner_delegate.h" |
24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
25 | 25 |
26 namespace mojo { | 26 namespace mojo { |
27 namespace shell { | 27 namespace shell { |
28 namespace { | 28 namespace { |
29 | 29 |
30 void ProcessReadyCallbackAdapater(const base::Closure& callback, | 30 void ProcessReadyCallbackAdapater(const base::Closure& callback, |
31 base::ProcessId process_id) { | 31 base::ProcessId process_id) { |
32 callback.Run(); | 32 callback.Run(); |
33 } | 33 } |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 child_process_host.Join(); | 104 child_process_host.Join(); |
105 blocking_pool->Shutdown(); | 105 blocking_pool->Shutdown(); |
106 edk::ShutdownIPCSupport(); | 106 edk::ShutdownIPCSupport(); |
107 EXPECT_EQ(1u, native_runner_delegate.get_and_clear_adjust_count()); | 107 EXPECT_EQ(1u, native_runner_delegate.get_and_clear_adjust_count()); |
108 } | 108 } |
109 | 109 |
110 } // namespace | 110 } // namespace |
111 } // namespace shell | 111 } // namespace shell |
112 } // namespace mojo | 112 } // namespace mojo |
OLD | NEW |