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

Unified Diff: ipc/ipc_test_base.cc

Issue 187993002: Remove the MultiProcessTest::SpawnChild() that as an fds_to_map argument. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 500 Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_test_base.cc
diff --git a/ipc/ipc_test_base.cc b/ipc/ipc_test_base.cc
index ef050a7151f2a24b9cdfbd45424e0c6850ce6268..b25f844f07df84d92c5a7cd173fcef002e3ddc69 100644
--- a/ipc/ipc_test_base.cc
+++ b/ipc/ipc_test_base.cc
@@ -100,7 +100,7 @@ bool IPCTestBase::StartClient() {
CommandLine::ForCurrentProcess()->HasSwitch(switches::kDebugChildren);
#if defined(OS_WIN)
- client_process_ = MultiProcessTest::SpawnChild(test_main, debug_on_start);
+ client_process_ = SpawnChild(test_main, debug_on_start);
#elif defined(OS_POSIX)
base::FileHandleMappingVector fds_to_map;
const int ipcfd = channel_.get() ? channel_->GetClientFileDescriptor() :
@@ -108,10 +108,9 @@ bool IPCTestBase::StartClient() {
if (ipcfd > -1)
fds_to_map.push_back(std::pair<int, int>(ipcfd,
kPrimaryIPCChannel + base::GlobalDescriptors::kBaseDescriptor));
-
- client_process_ = MultiProcessTest::SpawnChild(test_main,
- fds_to_map,
- debug_on_start);
+ base::LaunchOptions options;
+ options.fds_to_remap = &fds_to_map;
+ client_process_ = SpawnChildWithOptions(test_main, options, debug_on_start);
#endif
return client_process_ != base::kNullProcessHandle;
« no previous file with comments | « chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698