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

Side by Side Diff: mojo/shell/tests/BUILD.gn

Issue 1706833003: Move various Shell tests into a subdir. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@conn
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 unified diff | Download patch
« no previous file with comments | « mojo/shell/test.mojom ('k') | mojo/shell/tests/application_manager_apptest.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 group("tests") {
11 testonly = true
12 deps = [
13 ":apptests",
14 ":mojo_shell_unittests",
15 ]
16 }
17
18 source_set("test_support") {
19 testonly = true
20 sources = [
21 "capability_filter_test.cc",
22 "capability_filter_test.h",
23 ]
24
25 deps = [
26 ":test_bindings",
27 "//mojo/shell",
28 "//mojo/shell/public/cpp",
29 "//mojo/shell/public/interfaces",
30 "//testing/gtest",
31 ]
32 }
33
34 # TODO(beng): this target should just be called "unittests" but I am having
35 # difficulty with the android _apk generator.
36 test("mojo_shell_unittests") {
37 sources = [
38 "application_manager_unittest.cc",
39 "capability_filter_unittest.cc",
40 ]
41
42 deps = [
43 ":test_bindings",
44 ":test_support",
45 "//base",
46 "//mojo/edk/system:test_utils",
47 "//mojo/edk/test:run_all_unittests",
48 "//mojo/public/cpp/system",
49 "//mojo/shell",
50 "//mojo/shell/public/cpp",
51 "//mojo/util:filename_util",
52 "//testing/gtest",
53 "//url",
54 ]
55 }
56
57 mojom("test_bindings") {
58 sources = [
59 "application_manager_apptests.mojom",
60 "capability_filter_unittest.mojom",
61 "package_test.mojom",
62 "test.mojom",
63 ]
64 }
65
66 mojo_native_application("apptests") {
67 output_name = "mojo_shell_apptests"
68 testonly = true
69
70 sources = [
71 "application_manager_apptest.cc",
72 "package_apptest.cc",
73 ]
74
75 deps = [
76 ":apptests_manifest",
77 ":test_bindings",
78 "//base",
79 "//base/test:test_config",
80 "//mojo/common:common_base",
81 "//mojo/converters/network",
82 "//mojo/shell/public/cpp:sources",
83 "//mojo/shell/public/cpp:test_support",
84 "//mojo/shell/public/interfaces",
85 ]
86
87 data_deps = [
88 ":application_manager_apptest_driver",
89 ":application_manager_apptest_target",
90 ":package_test_package",
91 ]
92 }
93
94 mojo_application_manifest("apptests_manifest") {
95 application_name = "mojo_shell_apptests"
96 source = "application_manager_apptest_manifest.json"
97 }
98
99 mojo_application_manifest("package_test_a_manifest") {
100 application_name = "package_test_a"
101 source = "package_test_app_a_manifest.json"
102 }
103
104 mojo_application_manifest("package_test_b_manifest") {
105 application_name = "package_test_b"
106 source = "package_test_app_b_manifest.json"
107 }
108
109 mojo_native_application("package_test_package") {
110 testonly = true
111 sources = [
112 "package_test_package.cc",
113 ]
114 deps = [
115 ":package_test_package_manifest",
116 ":test_bindings",
117 "//base",
118 "//mojo/common:common_base",
119 "//mojo/shell/public/cpp:sources",
120 "//mojo/shell/public/interfaces",
121 ]
122 }
123
124 mojo_application_manifest("package_test_package_manifest") {
125 application_name = "package_test_package"
126 source = "package_test_package_manifest.json"
127 deps = [
128 ":package_test_a_manifest",
129 ":package_test_b_manifest",
130 ]
131 packaged_applications = [
132 "package_test_a",
133 "package_test_b",
134 ]
135 }
136
137 executable("application_manager_apptest_driver") {
138 testonly = true
139
140 sources = [
141 "application_manager_apptest_driver.cc",
142 ]
143
144 deps = [
145 ":copy_application_manager_apptest_driver_manifest",
146 ":test_bindings",
147 "//base",
148 "//base:base_static",
149 "//build/config/sanitizers:deps",
150 "//mojo/common:common_base",
151 "//mojo/converters/network",
152 "//mojo/edk/system",
153 "//mojo/shell/public/cpp",
154 "//mojo/shell/public/interfaces",
155 "//mojo/shell/runner:init",
156 "//mojo/shell/runner/child:test_native_main",
157 "//mojo/shell/runner/common",
158 ]
159 }
160
161 copy("copy_application_manager_apptest_driver_manifest") {
162 sources = [
163 "application_manager_apptest_driver_manifest.json",
164 ]
165 outputs = [
166 "${root_out_dir}/{{source_file_part}}",
167 ]
168 }
169
170 executable("application_manager_apptest_target") {
171 testonly = true
172
173 sources = [
174 "application_manager_apptest_target.cc",
175 ]
176
177 deps = [
178 ":test_bindings",
179 "//base",
180 "//build/config/sanitizers:deps",
181 "//mojo/common:common_base",
182 "//mojo/converters/network",
183 "//mojo/shell/public/cpp",
184 "//mojo/shell/runner/child:test_native_main",
185 ]
186 }
OLDNEW
« no previous file with comments | « mojo/shell/test.mojom ('k') | mojo/shell/tests/application_manager_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698