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

Unified Diff: base/process/process_util_unittest.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 | « no previous file | base/test/multiprocess_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/process_util_unittest.cc
diff --git a/base/process/process_util_unittest.cc b/base/process/process_util_unittest.cc
index 23d5181d5a48311089d528d12b55a694e73f9f9e..f45efc973c10697af581c3b6061c7b8b8be5f04a 100644
--- a/base/process/process_util_unittest.cc
+++ b/base/process/process_util_unittest.cc
@@ -505,8 +505,10 @@ int ProcessUtilTest::CountOpenFDsInChild() {
base::FileHandleMappingVector fd_mapping_vec;
fd_mapping_vec.push_back(std::pair<int, int>(fds[1], kChildPipe));
- base::ProcessHandle handle = this->SpawnChild(
- "ProcessUtilsLeakFDChildProcess", fd_mapping_vec, false);
+ base::LaunchOptions options;
+ options.fds_to_remap = &fd_mapping_vec;
+ base::ProcessHandle handle = this->SpawnChildWithOptions(
+ "ProcessUtilsLeakFDChildProcess", options, false);
CHECK(handle);
int ret = IGNORE_EINTR(close(fds[1]));
DPCHECK(ret == 0);
« no previous file with comments | « no previous file | base/test/multiprocess_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698