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

Side by Side Diff: chrome/test/base/mojo_test_connector.cc

Issue 2620633004: Remove mojo::edk::test::ScopedIPCSupport (Closed)
Patch Set: . Created 3 years, 11 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
« no previous file with comments | « chrome/service/service_process.cc ('k') | chrome/test/base/run_all_unittests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "chrome/test/base/mojo_test_connector.h" 5 #include "chrome/test/base/mojo_test_connector.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "base/synchronization/waitable_event.h" 13 #include "base/synchronization/waitable_event.h"
14 #include "base/threading/thread.h" 14 #include "base/threading/thread.h"
15 #include "content/public/common/content_switches.h" 15 #include "content/public/common/content_switches.h"
16 #include "content/public/test/test_launcher.h" 16 #include "content/public/test/test_launcher.h"
17 #include "mojo/edk/embedder/embedder.h" 17 #include "mojo/edk/embedder/embedder.h"
18 #include "mojo/edk/embedder/platform_channel_pair.h" 18 #include "mojo/edk/embedder/platform_channel_pair.h"
19 #include "mojo/edk/embedder/process_delegate.h"
20 #include "mojo/public/cpp/bindings/interface_request.h" 19 #include "mojo/public/cpp/bindings/interface_request.h"
21 #include "services/catalog/store.h" 20 #include "services/catalog/store.h"
22 #include "services/service_manager/public/cpp/connector.h" 21 #include "services/service_manager/public/cpp/connector.h"
23 #include "services/service_manager/public/cpp/service.h" 22 #include "services/service_manager/public/cpp/service.h"
24 #include "services/service_manager/public/cpp/service_context.h" 23 #include "services/service_manager/public/cpp/service_context.h"
25 #include "services/service_manager/runner/common/client_util.h" 24 #include "services/service_manager/runner/common/client_util.h"
26 #include "services/service_manager/runner/common/switches.h" 25 #include "services/service_manager/runner/common/switches.h"
27 #include "services/service_manager/runner/host/service_process_launcher.h" 26 #include "services/service_manager/runner/host/service_process_launcher.h"
28 #include "services/service_manager/service_manager.h" 27 #include "services/service_manager/service_manager.h"
29 #include "services/service_manager/switches.h" 28 #include "services/service_manager/switches.h"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 MojoTestConnector::~MojoTestConnector() {} 252 MojoTestConnector::~MojoTestConnector() {}
254 253
255 std::unique_ptr<content::TestState> MojoTestConnector::PrepareForTest( 254 std::unique_ptr<content::TestState> MojoTestConnector::PrepareForTest(
256 base::CommandLine* command_line, 255 base::CommandLine* command_line,
257 base::TestLauncher::LaunchOptions* test_launch_options) { 256 base::TestLauncher::LaunchOptions* test_launch_options) {
258 std::unique_ptr<MojoTestState> test_state( 257 std::unique_ptr<MojoTestState> test_state(
259 new MojoTestState(&background_service_manager_)); 258 new MojoTestState(&background_service_manager_));
260 test_state->Init(command_line, test_launch_options); 259 test_state->Init(command_line, test_launch_options);
261 return std::move(test_state); 260 return std::move(test_state);
262 } 261 }
OLDNEW
« no previous file with comments | « chrome/service/service_process.cc ('k') | chrome/test/base/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698