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

Side by Side Diff: ash/BUILD.gn

Issue 2303453003: Revert of Moves ash content specific tests into ash_content_unittests (Closed)
Patch Set: Created 4 years, 3 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 | « BUILD.gn ('k') | ash/ash.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 import("//ui/base/ui_features.gni") 8 import("//ui/base/ui_features.gni")
9 9
10 assert(use_aura) 10 assert(use_aura)
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 "//ui/keyboard:keyboard_with_content", 177 "//ui/keyboard:keyboard_with_content",
178 "//ui/resources", 178 "//ui/resources",
179 "//ui/strings", 179 "//ui/strings",
180 "//ui/views", 180 "//ui/views",
181 "//ui/views/controls/webview", 181 "//ui/views/controls/webview",
182 "//ui/web_dialogs", 182 "//ui/web_dialogs",
183 "//url", 183 "//url",
184 ] 184 ]
185 } 185 }
186 186
187 # Internal target consumed by |test_support_with_content| and 187 # TODO(msw): Move support code with content deps to test_support_with_content.
188 # |test_support_without_content|. This target contains all the test support 188 static_library("test_support") {
189 # files, with the exception of an implementation of AshTestEnvironment.
190 # Consumers of ash should use one of |test_support_with_content| or
191 # |test_support_without_content|.
192 static_library("test_support_common") {
193 testonly = true 189 testonly = true
194 visibility = [ ":*" ]
195 sources = gypi_values.ash_test_support_sources 190 sources = gypi_values.ash_test_support_sources
196 configs += [ "//build/config:precompiled_headers" ] 191 configs += [ "//build/config:precompiled_headers" ]
197 192
198 public_deps = [ 193 public_deps = [
199 ":ash", 194 ":ash",
200 ] 195 ]
201 deps = [ 196 deps = [
197 ":test_support_with_content", # TODO(beng): reverse this direction.
202 "//ash/resources", 198 "//ash/resources",
203 "//base:i18n", 199 "//base:i18n",
204 "//base/test:test_support", 200 "//base/test:test_support",
205 "//components/signin/core/account_id", 201 "//components/signin/core/account_id",
206 "//components/user_manager:user_manager", 202 "//components/user_manager:user_manager",
203 "//content/public/browser",
204 "//content/test:test_support",
207 "//device/bluetooth", 205 "//device/bluetooth",
208 "//skia", 206 "//skia",
209 "//testing/gtest", 207 "//testing/gtest",
210 "//ui/accessibility", 208 "//ui/accessibility",
211 "//ui/app_list:test_support", 209 "//ui/app_list:test_support",
212 "//ui/app_list/presenter", 210 "//ui/app_list/presenter",
213 "//ui/aura", 211 "//ui/aura",
214 "//ui/aura:test_support", 212 "//ui/aura:test_support",
215 "//ui/base:test_support", 213 "//ui/base:test_support",
216 "//ui/compositor:test_support", 214 "//ui/compositor:test_support",
(...skipping 19 matching lines...) Expand all
236 } 234 }
237 235
238 if (is_chromeos) { 236 if (is_chromeos) {
239 deps += [ 237 deps += [
240 "//chromeos", 238 "//chromeos",
241 "//ui/display", 239 "//ui/display",
242 ] 240 ]
243 } 241 }
244 } 242 }
245 243
246 static_library("test_support_without_content") {
247 testonly = true
248 sources = [
249 "test/ash_test_environment_default.cc",
250 ]
251
252 public_deps = [
253 ":test_support_common",
254 ]
255
256 deps = [
257 "//base",
258 "//skia",
259 ]
260 }
261
262 static_library("test_support_with_content") { 244 static_library("test_support_with_content") {
263 testonly = true 245 testonly = true
264 sources = gypi_values.ash_test_support_with_content_sources 246 sources = gypi_values.ash_test_support_with_content_sources
265 sources += [
266 "test/ash_test_environment_content.cc",
267 "test/ash_test_environment_content.h",
268 ]
269 configs += [ "//build/config:precompiled_headers" ] 247 configs += [ "//build/config:precompiled_headers" ]
270 248
271 public_deps = [ 249 deps = [
272 ":ash_with_content", 250 ":ash_with_content",
273 ":test_support_common",
274 "//content/public/browser",
275 "//content/test:test_support", 251 "//content/test:test_support",
276 "//skia", 252 "//skia",
277 ] 253 ]
278 } 254 }
279 255
280 static_library("interactive_ui_test_support") { 256 static_library("interactive_ui_test_support") {
281 testonly = true 257 testonly = true
282 configs += [ "//build/config:precompiled_headers" ] 258 configs += [ "//build/config:precompiled_headers" ]
283 public_deps = [ 259 public_deps = [
284 ":ash", 260 ":ash",
285 ":test_support_without_content", 261 ":test_support",
286 ] 262 ]
287 sources = [ 263 sources = [
288 "test/ash_interactive_ui_test_base.cc", 264 "test/ash_interactive_ui_test_base.cc",
289 "test/ash_interactive_ui_test_base.h", 265 "test/ash_interactive_ui_test_base.h",
290 ] 266 ]
291 deps = [ 267 deps = [
292 ":ash", 268 ":ash",
293 ":test_support_with_content", 269 ":test_support",
294 "//base", 270 "//base",
295 "//skia", 271 "//skia",
296 "//testing/gtest", 272 "//testing/gtest",
297 "//ui/aura", 273 "//ui/aura",
298 "//ui/base", 274 "//ui/base",
299 "//ui/gl:test_support", 275 "//ui/gl:test_support",
300 ] 276 ]
301 } 277 }
302 278
303 static_library("ash_shell_lib") { 279 static_library("ash_shell_lib") {
304 testonly = true 280 testonly = true
305 sources = gypi_values.ash_shell_lib_sources 281 sources = gypi_values.ash_shell_lib_sources
306 282
307 deps = [ 283 deps = [
308 ":ash", 284 ":ash",
309 ":ash_with_content", 285 ":ash_with_content",
310 ":test_support_without_content", 286 ":test_support",
311 "//ash/common/strings", 287 "//ash/common/strings",
312 "//ash/resources", 288 "//ash/resources",
313 "//base", 289 "//base",
314 "//base:i18n", 290 "//base:i18n",
315 "//components/user_manager", 291 "//components/user_manager",
316 "//net", 292 "//net",
317 "//skia", 293 "//skia",
318 "//third_party/icu", 294 "//third_party/icu",
319 "//ui/app_list/presenter", 295 "//ui/app_list/presenter",
320 "//ui/aura", 296 "//ui/aura",
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 "//ui/message_center", 335 "//ui/message_center",
360 "//ui/views:test_support", 336 "//ui/views:test_support",
361 "//ui/wm", 337 "//ui/wm",
362 ] 338 ]
363 339
364 if (is_chromeos) { 340 if (is_chromeos) {
365 deps += [ "//chromeos" ] 341 deps += [ "//chromeos" ]
366 } 342 }
367 } 343 }
368 344
369 # This target is intended for tests that use content. In general very few tests
370 # need or use content and should be placed in |ash_unittests| instead.
371 test("ash_content_unittests") {
372 sources = [
373 "content/display/screen_orientation_controller_chromeos_unittest.cc",
374 "content/keyboard_overlay/keyboard_overlay_delegate_unittest.cc",
375 "content/keyboard_overlay/keyboard_overlay_view_unittest.cc",
376 "test/ash_unittests.cc",
377 ]
378 configs += [
379 "//build/config:precompiled_headers",
380 "//build/config/compiler:no_size_t_to_int_warning",
381 ]
382
383 deps = [
384 ":ash",
385 ":ash_with_content",
386 ":test_support_with_content",
387 "//base",
388 "//base/test:test_support",
389 "//components/signin/core/account_id",
390 "//components/user_manager",
391 "//content/public/browser",
392 "//content/test:test_support",
393 "//mojo/edk/system",
394 "//skia",
395 "//testing/gtest",
396 "//ui/aura",
397 "//ui/aura:test_support",
398 "//ui/message_center",
399 "//ui/message_center:test_support",
400 "//ui/views",
401 "//ui/views:test_support",
402 "//ui/views/controls/webview:test_support",
403 "//ui/web_dialogs:test_support",
404 ]
405
406 data_deps = [
407 "//ash/common/strings:ash_test_strings",
408 "//ash/resources:ash_test_resources_100_percent",
409 "//ash/resources:ash_test_resources_200_percent",
410 ]
411
412 if (is_chromeos) {
413 deps += [
414 "//chromeos",
415 "//chromeos:power_manager_proto",
416 "//chromeos:test_support_without_gmock",
417 "//components/quirks",
418 "//device/bluetooth",
419 "//net:net",
420 "//ui/chromeos",
421 "//ui/display",
422 "//ui/display:test_support",
423 "//ui/display:test_util",
424 ]
425 }
426 }
427
428 test("ash_unittests") { 345 test("ash_unittests") {
429 sources = gypi_values.ash_unittests_sources 346 sources = gypi_values.ash_unittests_sources
430 sources += [ "test/ash_test_environment_default.cc" ] 347 configs += [ "//build/config:precompiled_headers" ]
431 configs += [
432 "//build/config:precompiled_headers",
433 "//build/config/compiler:no_size_t_to_int_warning",
434 ]
435 348
436 deps = [ 349 deps = [
437 ":ash", 350 ":ash",
438 ":test_support_without_content", 351 ":ash_with_content",
352 ":test_support",
353 ":test_support_with_content",
439 "//ash/autoclick/common:autoclick", 354 "//ash/autoclick/common:autoclick",
440 "//ash/common/strings", 355 "//ash/common/strings",
441 "//ash/resources", 356 "//ash/resources",
442 "//ash/touch_hud", 357 "//ash/touch_hud",
443 "//base", 358 "//base",
444 "//base/test:test_support", 359 "//base/test:test_support",
445 "//components/signin/core/account_id", 360 "//components/signin/core/account_id",
446 "//components/user_manager", 361 "//components/user_manager",
362 "//content/public/browser",
363 "//content/test:test_support",
447 "//mojo/edk/system", 364 "//mojo/edk/system",
448 "//skia", 365 "//skia",
449 "//testing/gmock",
450 "//testing/gtest", 366 "//testing/gtest",
451 "//third_party/icu", 367 "//third_party/icu",
452 "//ui/accessibility", 368 "//ui/accessibility",
453 "//ui/app_list/presenter", 369 "//ui/app_list/presenter",
454 "//ui/aura", 370 "//ui/aura",
455 "//ui/aura:test_support", 371 "//ui/aura:test_support",
456 "//ui/base", 372 "//ui/base",
457 "//ui/base:test_support", 373 "//ui/base:test_support",
458 "//ui/base/ime", 374 "//ui/base/ime",
459 "//ui/compositor", 375 "//ui/compositor",
460 "//ui/compositor:test_support", 376 "//ui/compositor:test_support",
461 "//ui/display/types", 377 "//ui/display/types",
462 "//ui/events", 378 "//ui/events",
463 "//ui/events:gesture_detection", 379 "//ui/events:gesture_detection",
464 "//ui/events:test_support", 380 "//ui/events:test_support",
465 "//ui/events/devices", 381 "//ui/events/devices",
466 "//ui/gfx", 382 "//ui/gfx",
467 "//ui/gfx/geometry", 383 "//ui/gfx/geometry",
468 "//ui/keyboard", 384 "//ui/keyboard",
385 "//ui/keyboard:keyboard_with_content",
469 "//ui/message_center", 386 "//ui/message_center",
470 "//ui/message_center:test_support", 387 "//ui/message_center:test_support",
471 "//ui/resources", 388 "//ui/resources",
472 "//ui/strings", 389 "//ui/strings",
473 "//ui/views", 390 "//ui/views",
474 "//ui/views:test_support", 391 "//ui/views:test_support",
392 "//ui/views/controls/webview:test_support",
393 "//ui/web_dialogs:test_support",
475 "//ui/wm", 394 "//ui/wm",
476 "//ui/wm:test_support", 395 "//ui/wm:test_support",
477 "//url", 396 "//url",
478 ] 397 ]
479 398
480 data_deps = [ 399 data_deps = [
481 "//ash/common/strings:ash_test_strings", 400 "//ash/common/strings:ash_test_strings",
482 "//ash/resources:ash_test_resources_100_percent", 401 "//ash/resources:ash_test_resources_100_percent",
483 "//ash/resources:ash_test_resources_200_percent", 402 "//ash/resources:ash_test_resources_200_percent",
484 ] 403 ]
485 404
405 if (!is_chromeos) {
406 sources -= [
407 # TODO(zork): fix this test to build on Windows. See: crosbug.com/26906
408 "focus_cycler_unittest.cc",
409
410 # All tests for multiple displays: not supported on Windows Ash.
411 "wm/drag_window_resizer_unittest.cc",
412
413 # Talks to ChromeOS system services.
414 "wm/lock_state_controller_unittest.cc",
415
416 # Maximize mode is only available on Chrome OS.
417 "wm/maximize_mode/maximize_mode_controller_unittest.cc",
418 "wm/maximize_mode/maximize_mode_window_manager_unittest.cc",
419
420 # Can't resize on Windows Ash. http://crbug.com/165962
421 "autoclick/autoclick_unittest.cc",
422 "magnifier/magnification_controller_unittest.cc",
423 "magnifier/partial_magnification_controller_unittest.cc",
424 "sticky_keys/sticky_keys_overlay_unittest.cc",
425 "virtual_keyboard_controller_unittest.cc",
426 "wm/workspace/workspace_window_resizer_unittest.cc",
427 ]
428 }
429
430 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
431
486 if (!use_x11) { 432 if (!use_x11) {
487 sources -= [ "host/ash_window_tree_host_x11_unittest.cc" ] 433 sources -= [ "host/ash_window_tree_host_x11_unittest.cc" ]
488 } 434 }
489
490 if (is_chromeos) { 435 if (is_chromeos) {
491 sources += [ "first_run/first_run_helper_unittest.cc" ] 436 sources += [ "first_run/first_run_helper_unittest.cc" ]
492 deps += [ 437 deps += [
493 "//chromeos", 438 "//chromeos",
494 "//chromeos:power_manager_proto", 439 "//chromeos:power_manager_proto",
495 "//chromeos:test_support_without_gmock", 440 "//chromeos:test_support_without_gmock",
496 "//components/quirks", 441 "//components/quirks",
497 "//device/bluetooth", 442 "//device/bluetooth",
498 "//net:net", 443 "//net:net",
499 "//ui/chromeos", 444 "//ui/chromeos",
500 "//ui/display", 445 "//ui/display",
501 "//ui/display:test_support", 446 "//ui/display:test_support",
502 "//ui/display:test_util", 447 "//ui/display:test_util",
503 ] 448 ]
504 } else { 449 } else {
505 sources -= [ 450 sources -= [
506 "accelerators/magnifier_key_scroller_unittest.cc", 451 "accelerators/magnifier_key_scroller_unittest.cc",
507 "accelerators/spoken_feedback_toggler_unittest.cc", 452 "accelerators/spoken_feedback_toggler_unittest.cc",
508
509 # Can't resize on Windows Ash. http://crbug.com/165962
510 "autoclick/autoclick_unittest.cc",
511 "display/resolution_notification_controller_unittest.cc", 453 "display/resolution_notification_controller_unittest.cc",
512
513 # TODO(zork): fix this test to build on Windows. See: crosbug.com/26906
514 "focus_cycler_unittest.cc",
515 "magnifier/magnification_controller_unittest.cc",
516 "magnifier/partial_magnification_controller_unittest.cc",
517 "sticky_keys/sticky_keys_overlay_unittest.cc",
518 "sticky_keys/sticky_keys_unittest.cc",
519 "touch/touchscreen_util_unittest.cc", 454 "touch/touchscreen_util_unittest.cc",
520 "virtual_keyboard_controller_unittest.cc",
521
522 # All tests for multiple displays: not supported on Windows Ash.
523 "wm/drag_window_resizer_unittest.cc",
524
525 # Talks to ChromeOS system services.
526 "wm/lock_state_controller_unittest.cc",
527
528 # Maximize mode is only available on Chrome OS.
529 "wm/maximize_mode/maximize_mode_controller_unittest.cc",
530 "wm/maximize_mode/maximize_mode_window_manager_unittest.cc",
531 "wm/workspace/workspace_window_resizer_unittest.cc",
532 ] 455 ]
533 } 456 }
534 457
535 if (!use_x11 || !is_chromeos) { 458 if (!use_x11 || !is_chromeos) {
536 sources -= [ "touch/touch_transformer_controller_unittest.cc" ] 459 sources -= [ "touch/touch_transformer_controller_unittest.cc" ]
537 } 460 }
461
462 if (!is_chromeos) {
463 sources -= [ "sticky_keys/sticky_keys_unittest.cc" ]
464 }
538 } 465 }
539 466
540 executable("ash_shell_with_content") { 467 executable("ash_shell_with_content") {
541 testonly = true 468 testonly = true
542 sources = [ 469 sources = [
543 "shell/content/shell_with_content_main.cc", 470 "shell/content/shell_with_content_main.cc",
544 ] 471 ]
545 472
546 deps = [ 473 deps = [
547 ":ash_shell_lib_with_content", 474 ":ash_shell_lib_with_content",
(...skipping 16 matching lines...) Expand all
564 configs += [ "//build/config/win:windowed" ] 491 configs += [ "//build/config/win:windowed" ]
565 deps += [ "//sandbox" ] 492 deps += [ "//sandbox" ]
566 } 493 }
567 494
568 if (is_chromeos) { 495 if (is_chromeos) {
569 deps += [ "//device/bluetooth" ] 496 deps += [ "//device/bluetooth" ]
570 } 497 }
571 } 498 }
572 # When adding support for isolates, please have a look at run-time dependencies 499 # When adding support for isolates, please have a look at run-time dependencies
573 # in the ash_unittests_run target in ash.gyp. 500 # in the ash_unittests_run target in ash.gyp.
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | ash/ash.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698