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

Unified Diff: mojo/shell/tests/lifecycle/BUILD.gn

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/BUILD.gn ('k') | mojo/shell/tests/lifecycle/app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/tests/lifecycle/BUILD.gn
diff --git a/mojo/shell/tests/lifecycle/BUILD.gn b/mojo/shell/tests/lifecycle/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..2cda88b2dc4f66e9054b51a765e6106d35c81445
--- /dev/null
+++ b/mojo/shell/tests/lifecycle/BUILD.gn
@@ -0,0 +1,110 @@
+# 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.
+
+import("//mojo/public/mojo_application.gni")
+import("//mojo/public/mojo_application_manifest.gni")
+import("//mojo/public/tools/bindings/mojom.gni")
+import("//testing/test.gni")
+
+source_set("lifecycle") {
+ testonly = true
+ sources = [
+ "lifecycle_unittest.cc",
+ ]
+ deps = [
+ ":interfaces",
+ ":manifest",
+ "//base",
+ "//base/test:test_support",
+ "//mojo/shell/public/cpp:shell_test_support",
+ "//mojo/shell/public/cpp:sources",
+ "//mojo/shell/public/interfaces",
+ ]
+
+ data_deps = [
+ ":lifecycle_unittest_app",
+ ":lifecycle_unittest_package",
+ ]
+}
+
+mojom("interfaces") {
+ sources = [
+ "lifecycle_unittest.mojom",
+ ]
+}
+
+mojo_application_manifest("manifest") {
+ application_name = "lifecycle_unittest"
+ source = "lifecycle_unittest_manifest.json"
+}
+
+mojo_application_manifest("lifecycle_unittest_package_app_a_manifest") {
+ application_name = "lifecycle_unittest_package_app_a"
+ source = "package_app_a_manifest.json"
+}
+
+mojo_application_manifest("lifecycle_unittest_package_app_b_manifest") {
+ application_name = "lifecycle_unittest_package_app_b"
+ source = "package_app_b_manifest.json"
+}
+
+source_set("app_client") {
+ sources = [
+ "app_client.cc",
+ "app_client.h",
+ ]
+ deps = [
+ ":interfaces",
+ "//base",
+ "//mojo/shell/public/cpp:sources",
+ "//mojo/shell/public/interfaces",
+ ]
+}
+
+mojo_native_application("lifecycle_unittest_package") {
+ testonly = true
+ sources = [
+ "package.cc",
+ ]
+ deps = [
+ ":app_client",
+ ":interfaces",
+ ":lifecycle_unittest_package_manifest",
+ "//base",
+ "//mojo/shell/public/cpp:sources",
+ "//mojo/shell/public/interfaces",
+ ]
+}
+
+mojo_application_manifest("lifecycle_unittest_package_manifest") {
+ application_name = "lifecycle_unittest_package"
+ source = "package_manifest.json"
+ deps = [
+ ":lifecycle_unittest_package_app_a_manifest",
+ ":lifecycle_unittest_package_app_b_manifest",
+ ]
+ packaged_applications = [
+ "lifecycle_unittest_package_app_a",
+ "lifecycle_unittest_package_app_b",
+ ]
+}
+
+mojo_native_application("lifecycle_unittest_app") {
+ testonly = true
+ sources = [
+ "app.cc",
+ ]
+ deps = [
+ ":app_client",
+ ":interfaces",
+ ":lifecycle_unittest_app_manifest",
+ "//base",
+ "//mojo/shell/public/cpp:sources",
+ ]
+}
+
+mojo_application_manifest("lifecycle_unittest_app_manifest") {
+ application_name = "lifecycle_unittest_app"
+ source = "app_manifest.json"
+}
« no previous file with comments | « mojo/shell/tests/BUILD.gn ('k') | mojo/shell/tests/lifecycle/app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698