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

Unified Diff: mojo/shell/tests/lifecycle/app.cc

Issue 1755423002: Add a test for application lifecycle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@27amtest
Patch Set: . Created 4 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 | « mojo/shell/tests/lifecycle/BUILD.gn ('k') | mojo/shell/tests/lifecycle/app_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+}
« no previous file with comments | « mojo/shell/tests/lifecycle/BUILD.gn ('k') | mojo/shell/tests/lifecycle/app_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698