OLD | NEW |
---|---|
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 import("//services/catalog/public/tools/catalog.gni") | 7 import("//services/catalog/public/tools/catalog.gni") |
8 import("//services/service_manager/public/cpp/service.gni") | 8 import("//services/service_manager/public/cpp/service.gni") |
9 import("//services/service_manager/public/service_manifest.gni") | 9 import("//services/service_manager/public/service_manifest.gni") |
10 import("//services/service_manager/public/tools/test/service_test.gni") | 10 import("//services/service_manager/public/tools/test/service_test.gni") |
11 | 11 |
12 is_external_mode = use_ozone && !is_chromeos | |
msw
2017/03/09 16:51:22
nit: add a comment explaining what this is, eg. "T
fwang
2017/03/09 21:52:49
Done.
| |
13 | |
12 static_library("lib") { | 14 static_library("lib") { |
13 sources = [ | 15 sources = [ |
14 "accelerator.cc", | 16 "accelerator.cc", |
15 "accelerator.h", | 17 "accelerator.h", |
16 "access_policy.h", | 18 "access_policy.h", |
17 "access_policy_delegate.h", | 19 "access_policy_delegate.h", |
18 "accessibility_manager.cc", | 20 "accessibility_manager.cc", |
19 "accessibility_manager.h", | 21 "accessibility_manager.h", |
20 "cursor_location_manager.cc", | 22 "cursor_location_manager.cc", |
21 "cursor_location_manager.h", | 23 "cursor_location_manager.h", |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
164 } | 166 } |
165 | 167 |
166 static_library("test_support") { | 168 static_library("test_support") { |
167 testonly = true | 169 testonly = true |
168 | 170 |
169 sources = [ | 171 sources = [ |
170 "test_change_tracker.cc", | 172 "test_change_tracker.cc", |
171 "test_change_tracker.h", | 173 "test_change_tracker.h", |
172 "window_server_service_test_base.cc", | 174 "window_server_service_test_base.cc", |
173 "window_server_service_test_base.h", | 175 "window_server_service_test_base.h", |
174 "window_server_test_base.cc", | |
175 "window_server_test_base.h", | |
176 ] | 176 ] |
177 | 177 |
178 if (!is_external_mode) { | |
179 # WindowServerTestBase assumes an initial display (and root) is provided | |
180 # at startup, which is not the case on platforms running external window | |
181 # mode. | |
182 sources += [ | |
183 "window_server_test_base.cc", | |
184 "window_server_test_base.h", | |
185 ] | |
186 } | |
187 | |
178 deps = [ | 188 deps = [ |
179 "//base", | 189 "//base", |
180 "//base/test:test_config", | 190 "//base/test:test_config", |
181 "//mojo/common", | 191 "//mojo/common", |
182 "//mojo/public/cpp/bindings:bindings", | 192 "//mojo/public/cpp/bindings:bindings", |
183 "//services/service_manager/public/cpp:service_test_support", | 193 "//services/service_manager/public/cpp:service_test_support", |
184 "//services/service_manager/public/cpp:sources", | 194 "//services/service_manager/public/cpp:sources", |
185 "//services/ui/common:mus_common", | 195 "//services/ui/common:mus_common", |
186 "//services/ui/public/cpp", | 196 "//services/ui/public/cpp", |
187 "//services/ui/public/interfaces", | 197 "//services/ui/public/interfaces", |
(...skipping 28 matching lines...) Expand all Loading... | |
216 "server_window_drawn_tracker_unittest.cc", | 226 "server_window_drawn_tracker_unittest.cc", |
217 "test_server_window_delegate.cc", | 227 "test_server_window_delegate.cc", |
218 "test_server_window_delegate.h", | 228 "test_server_window_delegate.h", |
219 "test_utils.cc", | 229 "test_utils.cc", |
220 "test_utils.h", | 230 "test_utils.h", |
221 "transient_windows_unittest.cc", | 231 "transient_windows_unittest.cc", |
222 "user_activity_monitor_unittest.cc", | 232 "user_activity_monitor_unittest.cc", |
223 "user_display_manager_unittest.cc", | 233 "user_display_manager_unittest.cc", |
224 "window_coordinate_conversions_unittest.cc", | 234 "window_coordinate_conversions_unittest.cc", |
225 "window_finder_unittest.cc", | 235 "window_finder_unittest.cc", |
226 "window_manager_client_unittest.cc", | |
227 "window_manager_state_unittest.cc", | 236 "window_manager_state_unittest.cc", |
228 "window_tree_client_unittest.cc", | 237 "window_tree_client_unittest.cc", |
229 "window_tree_unittest.cc", | 238 "window_tree_unittest.cc", |
230 ] | 239 ] |
231 | 240 |
241 if (!is_external_mode) { | |
242 # A window manager client is not needed on platforms running external | |
243 # window mode, since the host system is always the window manager. | |
244 sources += [ "window_manager_client_unittest.cc" ] | |
245 } | |
246 | |
232 catalog = ":mus_ws_unittests_catalog" | 247 catalog = ":mus_ws_unittests_catalog" |
233 | 248 |
234 deps = [ | 249 deps = [ |
235 ":lib", | 250 ":lib", |
236 ":test_support", | 251 ":test_support", |
237 "//base", | 252 "//base", |
238 "//base/test:test_config", | 253 "//base/test:test_config", |
239 "//base/test:test_support", | 254 "//base/test:test_support", |
240 "//cc:cc", | 255 "//cc:cc", |
241 "//gpu/ipc/client", | 256 "//gpu/ipc/client", |
(...skipping 21 matching lines...) Expand all Loading... | |
263 service_manifest("mus_ws_unittests_app_manifest") { | 278 service_manifest("mus_ws_unittests_app_manifest") { |
264 name = "mus_ws_unittests_app" | 279 name = "mus_ws_unittests_app" |
265 source = "mus_ws_unittests_app_manifest.json" | 280 source = "mus_ws_unittests_app_manifest.json" |
266 } | 281 } |
267 | 282 |
268 catalog("mus_ws_unittests_catalog") { | 283 catalog("mus_ws_unittests_catalog") { |
269 embedded_services = [ ":mus_ws_unittests_app_manifest" ] | 284 embedded_services = [ ":mus_ws_unittests_app_manifest" ] |
270 | 285 |
271 standalone_services = [ "//services/ui:manifest" ] | 286 standalone_services = [ "//services/ui:manifest" ] |
272 } | 287 } |
OLD | NEW |