| Index: mojo/runner/shell_test_main.cc
|
| diff --git a/mojo/runner/shell_test_main.cc b/mojo/runner/shell_test_main.cc
|
| index a6ec6d1ba80611c121a3f972a205bf226da5fd8c..753640e3acb080b86e20c50e66ab058e7ef34678 100644
|
| --- a/mojo/runner/shell_test_main.cc
|
| +++ b/mojo/runner/shell_test_main.cc
|
| @@ -9,6 +9,7 @@
|
| #include "base/test/launcher/unit_test_launcher.h"
|
| #include "base/test/test_suite.h"
|
| #include "mojo/runner/child_process.h"
|
| +#include "mojo/runner/native_application_support.h"
|
| #include "mojo/runner/switches.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| @@ -19,8 +20,14 @@ int main(int argc, char** argv) {
|
|
|
| if (command_line.HasSwitch(switches::kChildProcess)) {
|
| base::AtExitManager at_exit;
|
| + mojo::shell::NativeApplicationCleanup cleanup =
|
| + command_line.HasSwitch(switches::kDeleteAfterLoad)
|
| + ? mojo::shell::NativeApplicationCleanup::DELETE
|
| + : mojo::shell::NativeApplicationCleanup::DONT_DELETE;
|
| + base::NativeLibrary app_library = mojo::runner::LoadNativeApplication(
|
| + command_line.GetSwitchValuePath(switches::kChildProcess), cleanup);
|
|
|
| - return mojo::runner::ChildProcessMain();
|
| + return mojo::runner::ChildProcessMain(app_library);
|
| }
|
|
|
| base::TestSuite test_suite(argc, argv);
|
|
|