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

Side by Side 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, 9 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import("//mojo/public/mojo_application.gni")
6 import("//mojo/public/mojo_application_manifest.gni")
7 import("//mojo/public/tools/bindings/mojom.gni")
8 import("//testing/test.gni")
9
10 source_set("lifecycle") {
11 testonly = true
12 sources = [
13 "lifecycle_unittest.cc",
14 ]
15 deps = [
16 ":interfaces",
17 ":manifest",
18 "//base",
19 "//base/test:test_support",
20 "//mojo/shell/public/cpp:shell_test_support",
21 "//mojo/shell/public/cpp:sources",
22 "//mojo/shell/public/interfaces",
23 ]
24
25 data_deps = [
26 ":lifecycle_unittest_app",
27 ":lifecycle_unittest_package",
28 ]
29 }
30
31 mojom("interfaces") {
32 sources = [
33 "lifecycle_unittest.mojom",
34 ]
35 }
36
37 mojo_application_manifest("manifest") {
38 application_name = "lifecycle_unittest"
39 source = "lifecycle_unittest_manifest.json"
40 }
41
42 mojo_application_manifest("lifecycle_unittest_package_app_a_manifest") {
43 application_name = "lifecycle_unittest_package_app_a"
44 source = "package_app_a_manifest.json"
45 }
46
47 mojo_application_manifest("lifecycle_unittest_package_app_b_manifest") {
48 application_name = "lifecycle_unittest_package_app_b"
49 source = "package_app_b_manifest.json"
50 }
51
52 source_set("app_client") {
53 sources = [
54 "app_client.cc",
55 "app_client.h",
56 ]
57 deps = [
58 ":interfaces",
59 "//base",
60 "//mojo/shell/public/cpp:sources",
61 "//mojo/shell/public/interfaces",
62 ]
63 }
64
65 mojo_native_application("lifecycle_unittest_package") {
66 testonly = true
67 sources = [
68 "package.cc",
69 ]
70 deps = [
71 ":app_client",
72 ":interfaces",
73 ":lifecycle_unittest_package_manifest",
74 "//base",
75 "//mojo/shell/public/cpp:sources",
76 "//mojo/shell/public/interfaces",
77 ]
78 }
79
80 mojo_application_manifest("lifecycle_unittest_package_manifest") {
81 application_name = "lifecycle_unittest_package"
82 source = "package_manifest.json"
83 deps = [
84 ":lifecycle_unittest_package_app_a_manifest",
85 ":lifecycle_unittest_package_app_b_manifest",
86 ]
87 packaged_applications = [
88 "lifecycle_unittest_package_app_a",
89 "lifecycle_unittest_package_app_b",
90 ]
91 }
92
93 mojo_native_application("lifecycle_unittest_app") {
94 testonly = true
95 sources = [
96 "app.cc",
97 ]
98 deps = [
99 ":app_client",
100 ":interfaces",
101 ":lifecycle_unittest_app_manifest",
102 "//base",
103 "//mojo/shell/public/cpp:sources",
104 ]
105 }
106
107 mojo_application_manifest("lifecycle_unittest_app_manifest") {
108 application_name = "lifecycle_unittest_app"
109 source = "app_manifest.json"
110 }
OLDNEW
« 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