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

Side by Side Diff: services/service_manager/runner/host/child_process_host_unittest.cc

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase Created 4 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 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 "services/shell/runner/host/child_process_host.h" 7 #include "services/service_manager/runner/host/child_process_host.h"
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/message_loop/message_loop.h" 17 #include "base/message_loop/message_loop.h"
18 #include "base/path_service.h" 18 #include "base/path_service.h"
19 #include "base/run_loop.h" 19 #include "base/run_loop.h"
20 #include "base/threading/thread.h" 20 #include "base/threading/thread.h"
21 #include "mojo/edk/embedder/embedder.h" 21 #include "mojo/edk/embedder/embedder.h"
22 #include "mojo/edk/embedder/process_delegate.h" 22 #include "mojo/edk/embedder/process_delegate.h"
23 #include "services/shell/native_runner_delegate.h" 23 #include "services/service_manager/native_runner_delegate.h"
24 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
25 25
26 namespace shell { 26 namespace shell {
27 namespace { 27 namespace {
28 28
29 void ProcessReadyCallbackAdapater(const base::Closure& callback, 29 void ProcessReadyCallbackAdapater(const base::Closure& callback,
30 base::ProcessId process_id) { 30 base::ProcessId process_id) {
31 callback.Run(); 31 callback.Run();
32 } 32 }
33 33
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 run_loop.Run(); 101 run_loop.Run();
102 102
103 child_process_host.Join(); 103 child_process_host.Join();
104 blocking_pool->Shutdown(); 104 blocking_pool->Shutdown();
105 mojo::edk::ShutdownIPCSupport(); 105 mojo::edk::ShutdownIPCSupport();
106 EXPECT_EQ(1u, native_runner_delegate.get_and_clear_adjust_count()); 106 EXPECT_EQ(1u, native_runner_delegate.get_and_clear_adjust_count());
107 } 107 }
108 108
109 } // namespace 109 } // namespace
110 } // namespace shell 110 } // namespace shell
OLDNEW
« no previous file with comments | « services/service_manager/runner/host/child_process_host.cc ('k') | services/service_manager/runner/host/host_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698