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 | 11 |
11 static_library("lib") { | 12 static_library("lib") { |
12 sources = [ | 13 sources = [ |
13 "accelerator.cc", | 14 "accelerator.cc", |
14 "accelerator.h", | 15 "accelerator.h", |
15 "access_policy.h", | 16 "access_policy.h", |
16 "access_policy_delegate.h", | 17 "access_policy_delegate.h", |
17 "accessibility_manager.cc", | 18 "accessibility_manager.cc", |
18 "accessibility_manager.h", | 19 "accessibility_manager.h", |
19 "default_access_policy.cc", | 20 "default_access_policy.cc", |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 group("tests") { | 195 group("tests") { |
195 testonly = true | 196 testonly = true |
196 deps = [ | 197 deps = [ |
197 ":mus_ws_unittests", | 198 ":mus_ws_unittests", |
198 ] | 199 ] |
199 if (!is_android) { | 200 if (!is_android) { |
200 deps += [ "//services/ui/public/cpp/tests:mus_public_unittests" ] | 201 deps += [ "//services/ui/public/cpp/tests:mus_public_unittests" ] |
201 } | 202 } |
202 } | 203 } |
203 | 204 |
204 test("mus_ws_unittests") { | 205 service_test("mus_ws_unittests") { |
205 sources = [ | 206 sources = [ |
206 "cursor_unittest.cc", | 207 "cursor_unittest.cc", |
207 "display_unittest.cc", | 208 "display_unittest.cc", |
208 "drag_controller_unittest.cc", | 209 "drag_controller_unittest.cc", |
209 "event_dispatcher_unittest.cc", | 210 "event_dispatcher_unittest.cc", |
210 "event_matcher_unittest.cc", | 211 "event_matcher_unittest.cc", |
211 "focus_controller_unittest.cc", | 212 "focus_controller_unittest.cc", |
212 "frame_generator_unittest.cc", | 213 "frame_generator_unittest.cc", |
213 "run_all_unittests.cc", | |
214 "server_window_compositor_frame_sink_manager_test_api.cc", | 214 "server_window_compositor_frame_sink_manager_test_api.cc", |
215 "server_window_compositor_frame_sink_manager_test_api.h", | 215 "server_window_compositor_frame_sink_manager_test_api.h", |
216 "server_window_drawn_tracker_unittest.cc", | 216 "server_window_drawn_tracker_unittest.cc", |
217 "test_server_window_delegate.cc", | 217 "test_server_window_delegate.cc", |
218 "test_server_window_delegate.h", | 218 "test_server_window_delegate.h", |
219 "test_utils.cc", | 219 "test_utils.cc", |
220 "test_utils.h", | 220 "test_utils.h", |
221 "transient_windows_unittest.cc", | 221 "transient_windows_unittest.cc", |
222 "user_activity_monitor_unittest.cc", | 222 "user_activity_monitor_unittest.cc", |
223 "user_display_manager_unittest.cc", | 223 "user_display_manager_unittest.cc", |
224 "window_coordinate_conversions_unittest.cc", | 224 "window_coordinate_conversions_unittest.cc", |
225 "window_finder_unittest.cc", | 225 "window_finder_unittest.cc", |
226 "window_manager_client_unittest.cc", | 226 "window_manager_client_unittest.cc", |
227 "window_manager_state_unittest.cc", | 227 "window_manager_state_unittest.cc", |
228 "window_tree_client_unittest.cc", | 228 "window_tree_client_unittest.cc", |
229 "window_tree_unittest.cc", | 229 "window_tree_unittest.cc", |
230 ] | 230 ] |
231 | 231 |
| 232 catalog = ":mus_ws_unittests_catalog" |
| 233 |
232 deps = [ | 234 deps = [ |
233 ":lib", | 235 ":lib", |
234 ":test_support", | 236 ":test_support", |
235 "//base", | 237 "//base", |
236 "//base/test:test_config", | 238 "//base/test:test_config", |
237 "//base/test:test_support", | 239 "//base/test:test_support", |
238 "//cc:cc", | 240 "//cc:cc", |
239 "//gpu/ipc/client", | 241 "//gpu/ipc/client", |
240 "//mojo/edk/system", | |
241 "//mojo/public/cpp/bindings:bindings", | 242 "//mojo/public/cpp/bindings:bindings", |
242 "//services/catalog:lib", | |
243 "//services/service_manager/public/cpp:service_test_support", | 243 "//services/service_manager/public/cpp:service_test_support", |
244 "//services/service_manager/public/cpp:sources", | 244 "//services/service_manager/public/cpp:sources", |
245 "//services/service_manager/public/interfaces", | 245 "//services/service_manager/public/interfaces", |
246 "//services/ui/common:mus_common", | 246 "//services/ui/common:mus_common", |
247 "//services/ui/common:task_runner_test_base", | 247 "//services/ui/common:task_runner_test_base", |
248 "//services/ui/public/cpp", | 248 "//services/ui/public/cpp", |
249 "//services/ui/public/interfaces", | 249 "//services/ui/public/interfaces", |
250 "//testing/gtest", | 250 "//testing/gtest", |
251 "//third_party/mesa:osmesa", | 251 "//third_party/mesa:osmesa", |
252 "//ui/aura", | 252 "//ui/aura", |
253 "//ui/aura:test_support", | 253 "//ui/aura:test_support", |
254 "//ui/events", | 254 "//ui/events", |
255 "//ui/gfx", | 255 "//ui/gfx", |
256 "//ui/gfx:test_support", | 256 "//ui/gfx:test_support", |
257 "//ui/gfx/geometry", | 257 "//ui/gfx/geometry", |
258 "//ui/gfx/geometry/mojo", | 258 "//ui/gfx/geometry/mojo", |
259 "//ui/gl", | 259 "//ui/gl", |
260 ] | 260 ] |
261 | |
262 data_deps = [ | |
263 ":mus_ws_unittests_catalog_copy", | |
264 ] | |
265 } | 261 } |
266 | 262 |
267 service_manifest("mus_ws_unittests_app_manifest") { | 263 service_manifest("mus_ws_unittests_app_manifest") { |
268 name = "mus_ws_unittests_app" | 264 name = "mus_ws_unittests_app" |
269 source = "mus_ws_unittests_app_manifest.json" | 265 source = "mus_ws_unittests_app_manifest.json" |
270 } | 266 } |
271 | 267 |
272 catalog("mus_ws_unittests_catalog") { | 268 catalog("mus_ws_unittests_catalog") { |
273 embedded_services = [ ":mus_ws_unittests_app_manifest" ] | 269 embedded_services = [ ":mus_ws_unittests_app_manifest" ] |
274 | 270 |
275 standalone_services = [ "//services/ui:manifest" ] | 271 standalone_services = [ "//services/ui:manifest" ] |
276 } | 272 } |
277 | |
278 copy("mus_ws_unittests_catalog_copy") { | |
279 sources = get_target_outputs(":mus_ws_unittests_catalog") | |
280 outputs = [ | |
281 "${root_out_dir}/mus_ws_unittests_catalog.json", | |
282 ] | |
283 deps = [ | |
284 ":mus_ws_unittests_catalog", | |
285 ] | |
286 } | |
OLD | NEW |