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

Unified Diff: mojo/edk/test/multiprocess_test_helper.cc

Issue 2733323002: Changing multiprocess test SpawnChild to return a struct. (Closed)
Patch Set: Fixed bots. Created 3 years, 9 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
Index: mojo/edk/test/multiprocess_test_helper.cc
diff --git a/mojo/edk/test/multiprocess_test_helper.cc b/mojo/edk/test/multiprocess_test_helper.cc
index 8eaccf08d6d63bcb4cec91bfc0074866d01ae207..8c6f5982d2ed09cea77f2eb98976440a8943cf8d 100644
--- a/mojo/edk/test/multiprocess_test_helper.cc
+++ b/mojo/edk/test/multiprocess_test_helper.cc
@@ -160,8 +160,9 @@ ScopedMessagePipeHandle MultiprocessTestHelper::StartChildWithExtraSwitch(
pipe = ConnectToPeerProcess(std::move(server_handle), peer_token_);
}
- test_child_ =
+ base::SpawnChildResult result =
base::SpawnMultiProcessTestChild(test_child_main, command_line, options);
+ test_child_ = std::move(result.process);
if (launch_type == LaunchType::CHILD || launch_type == LaunchType::PEER)
channel.ChildProcessLaunched();

Powered by Google App Engine
This is Rietveld 408576698