| Index: third_party/mojo/src/mojo/edk/test/multiprocess_test_helper.cc
|
| diff --git a/third_party/mojo/src/mojo/edk/test/multiprocess_test_helper.cc b/third_party/mojo/src/mojo/edk/test/multiprocess_test_helper.cc
|
| index 6dd8b72a088d2b4aa939902e159258749a17be8b..c107a02da2abf627778b6c4807fc3600e4d3ffc6 100644
|
| --- a/third_party/mojo/src/mojo/edk/test/multiprocess_test_helper.cc
|
| +++ b/third_party/mojo/src/mojo/edk/test/multiprocess_test_helper.cc
|
| @@ -26,6 +26,13 @@ MultiprocessTestHelper::~MultiprocessTestHelper() {
|
| }
|
|
|
| void MultiprocessTestHelper::StartChild(const std::string& test_child_name) {
|
| + StartChildWithExtraSwitch(test_child_name, std::string(), std::string());
|
| +}
|
| +
|
| +void MultiprocessTestHelper::StartChildWithExtraSwitch(
|
| + const std::string& test_child_name,
|
| + const std::string& switch_string,
|
| + const std::string& switch_value) {
|
| CHECK(platform_channel_pair_);
|
| CHECK(!test_child_name.empty());
|
| CHECK(!test_child_.IsValid());
|
| @@ -38,6 +45,14 @@ void MultiprocessTestHelper::StartChild(const std::string& test_child_name) {
|
| platform_channel_pair_->PrepareToPassClientHandleToChildProcess(
|
| &command_line, &handle_passing_info);
|
|
|
| + if (!switch_string.empty()) {
|
| + CHECK(!command_line.HasSwitch(switch_string));
|
| + if (!switch_value.empty())
|
| + command_line.AppendSwitchASCII(switch_string, switch_value);
|
| + else
|
| + command_line.AppendSwitch(switch_string);
|
| + }
|
| +
|
| base::LaunchOptions options;
|
| #if defined(OS_POSIX)
|
| options.fds_to_remap = &handle_passing_info;
|
|
|