| Index: mojo/shell/tests/lifecycle/app.cc
|
| diff --git a/mojo/shell/tests/lifecycle/app.cc b/mojo/shell/tests/lifecycle/app.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b07056b5c84f1369b96c21044f55d0476a871011
|
| --- /dev/null
|
| +++ b/mojo/shell/tests/lifecycle/app.cc
|
| @@ -0,0 +1,14 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "mojo/public/c/system/main.h"
|
| +#include "mojo/shell/public/cpp/application_runner.h"
|
| +#include "mojo/shell/tests/lifecycle/app_client.h"
|
| +
|
| +MojoResult MojoMain(MojoHandle shell_handle) {
|
| + mojo::shell::test::AppClient* app = new mojo::shell::test::AppClient;
|
| + mojo::ApplicationRunner runner(app);
|
| + app->set_runner(&runner);
|
| + return runner.Run(shell_handle);
|
| +}
|
|
|