| 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/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 | 7 |
| 8 # This target exists to reference other test executables to bring these files | 8 # This target exists to reference other test executables to bring these files |
| 9 # into the build. | 9 # into the build. |
| 10 group("test") { | 10 group("test") { |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 "//chrome:resources", | 207 "//chrome:resources", |
| 208 "//chrome:strings", | 208 "//chrome:strings", |
| 209 "//chrome/browser", | 209 "//chrome/browser", |
| 210 "//chrome/common", | 210 "//chrome/common", |
| 211 "//mojo/edk/system", | 211 "//mojo/edk/system", |
| 212 "//mojo/environment:chromium", | 212 "//mojo/environment:chromium", |
| 213 ] | 213 ] |
| 214 } | 214 } |
| 215 | 215 |
| 216 if (!is_android) { | 216 if (!is_android) { |
| 217 gypi_values = exec_script("//build/gypi_to_gn.py", | 217 gypi_values = exec_script( |
| 218 [ rebase_path("../chrome_tests.gypi") ], | 218 "//build/gypi_to_gn.py", |
| 219 "scope", | 219 [ rebase_path("../chrome_tests.gypi") ], |
| 220 [ "../chrome_tests.gypi" ]) | 220 "scope", |
| 221 | 221 [ "../chrome_tests.gypi" ]) |
| 222 test("interactive_ui_tests") { | |
| 223 sources = rebase_path(gypi_values.chrome_interactive_ui_test_sources, | |
| 224 ".", | |
| 225 "//chrome") | |
| 226 | |
| 227 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | |
| 228 ldflags = [] | |
| 229 | |
| 230 deps = [ | |
| 231 "//base/allocator", | |
| 232 "//chrome/browser", | |
| 233 "//chrome/browser/devtools", | |
| 234 "//chrome/renderer", | |
| 235 "//chrome/test:test_support", | |
| 236 "//chrome:resources", | |
| 237 "//chrome:strings", | |
| 238 "//chrome:packed_extra_resources", | |
| 239 "//chrome:packed_resources", | |
| 240 "//content/app/resources", | |
| 241 "//crypto:platform", | |
| 242 "//google_apis:test_support", | |
| 243 "//net", | |
| 244 "//net:net_resources", | |
| 245 "//net:test_support", | |
| 246 "//pdf", | |
| 247 | |
| 248 #"//ppapi:ppapi_tests", # TODO(GYP) this doesn't exist yet. | |
| 249 "//skia", | |
| 250 "//sync", | |
| 251 "//testing/gmock", | |
| 252 "//testing/gtest", | |
| 253 "//third_party/hunspell", | |
| 254 "//third_party/icu", | |
| 255 "//third_party/libpng", | |
| 256 "//third_party/npapi", | |
| 257 "//third_party/zlib", | |
| 258 "//ui/base:test_support", | |
| 259 "//ui/web_dialogs:test_support", | |
| 260 ] | |
| 261 | |
| 262 # Runtime dependencies | |
| 263 datadeps = [ | |
| 264 "//third_party/mesa:osmesa", | |
| 265 ] | |
| 266 | |
| 267 if (toolkit_views) { | |
| 268 sources += | |
| 269 rebase_path(gypi_values.chrome_interactive_ui_test_views_sources, | |
| 270 ".", | |
| 271 "//chrome") | |
| 272 deps += [ | |
| 273 "//ui/views", | |
| 274 "//ui/views:test_support", | |
| 275 "//ui/views/controls/webview:test_support", | |
| 276 ] | |
| 277 if (is_linux) { | |
| 278 # TODO(gbillock): aura linux does not support the automation for | |
| 279 # SendMouseMoveNotifyWhenDone | |
| 280 sources -= [ "../browser/ui/views/toolbar/toolbar_button_test.cc" ] | |
| 281 } | |
| 282 if (is_mac) { | |
| 283 sources -= [ | |
| 284 "../browser/ui/views/keyboard_access_browsertest.cc", | |
| 285 "../browser/ui/views/message_center/web_notification_tray_browsertest.
cc", | |
| 286 "../browser/ui/views/panels/panel_view_browsertest.cc", | |
| 287 "../browser/ui/views/toolbar/toolbar_button_test.cc", | |
| 288 ] | |
| 289 } | |
| 290 if (is_chromeos) { | |
| 291 sources -= [ | |
| 292 "../../ui/views/widget/desktop_aura/desktop_window_tree_host_x11_inter
active_uitest.cc", | |
| 293 "../../ui/views/widget/desktop_aura/x11_topmost_window_finder_interact
ive_uitest.cc", | |
| 294 ] | |
| 295 } | |
| 296 } | |
| 297 | |
| 298 if (is_linux && !is_chromeos) { | |
| 299 # Desktop linux. | |
| 300 sources -= [ | |
| 301 # TODO(port): This times out. Attempts have been made to fix the | |
| 302 # individual failures, but each time I disable a test from these | |
| 303 # suites, it seems like one or another starts timing out too. | |
| 304 "../browser/ui/views/keyboard_access_browsertest.cc", | |
| 305 ] | |
| 306 } else { | |
| 307 # Everything but desktop Linux. | |
| 308 sources += rebase_path( | |
| 309 gypi_values.chrome_interactive_ui_test_non_desktop_linux_sources, | |
| 310 ".", | |
| 311 "//chrome") | |
| 312 } | |
| 313 | |
| 314 if (is_chromeos) { | |
| 315 sources += | |
| 316 rebase_path(gypi_values.chrome_interactive_ui_test_chromeos_sources, | |
| 317 ".", | |
| 318 "//chrome") | |
| 319 sources += [ "../browser/notifications/login_state_notification_blocker_ch
romeos_browsertest.cc" ] | |
| 320 sources -= [ | |
| 321 # Use only the _chromeos version on ChromeOS. | |
| 322 "../test/base/view_event_test_platform_part_ash.cc", | |
| 323 ] | |
| 324 | |
| 325 deps += [ | |
| 326 "//ash/resources", | |
| 327 "//chromeos", | |
| 328 ] | |
| 329 | |
| 330 if (enable_nacl) { | |
| 331 # TODO(GYP) this is also under a disable_nacl_untrusted==0 condition. | |
| 332 deps += [ | |
| 333 # '../native_client/src/trusted/service_runtime/linux/nacl_bootstrap.g
yp:nacl_helper_bootstrap', TODO(GYP) | |
| 334 # '../components/nacl.gyp:nacl_helper', TODO(GYP) | |
| 335 # '../components/nacl_nonsfi.gyp:nacl_helper_nonsfi', TODO(GYP) | |
| 336 ] | |
| 337 } | |
| 338 | |
| 339 if (is_chrome_branded) { | |
| 340 sources -= [ | |
| 341 # These tests are failing on official cros bots. crbug.com/431450. | |
| 342 "../browser/ui/views/bookmarks/bookmark_bar_view_test.cc", | |
| 343 ] | |
| 344 } | |
| 345 } else { | |
| 346 # ChromeOS doesn't use panels, everybody else does. | |
| 347 sources += | |
| 348 rebase_path(gypi_values.chrome_interactive_ui_test_panels_sources, | |
| 349 ".", | |
| 350 "//chrome") | |
| 351 if (toolkit_views) { | |
| 352 sources += rebase_path( | |
| 353 gypi_values.chrome_interactive_ui_test_panels_views_sources, | |
| 354 ".", | |
| 355 "//chrome") | |
| 356 } | |
| 357 } | |
| 358 | |
| 359 if (!is_linux) { | |
| 360 # Non-Linux platforms (Linux includes ChromeOS here). | |
| 361 sources += rebase_path( | |
| 362 gypi_values.chrome_interactive_ui_test_non_linux_and_chromeos_sour
ces, | |
| 363 ".", | |
| 364 "//chrome") | |
| 365 } | |
| 366 | |
| 367 if (is_win) { | |
| 368 sources += rebase_path(gypi_values.chrome_interactive_ui_test_win_sources, | |
| 369 ".", | |
| 370 "//chrome") | |
| 371 sources += [ | |
| 372 # TODO: It would be nice to have these pulled in automatically from | |
| 373 # direct_dependent_settings in their various targets | |
| 374 # (net.gyp:net_resources, etc.), but that causes errors in other | |
| 375 # targets when resulting .res files get referenced multiple times. | |
| 376 #"$root_gen_dir/chrome_version/other_version.rc", TODO(GYP) what genera
tes this? | |
| 377 "$root_gen_dir/ui/resources/ui_unscaled_resources.rc", | |
| 378 ] | |
| 379 deps += [ | |
| 380 "//third_party/isimpledom", | |
| 381 "//third_party/wtl", | |
| 382 "//ui/resources", | |
| 383 | |
| 384 # 'chrome.gyp:chrome_version_resources' TODO(GYP) | |
| 385 ] | |
| 386 } | |
| 387 | |
| 388 if (is_mac) { | |
| 389 datadeps = [ | |
| 390 "//chrome", | |
| 391 ] | |
| 392 | |
| 393 # TODO(mark): We really want this for all non-static library targets, but | |
| 394 # when we tried to pull it up to the common.gypi level, it broke other | |
| 395 # things like the ui and startup tests. *shrug* | |
| 396 ldflags += [ "-Wl,-ObjC" ] | |
| 397 } else { | |
| 398 # Non-Mac. | |
| 399 sources += | |
| 400 rebase_path(gypi_values.chrome_interactive_ui_test_non_mac_sources, | |
| 401 ".", | |
| 402 "//chrome") | |
| 403 } | |
| 404 | |
| 405 if (cld_version == 0 || cld_version == 2) { | |
| 406 # Interactive tests should use whatever CLD2 data access mode that the | |
| 407 # application embedder is using. | |
| 408 deps += [ "//third_party/cld_2:cld2_platform_impl" ] | |
| 409 } | |
| 410 | |
| 411 if (use_x11) { | |
| 412 configs += [ "//build/config/linux:xtst" ] | |
| 413 datadeps += [ "//tools/xdisplaycheck" ] | |
| 414 } | |
| 415 | |
| 416 if (enable_app_list) { | |
| 417 sources += | |
| 418 rebase_path(gypi_values.chrome_interactive_ui_test_app_list_sources, | |
| 419 ".", | |
| 420 "//chrome") | |
| 421 } | |
| 422 | |
| 423 if (use_ash) { | |
| 424 sources += rebase_path(gypi_values.chrome_interactive_ui_test_ash_sources, | |
| 425 ".", | |
| 426 "//chrome") | |
| 427 deps += [ "//ash:test_support" ] | |
| 428 } | |
| 429 | |
| 430 if (enable_notifications) { | |
| 431 sources += rebase_path( | |
| 432 gypi_values.chrome_interactive_ui_test_notifications_sources, | |
| 433 ".", | |
| 434 "//chrome") | |
| 435 | |
| 436 # Non-ChromeOS notifications tests (ChromeOS does not use cross-platform | |
| 437 # panels). | |
| 438 if (!is_chromeos) { | |
| 439 sources += [ | |
| 440 "../browser/notifications/notification_browsertest.cc", | |
| 441 "../browser/notifications/platform_notification_service_browsertest.cc
", | |
| 442 ] | |
| 443 } | |
| 444 | |
| 445 if (is_android) { | |
| 446 sources -= [ | |
| 447 # Android does not use the message center-based Notification system. | |
| 448 "../browser/notifications/message_center_notifications_browsertest.cc"
, | |
| 449 | |
| 450 # TODO(peter): Enable the Notification browser tests. | |
| 451 "../browser/notifications/notification_browsertest.cc", | |
| 452 "../browser/notifications/platform_notification_service_browsertest.cc
", | |
| 453 ] | |
| 454 } | |
| 455 } # enable_notifications | |
| 456 | |
| 457 if (use_aura || is_chromeos) { | |
| 458 sources -= | |
| 459 [ "../../ui/views/corewm/desktop_capture_controller_unittest.cc" ] | |
| 460 } | |
| 461 } | |
| 462 | 222 |
| 463 source_set("sync_integration_test_support") { | 223 source_set("sync_integration_test_support") { |
| 464 testonly = true | 224 testonly = true |
| 465 sources = rebase_path(gypi_values.test_support_sync_integration_sources, | 225 sources = rebase_path(gypi_values.test_support_sync_integration_sources, |
| 466 ".", | 226 ".", |
| 467 "//chrome") | 227 "//chrome") |
| 468 deps = [ | 228 deps = [ |
| 469 ":test_support", | 229 ":test_support", |
| 470 "//base", | 230 "//base", |
| 471 "//chrome", | 231 "//chrome", |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 ] | 384 ] |
| 625 } else { | 385 } else { |
| 626 sources -= [ "../app/chrome_version.rc.version" ] | 386 sources -= [ "../app/chrome_version.rc.version" ] |
| 627 } | 387 } |
| 628 | 388 |
| 629 if (toolkit_views) { | 389 if (toolkit_views) { |
| 630 deps += [ "//ui/views" ] | 390 deps += [ "//ui/views" ] |
| 631 } | 391 } |
| 632 } | 392 } |
| 633 | 393 |
| 634 # Executable to measure time to load libraries. | 394 # Executable to measure time to load libraries. |
| 635 test("load_library_perf_tests") { | 395 test("load_library_perf_tests") { |
| 636 sources = [ | 396 sources = [ |
| 637 "../browser/load_library_perf_test.cc", | 397 "../browser/load_library_perf_test.cc", |
| 638 ] | 398 ] |
| 639 | 399 |
| 640 deps = [ | 400 deps = [ |
| 641 "//base/test:test_support_perf", | 401 "//base/test:test_support_perf", |
| 642 "//testing/gtest", | 402 "//testing/gtest", |
| 643 "//testing/perf", | 403 "//testing/perf", |
| 644 "//third_party/widevine/cdm:version_h", | 404 "//third_party/widevine/cdm:version_h", |
| 645 ] | 405 ] |
| 646 | 406 |
| 647 # TODO(GYP) CDM adapter stuff. | 407 # TODO(GYP) CDM adapter stuff. |
| 648 #if (enable_pepper_cdms) { | 408 #if (enable_pepper_cdms) { |
| 649 # deps += [ | 409 # deps += [ |
| 650 # "//media/cdm/ppapi:clearkeycdmadapter", | 410 # "//media/cdm/ppapi:clearkeycdmadapter", |
| 651 # "//ppapi:ppapi_cpp", | 411 # "//ppapi:ppapi_cpp", |
| 652 # "//third_party/widevine/cdm:adapter", | 412 # "//third_party/widevine/cdm:adapter", |
| 653 # ] | 413 # ] |
| 654 #} | 414 #} |
| 655 } | 415 } |
| 656 } | 416 } |
| OLD | NEW |