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

Unified Diff: mojo/shell/tests/lifecycle/lifecycle_unittest.mojom

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
Index: mojo/shell/tests/lifecycle/lifecycle_unittest.mojom
diff --git a/mojo/shell/tests/lifecycle/lifecycle_unittest.mojom b/mojo/shell/tests/lifecycle/lifecycle_unittest.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..1ae54e8eb3918a58e2747c10df79d265f091c56a
--- /dev/null
+++ b/mojo/shell/tests/lifecycle/lifecycle_unittest.mojom
@@ -0,0 +1,23 @@
+// 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.
+
+module mojo.shell.test.mojom;
+
+// An interface implemented by an application exposing different ways for the
+// application to "shut down" from the caller and shell's perspective.
+interface LifecycleControl {
+ // Method for ping-pong acknowledgement.
+ Ping() => ();
+
+ // Perform any normal cleanup and shut down normally.
+ GracefulQuit();
+
+ // Crash immediately and leave the shell and clients to deal with the
+ // consequences.
+ Crash();
+
+ // Not actually a shutdown from the client's perspective, but the Shell is no
+ // longer tracking this application.
+ CloseShellConnection();
+};
« no previous file with comments | « mojo/shell/tests/lifecycle/lifecycle_unittest.cc ('k') | mojo/shell/tests/lifecycle/lifecycle_unittest_manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698