| 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/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
| 6 import("//build/config/compiler/compiler.gni") | 6 import("//build/config/compiler/compiler.gni") |
| 7 import("//build/config/crypto.gni") | 7 import("//build/config/crypto.gni") |
| 8 import("//build/config/features.gni") | 8 import("//build/config/features.gni") |
| 9 import("//build/config/ui.gni") | 9 import("//build/config/ui.gni") |
| 10 import("//build_overrides/v8.gni") | 10 import("//build_overrides/v8.gni") |
| 11 import("//mojo/public/tools/bindings/mojom.gni") | 11 import("//mojo/public/tools/bindings/mojom.gni") |
| 12 import("//testing/test.gni") | 12 import("//testing/test.gni") |
| 13 | 13 |
| 14 content_tests_gypi_values = | 14 content_tests_gypi_values = |
| 15 exec_script("//build/gypi_to_gn.py", | 15 exec_script("//build/gypi_to_gn.py", |
| 16 [ | 16 [ |
| 17 rebase_path("../content_tests.gypi"), | 17 rebase_path("../content_tests.gypi"), |
| 18 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir", | 18 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir", |
| 19 ], | 19 ], |
| 20 "scope", | 20 "scope", |
| 21 [ "../content_tests.gypi" ]) | 21 [ "../content_tests.gypi" ]) |
| 22 | 22 |
| 23 # GYP version //content/content_tests.gypi:test_support_content | 23 # GYP version //content/content_tests.gypi:test_support_content |
| 24 source_set("test_support") { | 24 source_set("test_support") { |
| 25 testonly = true | 25 testonly = true |
| 26 | 26 |
| 27 # See comment at the top of //content/BUILD.gn for why this is disabled in |
| 28 # component builds. |
| 29 if (is_component_build) { |
| 30 check_includes = false |
| 31 } |
| 32 |
| 27 configs += [ | 33 configs += [ |
| 28 "//build/config:precompiled_headers", | 34 "//build/config:precompiled_headers", |
| 29 "//v8:external_startup_data", | 35 "//v8:external_startup_data", |
| 30 ] | 36 ] |
| 31 | 37 |
| 32 public_deps = [ | 38 public_deps = [ |
| 33 "//content/public/app:both", | 39 "//content/public/app:both", |
| 34 "//content/public/browser", | 40 "//content/public/browser", |
| 35 "//content/public/common", | 41 "//content/public/common", |
| 36 "//third_party/WebKit/public:blink", | 42 "//third_party/WebKit/public:blink", |
| 37 ] | 43 ] |
| 38 deps = [ | 44 deps = [ |
| 45 ":browsertest_base", |
| 39 ":content_test_mojo_bindings", | 46 ":content_test_mojo_bindings", |
| 47 "//base/third_party/dynamic_annotations", |
| 40 "//cc", | 48 "//cc", |
| 41 "//cc:test_support", | 49 "//cc:test_support", |
| 42 "//cc/blink", | 50 "//cc/blink", |
| 51 "//cc/surfaces", |
| 43 "//components/scheduler:scheduler", | 52 "//components/scheduler:scheduler", |
| 44 "//components/scheduler:test_support", | 53 "//components/scheduler:test_support", |
| 54 "//content/app:both_for_content_tests", |
| 45 "//content/browser/speech/proto", | 55 "//content/browser/speech/proto", |
| 46 "//content/gpu", | 56 "//content/gpu", |
| 57 "//content/public/browser", |
| 47 "//content/public/child", | 58 "//content/public/child", |
| 48 "//content/public/plugin", | 59 "//content/public/plugin", |
| 49 "//content/public/renderer", | 60 "//content/public/renderer", |
| 50 "//content/public/utility", | 61 "//content/public/utility", |
| 62 "//content/renderer:for_content_tests", |
| 51 "//content/shell:pak", | 63 "//content/shell:pak", |
| 64 "//content/utility:for_content_tests", |
| 52 "//ipc:test_support", | 65 "//ipc:test_support", |
| 53 "//ipc/mojo", | 66 "//ipc/mojo", |
| 54 "//media", | 67 "//media", |
| 55 "//mojo/edk/test:test_support", | 68 "//mojo/edk/test:test_support", |
| 56 "//mojo/shell/public/cpp:cpp_for_chromium", | 69 "//mojo/shell/public/cpp:cpp_for_chromium", |
| 57 "//net:test_support", | 70 "//net:test_support", |
| 58 "//skia", | 71 "//skia", |
| 59 "//storage/browser", | 72 "//storage/browser", |
| 60 "//storage/common", | 73 "//storage/common", |
| 61 "//testing/gmock", | 74 "//testing/gmock", |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 "../renderer/media/mock_peer_connection_impl.h", | 126 "../renderer/media/mock_peer_connection_impl.h", |
| 114 "../renderer/media/mock_web_rtc_peer_connection_handler_client.cc", | 127 "../renderer/media/mock_web_rtc_peer_connection_handler_client.cc", |
| 115 "../renderer/media/mock_web_rtc_peer_connection_handler_client.h", | 128 "../renderer/media/mock_web_rtc_peer_connection_handler_client.h", |
| 116 "../renderer/media/webrtc/mock_peer_connection_dependency_factory.cc", | 129 "../renderer/media/webrtc/mock_peer_connection_dependency_factory.cc", |
| 117 "../renderer/media/webrtc/mock_peer_connection_dependency_factory.h", | 130 "../renderer/media/webrtc/mock_peer_connection_dependency_factory.h", |
| 118 ] | 131 ] |
| 119 | 132 |
| 120 deps += [ | 133 deps += [ |
| 121 "//third_party/libjingle:libjingle_webrtc", | 134 "//third_party/libjingle:libjingle_webrtc", |
| 122 "//third_party/libjingle:libpeerconnection", | 135 "//third_party/libjingle:libpeerconnection", |
| 136 "//third_party/webrtc/base:rtc_base", |
| 123 "//third_party/webrtc/modules/video_capture", | 137 "//third_party/webrtc/modules/video_capture", |
| 124 ] | 138 ] |
| 125 } | 139 } |
| 126 | 140 |
| 127 if (use_glib) { | 141 if (use_glib) { |
| 128 configs += [ "//build/config/linux:glib" ] | 142 configs += [ "//build/config/linux:glib" ] |
| 129 } | 143 } |
| 130 | 144 |
| 131 if (use_aura) { | 145 if (use_aura) { |
| 132 deps += [ | 146 deps += [ |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 if (v8_use_external_startup_data) { | 187 if (v8_use_external_startup_data) { |
| 174 deps += [ "//gin:gin" ] | 188 deps += [ "//gin:gin" ] |
| 175 } | 189 } |
| 176 } | 190 } |
| 177 | 191 |
| 178 # browsertest_support can be used by targets that run content_shell based | 192 # browsertest_support can be used by targets that run content_shell based |
| 179 # browser tests. | 193 # browser tests. |
| 180 source_set("browsertest_support") { | 194 source_set("browsertest_support") { |
| 181 testonly = true | 195 testonly = true |
| 182 | 196 |
| 197 # See comment at the top of //content/BUILD.gn for why this is disabled in |
| 198 # component builds. |
| 199 if (is_component_build) { |
| 200 check_includes = false |
| 201 } |
| 202 |
| 183 sources = [ | 203 sources = [ |
| 184 "../public/test/content_browser_test.cc", | 204 "../public/test/content_browser_test.cc", |
| 185 "../public/test/content_browser_test.h", | 205 "../public/test/content_browser_test.h", |
| 186 "../public/test/content_browser_test_utils.cc", | 206 "../public/test/content_browser_test_utils.cc", |
| 187 "../public/test/content_browser_test_utils.h", | 207 "../public/test/content_browser_test_utils.h", |
| 188 "../public/test/content_browser_test_utils_mac.mm", | 208 "../public/test/content_browser_test_utils_mac.mm", |
| 189 "content_browser_test_utils_internal.cc", | 209 "content_browser_test_utils_internal.cc", |
| 190 "content_browser_test_utils_internal.h", | 210 "content_browser_test_utils_internal.h", |
| 191 "content_test_launcher.cc", | 211 "content_test_launcher.cc", |
| 192 ] | 212 ] |
| 193 | 213 |
| 194 deps = [ | 214 deps = [ |
| 215 ":browsertest_base", |
| 216 ":test_support", |
| 217 "//base", |
| 218 "//base:i18n", |
| 219 "//base/test:test_config", |
| 220 "//base/test:test_support", |
| 221 "//cc/surfaces", |
| 222 "//content/app:both_for_content_tests", |
| 223 "//content/browser:for_content_tests", |
| 195 "//content/shell:content_shell_lib", | 224 "//content/shell:content_shell_lib", |
| 225 "//gin", |
| 226 "//media", |
| 227 "//net", |
| 196 "//skia", | 228 "//skia", |
| 197 "//testing/gtest", | 229 "//testing/gtest", |
| 198 "//ui/accessibility:ax_gen", | 230 "//ui/accessibility:ax_gen", |
| 231 "//ui/base", |
| 232 "//ui/base/ime", |
| 199 ] | 233 ] |
| 200 | 234 |
| 201 if (is_android) { | 235 if (is_android) { |
| 202 deps += [ "//content/public/app:both" ] | 236 deps += [ "//content/public/app:both" ] |
| 203 } else { | 237 } else { |
| 204 deps += [ "//content/public/browser" ] | 238 deps += [ "//content/public/browser" ] |
| 205 } | 239 } |
| 206 | 240 |
| 207 configs += [ "//v8:external_startup_data" ] | 241 configs += [ "//v8:external_startup_data" ] |
| 208 } | 242 } |
| 209 | 243 |
| 210 # browsertest_base can be used by any browser test target. | 244 # browsertest_base can be used by any browser test target. |
| 211 source_set("browsertest_base") { | 245 source_set("browsertest_base") { |
| 212 testonly = true | 246 testonly = true |
| 213 | 247 |
| 214 sources = [ | 248 sources = [ |
| 215 "../public/test/browser_test.h", | 249 "../public/test/browser_test.h", |
| 216 "../public/test/browser_test_base.cc", | 250 "../public/test/browser_test_base.cc", |
| 217 "../public/test/browser_test_base.h", | 251 "../public/test/browser_test_base.h", |
| 218 "../public/test/browser_test_utils.cc", | 252 "../public/test/browser_test_utils.cc", |
| 219 "../public/test/browser_test_utils.h", | 253 "../public/test/browser_test_utils.h", |
| 220 ] | 254 ] |
| 221 | 255 |
| 222 public_deps = [ | 256 public_deps = [ |
| 257 "//content/browser:for_content_tests", |
| 223 "//content/public/browser", | 258 "//content/public/browser", |
| 224 "//content/public/common", | 259 "//content/public/common", |
| 225 "//third_party/WebKit/public:blink", | 260 "//third_party/WebKit/public:blink", |
| 226 ] | 261 ] |
| 227 deps = [ | 262 deps = [ |
| 228 "//base:base", | 263 "//base:base", |
| 264 "//content/public/app:both", |
| 229 "//net:test_support", | 265 "//net:test_support", |
| 230 "//testing/gtest", | 266 "//testing/gtest", |
| 231 "//ui/base", | 267 "//ui/base", |
| 232 "//ui/base:test_support", | 268 "//ui/base:test_support", |
| 233 "//ui/base/ime", | 269 "//ui/base/ime", |
| 234 "//ui/events:dom_keycode_converter", | 270 "//ui/events:dom_keycode_converter", |
| 235 "//ui/events:events_base", | 271 "//ui/events:events_base", |
| 236 "//ui/events:gesture_detection", | 272 "//ui/events:gesture_detection", |
| 237 "//ui/resources", | 273 "//ui/resources", |
| 238 ] | 274 ] |
| 239 } | 275 } |
| 240 | 276 |
| 241 mojom("content_test_mojo_bindings") { | 277 mojom("content_test_mojo_bindings") { |
| 242 sources = [ | 278 sources = [ |
| 243 "../public/test/test_mojo_service.mojom", | 279 "../public/test/test_mojo_service.mojom", |
| 244 ] | 280 ] |
| 245 } | 281 } |
| 246 | 282 |
| 247 mojom("web_ui_test_mojo_bindings") { | 283 mojom("web_ui_test_mojo_bindings") { |
| 248 sources = [ | 284 sources = [ |
| 249 "data/web_ui_test_mojo_bindings.mojom", | 285 "data/web_ui_test_mojo_bindings.mojom", |
| 250 ] | 286 ] |
| 251 } | 287 } |
| 252 | 288 |
| 253 # GYP version //content/content_tests.gypi:layouttest_support_content | 289 # GYP version //content/content_tests.gypi:layouttest_support_content |
| 254 static_library("layouttest_support") { | 290 static_library("layouttest_support") { |
| 255 testonly = true | 291 testonly = true |
| 292 |
| 293 # See comment at the top of //content/BUILD.gn for why this is disabled in |
| 294 # component builds. |
| 295 if (is_component_build) { |
| 296 check_includes = false |
| 297 } |
| 298 |
| 256 sources = | 299 sources = |
| 257 rebase_path(content_tests_gypi_values.layouttest_support_content_sources, | 300 rebase_path(content_tests_gypi_values.layouttest_support_content_sources, |
| 258 ".", | 301 ".", |
| 259 "//content") | 302 "//content") |
| 260 | 303 |
| 261 deps = [ | 304 deps = [ |
| 262 ":test_support", | 305 ":test_support", |
| 263 "//cc", | 306 "//cc", |
| 264 "//cc/blink", | 307 "//cc/blink", |
| 265 "//components/test_runner:test_runner", | 308 "//components/test_runner:test_runner", |
| 309 "//content/browser:for_content_tests", |
| 266 "//content/public/common", | 310 "//content/public/common", |
| 311 |
| 312 #"//content/shell:content_shell_lib", |
| 313 "//content/renderer:for_content_tests", |
| 267 "//mojo/edk/test:test_support", | 314 "//mojo/edk/test:test_support", |
| 268 "//skia", | 315 "//skia", |
| 269 "//ui/accessibility:ax_gen", | 316 "//ui/accessibility:ax_gen", |
| 270 "//v8", | 317 "//v8", |
| 271 ] | 318 ] |
| 272 | 319 |
| 273 if (is_android) { | 320 if (is_android) { |
| 274 deps += [ ":jni" ] | 321 deps += [ ":jni" ] |
| 275 } | 322 } |
| 276 } | 323 } |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 testonly = true | 379 testonly = true |
| 333 data = [ | 380 data = [ |
| 334 "//testing/buildbot/filters/site-per-process.content_browsertests.filter", | 381 "//testing/buildbot/filters/site-per-process.content_browsertests.filter", |
| 335 ] | 382 ] |
| 336 data_deps = [ | 383 data_deps = [ |
| 337 ":content_browsertests", | 384 ":content_browsertests", |
| 338 ] | 385 ] |
| 339 } | 386 } |
| 340 | 387 |
| 341 test("content_browsertests") { | 388 test("content_browsertests") { |
| 389 # See comment at the top of //content/BUILD.gn for why this is disabled in |
| 390 # component builds. |
| 391 if (is_component_build) { |
| 392 check_includes = false |
| 393 } |
| 394 |
| 342 sources = rebase_path(content_tests_gypi_values.content_browsertests_sources, | 395 sources = rebase_path(content_tests_gypi_values.content_browsertests_sources, |
| 343 ".", | 396 ".", |
| 344 "//content") | 397 "//content") |
| 345 | 398 |
| 346 if (is_android || is_linux || is_mac || is_win) { | 399 if (is_android || is_linux || is_mac || is_win) { |
| 347 data = [ | 400 data = [ |
| 348 "$root_out_dir/content_shell.pak", | 401 "$root_out_dir/content_shell.pak", |
| 349 "data/", | 402 "data/", |
| 350 "//net/data/", | 403 "//net/data/", |
| 351 "//media/test/data/", | 404 "//media/test/data/", |
| (...skipping 30 matching lines...) Expand all Loading... |
| 382 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | 435 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| 383 | 436 |
| 384 configs += [ | 437 configs += [ |
| 385 "//build/config:precompiled_headers", | 438 "//build/config:precompiled_headers", |
| 386 "//build/config/compiler:no_size_t_to_int_warning", | 439 "//build/config/compiler:no_size_t_to_int_warning", |
| 387 ] | 440 ] |
| 388 | 441 |
| 389 deps = [ | 442 deps = [ |
| 390 ":browsertest_base", | 443 ":browsertest_base", |
| 391 ":browsertest_support", | 444 ":browsertest_support", |
| 445 ":content_test_mojo_bindings", |
| 392 ":web_ui_test_mojo_bindings", | 446 ":web_ui_test_mojo_bindings", |
| 393 "//base/test:test_support", | 447 "//base/test:test_support", |
| 448 "//components/scheduler", |
| 394 "//content:resources", | 449 "//content:resources", |
| 450 "//content/app:both_for_content_tests", |
| 451 "//content/browser:for_content_tests", |
| 395 "//content/browser/background_sync:background_sync_proto", | 452 "//content/browser/background_sync:background_sync_proto", |
| 396 "//content/common:mojo_bindings", | 453 "//content/common:mojo_bindings", |
| 397 "//content/gpu", | 454 "//content/gpu", |
| 455 "//content/public/browser", |
| 456 "//content/public/child", |
| 398 "//content/public/common", | 457 "//content/public/common", |
| 399 "//content/public/plugin", | 458 "//content/public/plugin", |
| 400 "//content/public/renderer", | 459 "//content/public/renderer", |
| 460 "//content/renderer:for_content_tests", |
| 401 "//content/shell:content_shell_lib", | 461 "//content/shell:content_shell_lib", |
| 402 "//content/shell:pak", | 462 "//content/shell:pak", |
| 403 "//content/test:test_support", | 463 "//content/test:test_support", |
| 404 "//device/battery", | 464 "//device/battery", |
| 405 "//device/battery:mojo_bindings", | 465 "//device/battery:mojo_bindings", |
| 406 "//device/vibration:mojo_bindings", | 466 "//device/vibration:mojo_bindings", |
| 407 "//gin", | 467 "//gin", |
| 408 "//gpu", | 468 "//gpu", |
| 469 "//gpu/blink", |
| 409 "//ipc:test_support", | 470 "//ipc:test_support", |
| 410 "//media:media_features", | 471 "//media", |
| 411 "//media:shared_memory_support", | |
| 412 "//media:test_support", | 472 "//media:test_support", |
| 413 "//media/audio:test_support", | 473 "//media/audio:test_support", |
| 414 "//media/base:test_support", | 474 "//media/base:test_support", |
| 415 "//mojo/edk/system", | 475 "//mojo/edk/system", |
| 416 "//mojo/edk/test:test_support", | 476 "//mojo/edk/test:test_support", |
| 417 "//mojo/public/cpp/bindings", | 477 "//mojo/public/cpp/bindings", |
| 418 "//mojo/public/js", | 478 "//mojo/public/js", |
| 419 "//mojo/shell/public/cpp:cpp_for_chromium", | 479 "//mojo/shell/public/cpp:cpp_for_chromium", |
| 420 "//mojo/test:test_support", | 480 "//mojo/test:test_support", |
| 421 "//net:test_support", | 481 "//net:test_support", |
| 482 "//storage/browser", |
| 422 "//testing/gmock", | 483 "//testing/gmock", |
| 423 "//testing/gtest", | 484 "//testing/gtest", |
| 424 "//third_party/WebKit/public:blink", | 485 "//third_party/WebKit/public:blink", |
| 425 "//third_party/leveldatabase", | 486 "//third_party/leveldatabase", |
| 426 "//third_party/mesa:osmesa", | 487 "//third_party/mesa:osmesa", |
| 427 "//third_party/zlib", | 488 "//third_party/zlib", |
| 428 "//ui/accessibility", | 489 "//ui/accessibility", |
| 429 "//ui/accessibility:ax_gen", | 490 "//ui/accessibility:ax_gen", |
| 430 "//ui/base", | 491 "//ui/base:test_support", |
| 431 "//ui/base/ime", | 492 "//ui/base/ime", |
| 493 "//ui/compositor", |
| 432 "//ui/gfx", | 494 "//ui/gfx", |
| 433 "//ui/gfx/geometry", | 495 "//ui/gfx/geometry", |
| 434 "//ui/gl", | 496 "//ui/gl", |
| 435 "//ui/gl:test_support", | 497 "//ui/gl:test_support", |
| 436 "//ui/resources", | 498 "//ui/resources", |
| 437 "//ui/shell_dialogs", | 499 "//ui/shell_dialogs", |
| 438 "//ui/snapshot", | 500 "//ui/snapshot", |
| 439 ] | 501 ] |
| 440 | 502 |
| 441 data_deps = [ | 503 data_deps = [ |
| 442 "//third_party/mesa:osmesa", | 504 "//third_party/mesa:osmesa", |
| 443 ] | 505 ] |
| 444 | 506 |
| 445 if (enable_plugins) { | 507 if (enable_plugins) { |
| 446 deps += [ | 508 deps += [ |
| 447 "//ppapi/host", | 509 "//ppapi/host", |
| 448 "//ppapi/proxy", | 510 "//ppapi/proxy", |
| 449 "//ppapi/proxy:ipc", | 511 "//ppapi/proxy:ipc", |
| 450 "//ppapi/shared_impl", | 512 "//ppapi/shared_impl:test_support", |
| 451 ] | 513 ] |
| 452 data_deps += [ "//ppapi:ppapi_tests" ] | 514 data_deps += [ "//ppapi:ppapi_tests" ] |
| 453 } | 515 } |
| 454 | 516 |
| 455 if (is_win) { | 517 if (is_win) { |
| 456 sources += | 518 sources += |
| 457 rebase_path(content_tests_gypi_values.content_browsertests_win_sources, | 519 rebase_path(content_tests_gypi_values.content_browsertests_win_sources, |
| 458 ".", | 520 ".", |
| 459 "//content") | 521 "//content") |
| 460 | 522 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 ".", | 579 ".", |
| 518 "//content") | 580 "//content") |
| 519 deps += [ "//testing/perf" ] | 581 deps += [ "//testing/perf" ] |
| 520 } | 582 } |
| 521 | 583 |
| 522 if (enable_plugins) { | 584 if (enable_plugins) { |
| 523 sources += rebase_path( | 585 sources += rebase_path( |
| 524 content_tests_gypi_values.content_browsertests_plugins_sources, | 586 content_tests_gypi_values.content_browsertests_plugins_sources, |
| 525 ".", | 587 ".", |
| 526 "//content") | 588 "//content") |
| 589 deps += [ "//ppapi/proxy:test_support" ] |
| 527 data_deps += [ "//ppapi:ppapi_tests" ] | 590 data_deps += [ "//ppapi:ppapi_tests" ] |
| 528 } | 591 } |
| 529 | 592 |
| 530 if (enable_web_speech) { | 593 if (enable_web_speech) { |
| 531 sources += rebase_path( | 594 sources += rebase_path( |
| 532 content_tests_gypi_values.content_browsertests_speech_sources, | 595 content_tests_gypi_values.content_browsertests_speech_sources, |
| 533 ".", | 596 ".", |
| 534 "//content") | 597 "//content") |
| 535 } | 598 } |
| 536 | 599 |
| 537 if (!is_chrome_branded) { | 600 if (!is_chrome_branded) { |
| 538 sources += rebase_path( | 601 sources += rebase_path( |
| 539 content_tests_gypi_values.content_browsertests_unofficial_build_sour
ces, | 602 content_tests_gypi_values.content_browsertests_unofficial_build_sour
ces, |
| 540 ".", | 603 ".", |
| 541 "//content") | 604 "//content") |
| 542 } | 605 } |
| 543 | 606 |
| 544 if (use_aura) { | 607 if (use_aura) { |
| 545 deps += [ | 608 deps += [ |
| 609 "//ui/aura", |
| 546 "//ui/touch_selection:test_support", | 610 "//ui/touch_selection:test_support", |
| 547 "//ui/touch_selection:touch_selection", | 611 "//ui/touch_selection:touch_selection", |
| 548 ] | 612 ] |
| 549 } else { | 613 } else { |
| 550 sources -= [ | 614 sources -= [ |
| 551 "../browser/accessibility/touch_accessibility_aura_browsertest.cc", | 615 "../browser/accessibility/touch_accessibility_aura_browsertest.cc", |
| 552 "../browser/renderer_host/input/touch_selection_controller_client_aura_bro
wsertest.cc", | 616 "../browser/renderer_host/input/touch_selection_controller_client_aura_bro
wsertest.cc", |
| 553 "../browser/web_contents/web_contents_view_aura_browsertest.cc", | 617 "../browser/web_contents/web_contents_view_aura_browsertest.cc", |
| 554 ] | 618 ] |
| 555 } | 619 } |
| 556 } | 620 } |
| 557 | 621 |
| 558 test("content_unittests") { | 622 test("content_unittests") { |
| 623 # See comment at the top of //content/BUILD.gn for why this is disabled in |
| 624 # component builds. |
| 625 if (is_component_build) { |
| 626 check_includes = false |
| 627 } |
| 628 |
| 559 defines = [] | 629 defines = [] |
| 560 sources = rebase_path(content_tests_gypi_values.content_unittests_sources, | 630 sources = rebase_path(content_tests_gypi_values.content_unittests_sources, |
| 561 ".", | 631 ".", |
| 562 "//content") | 632 "//content") |
| 563 | 633 |
| 564 if (is_android || is_linux || is_mac || is_win) { | 634 if (is_android || is_linux || is_mac || is_win) { |
| 565 data = [ | 635 data = [ |
| 566 "$root_out_dir/content_shell.pak", | 636 "$root_out_dir/content_shell.pak", |
| 567 "data/", | 637 "data/", |
| 568 "//net/data/ssl/certificates/", | 638 "//net/data/ssl/certificates/", |
| 569 "//media/test/data/", | 639 "//media/test/data/", |
| 570 ] | 640 ] |
| 571 } | 641 } |
| 572 | 642 |
| 573 configs += [ "//build/config:precompiled_headers" ] | 643 configs += [ "//build/config:precompiled_headers" ] |
| 574 | 644 |
| 575 deps = [ | 645 deps = [ |
| 646 ":content_test_mojo_bindings", |
| 576 ":test_support", | 647 ":test_support", |
| 577 "//base/test:test_support", | 648 "//base/test:test_support", |
| 578 "//base/third_party/dynamic_annotations", | 649 "//base/third_party/dynamic_annotations", |
| 579 "//cc", | 650 "//cc", |
| 580 "//cc:test_support", | 651 "//cc:test_support", |
| 581 "//cc/surfaces", | 652 "//cc/surfaces", |
| 653 "//components/scheduler", |
| 582 "//content:resources", | 654 "//content:resources", |
| 583 "//content/browser/background_sync:background_sync_proto", | 655 "//content/app:both_for_content_tests", |
| 656 "//content/browser:for_content_tests", |
| 584 "//content/browser/cache_storage:cache_storage_proto", | 657 "//content/browser/cache_storage:cache_storage_proto", |
| 585 "//content/browser/notifications:notification_proto", | 658 "//content/browser/notifications:notification_proto", |
| 586 "//content/browser/service_worker:service_worker_proto", | 659 "//content/browser/service_worker:service_worker_proto", |
| 587 "//content/browser/speech/proto", | 660 "//content/browser/speech/proto", |
| 588 "//content/common:mojo_bindings", | 661 "//content/common:mojo_bindings", |
| 589 "//content/gpu", | 662 "//content/gpu", |
| 590 "//content/public/browser", | 663 "//content/public/browser", |
| 591 "//content/public/child", | 664 "//content/public/child", |
| 592 "//content/public/common", | 665 "//content/public/common", |
| 593 "//content/public/common:mojo_bindings", | 666 "//content/public/common:mojo_bindings", |
| 594 "//content/public/plugin", | 667 "//content/public/plugin", |
| 595 "//content/public/renderer", | 668 "//content/public/renderer", |
| 669 "//content/renderer:for_content_tests", |
| 596 "//crypto", | 670 "//crypto", |
| 597 "//device/battery", | 671 "//device/battery", |
| 598 "//device/battery:mojo_bindings", | 672 "//device/battery:mojo_bindings", |
| 599 "//device/bluetooth", | 673 "//device/bluetooth", |
| 600 "//gin", | 674 "//gin", |
| 601 "//gpu", | 675 "//gpu", |
| 602 "//gpu:test_support", | 676 "//gpu:test_support", |
| 603 "//ipc:test_support", | 677 "//ipc:test_support", |
| 604 "//media:shared_memory_support", | 678 "//media:shared_memory_support", |
| 605 "//media:test_support", | 679 "//media:test_support", |
| 606 "//media/audio:test_support", | 680 "//media/audio:test_support", |
| 607 "//media/base:test_support", | 681 "//media/base:test_support", |
| 608 "//media/midi:midi", | 682 "//media/midi:midi", |
| 609 "//mojo/edk/test:test_support", | 683 "//mojo/edk/test:test_support", |
| 610 "//mojo/public/cpp/bindings", | 684 "//mojo/public/cpp/bindings", |
| 611 "//net:extras", | 685 "//net:extras", |
| 612 "//net:test_support", | 686 "//net:test_support", |
| 687 "//ppapi/c", |
| 688 "//printing", |
| 613 "//skia", | 689 "//skia", |
| 614 "//sql", | 690 "//sql", |
| 615 "//sql:test_support", | 691 "//sql:test_support", |
| 616 "//storage/browser", | 692 "//storage/browser", |
| 617 "//storage/common", | 693 "//storage/common", |
| 618 "//testing/gmock", | 694 "//testing/gmock", |
| 619 "//testing/gtest", | 695 "//testing/gtest", |
| 620 "//third_party/WebKit/public:blink", | 696 "//third_party/WebKit/public:blink", |
| 621 "//third_party/icu", | 697 "//third_party/icu", |
| 622 "//third_party/leveldatabase", | 698 "//third_party/leveldatabase", |
| 623 "//third_party/libjingle", | 699 "//third_party/libjingle", |
| 624 "//third_party/re2", | 700 "//third_party/re2", |
| 701 "//third_party/widevine/cdm:version_h", |
| 625 "//ui/accessibility", | 702 "//ui/accessibility", |
| 626 "//ui/base", | 703 "//ui/base:test_support", |
| 627 "//ui/compositor:test_support", | 704 "//ui/compositor:test_support", |
| 628 "//ui/events/blink", | 705 "//ui/events/blink", |
| 629 "//ui/gfx", | 706 "//ui/gfx:test_support", |
| 630 "//ui/gfx/geometry", | 707 "//ui/gfx/geometry", |
| 631 "//ui/gfx/ipc", | 708 "//ui/gfx/ipc", |
| 632 "//ui/gl", | 709 "//ui/gl", |
| 633 "//ui/gl:test_support", | 710 "//ui/gl:test_support", |
| 634 ] | 711 ] |
| 635 | 712 |
| 636 data_deps = [ | 713 data_deps = [ |
| 637 "//third_party/mesa:osmesa", | 714 "//third_party/mesa:osmesa", |
| 638 ] | 715 ] |
| 639 | 716 |
| 640 if (!is_win) { | 717 if (!is_win) { |
| 641 sources += [ "../browser/file_descriptor_info_impl_unittest.cc" ] | 718 sources += [ "../browser/file_descriptor_info_impl_unittest.cc" ] |
| 642 } | 719 } |
| 643 | 720 |
| 644 if (enable_plugins) { | 721 if (enable_plugins) { |
| 645 sources += | 722 sources += |
| 646 rebase_path(content_tests_gypi_values.content_unittests_plugins_sources, | 723 rebase_path(content_tests_gypi_values.content_unittests_plugins_sources, |
| 647 ".", | 724 ".", |
| 648 "//content") | 725 "//content") |
| 726 deps += [ |
| 727 "//ppapi/host", |
| 728 "//ppapi/proxy:test_support", |
| 729 "//ppapi/shared_impl:test_support", |
| 730 ] |
| 649 } | 731 } |
| 650 | 732 |
| 651 if (enable_webrtc) { | 733 if (enable_webrtc) { |
| 652 sources += | 734 sources += |
| 653 rebase_path(content_tests_gypi_values.content_unittests_webrtc_sources, | 735 rebase_path(content_tests_gypi_values.content_unittests_webrtc_sources, |
| 654 ".", | 736 ".", |
| 655 "//content") | 737 "//content") |
| 656 deps += [ | 738 deps += [ |
| 657 "//third_party/libjingle:libjingle_webrtc", | 739 "//third_party/libjingle:libjingle_webrtc", |
| 658 "//third_party/libjingle:libpeerconnection", | 740 "//third_party/libjingle:libpeerconnection", |
| 741 "//third_party/webrtc/base:rtc_base", |
| 742 "//third_party/webrtc/modules/desktop_capture:primitives", |
| 659 "//third_party/webrtc/modules/video_capture", | 743 "//third_party/webrtc/modules/video_capture", |
| 660 "//ui/shell_dialogs:shell_dialogs", | 744 "//ui/shell_dialogs:shell_dialogs", |
| 661 ] | 745 ] |
| 662 | 746 |
| 663 if (is_linux || is_mac || is_win) { | 747 if (is_linux || is_mac || is_win) { |
| 664 sources += | 748 sources += |
| 665 [ "../browser/media/capture/desktop_capture_device_unittest.cc" ] | 749 [ "../browser/media/capture/desktop_capture_device_unittest.cc" ] |
| 666 deps += [ "//third_party/webrtc/modules/desktop_capture" ] | 750 deps += [ "//third_party/webrtc/modules/desktop_capture" ] |
| 667 } | 751 } |
| 668 | 752 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 696 } | 780 } |
| 697 } | 781 } |
| 698 if (is_win) { | 782 if (is_win) { |
| 699 deps += [ "//third_party/iaccessible2" ] | 783 deps += [ "//third_party/iaccessible2" ] |
| 700 } | 784 } |
| 701 if (is_mac) { | 785 if (is_mac) { |
| 702 # These flags are needed to run the test on Mac. | 786 # These flags are needed to run the test on Mac. |
| 703 # Search for comments about "xcode_settings" in chrome_tests.gypi. | 787 # Search for comments about "xcode_settings" in chrome_tests.gypi. |
| 704 ldflags = [ "-Wl,-ObjC" ] | 788 ldflags = [ "-Wl,-ObjC" ] |
| 705 | 789 |
| 706 deps += [ "//third_party/ocmock" ] | 790 deps += [ |
| 791 "//third_party/mozilla", |
| 792 "//third_party/ocmock", |
| 793 ] |
| 707 } | 794 } |
| 708 if (is_chromeos) { | 795 if (is_chromeos) { |
| 709 sources -= [ "../browser/geolocation/wifi_data_provider_linux_unittest.cc" ] | 796 sources -= [ "../browser/geolocation/wifi_data_provider_linux_unittest.cc" ] |
| 710 deps += [ "//chromeos" ] | 797 deps += [ "//chromeos" ] |
| 711 } | 798 } |
| 712 if (is_android) { | 799 if (is_android) { |
| 713 sources += | 800 sources += |
| 714 rebase_path(content_tests_gypi_values.content_unittests_android_sources, | 801 rebase_path(content_tests_gypi_values.content_unittests_android_sources, |
| 715 ".", | 802 ".", |
| 716 "//content") | 803 "//content") |
| (...skipping 14 matching lines...) Expand all Loading... |
| 731 | 818 |
| 732 defines += [ "APPCACHE_USE_SIMPLE_CACHE" ] | 819 defines += [ "APPCACHE_USE_SIMPLE_CACHE" ] |
| 733 } | 820 } |
| 734 if (!is_android) { | 821 if (!is_android) { |
| 735 deps += [ "//third_party/libvpx" ] | 822 deps += [ "//third_party/libvpx" ] |
| 736 } | 823 } |
| 737 | 824 |
| 738 if (use_aura) { | 825 if (use_aura) { |
| 739 deps += [ | 826 deps += [ |
| 740 "//components/mus/public/cpp/tests:unittest_support", | 827 "//components/mus/public/cpp/tests:unittest_support", |
| 741 "//ui/aura", | 828 "//ui/aura:test_support", |
| 742 "//ui/aura_extra", | 829 "//ui/aura_extra", |
| 743 "//ui/wm", | 830 "//ui/wm", |
| 744 ] | 831 ] |
| 745 sources += [ "../renderer/mus/compositor_mus_connection_unittest.cc" ] | 832 sources += [ "../renderer/mus/compositor_mus_connection_unittest.cc" ] |
| 746 } else { | 833 } else { |
| 747 sources -= [ | 834 sources -= [ |
| 748 "../browser/renderer_host/render_widget_host_view_aura_unittest.cc", | 835 "../browser/renderer_host/render_widget_host_view_aura_unittest.cc", |
| 749 "../browser/renderer_host/web_input_event_aura_unittest.cc", | 836 "../browser/renderer_host/web_input_event_aura_unittest.cc", |
| 750 "../browser/web_contents/aura/overscroll_navigation_overlay_unittest.cc", | 837 "../browser/web_contents/aura/overscroll_navigation_overlay_unittest.cc", |
| 751 "../browser/web_contents/aura/overscroll_window_animation_unittest.cc", | 838 "../browser/web_contents/aura/overscroll_window_animation_unittest.cc", |
| (...skipping 24 matching lines...) Expand all Loading... |
| 776 if (use_ozone) { | 863 if (use_ozone) { |
| 777 deps += [ "//ui/ozone" ] | 864 deps += [ "//ui/ozone" ] |
| 778 } else { | 865 } else { |
| 779 sources -= | 866 sources -= |
| 780 [ "../browser/compositor/software_output_device_ozone_unittest.cc" ] | 867 [ "../browser/compositor/software_output_device_ozone_unittest.cc" ] |
| 781 } | 868 } |
| 782 | 869 |
| 783 if (is_mac && use_openssl) { | 870 if (is_mac && use_openssl) { |
| 784 deps += [ "//third_party/boringssl" ] | 871 deps += [ "//third_party/boringssl" ] |
| 785 } | 872 } |
| 873 |
| 874 if (use_x11) { |
| 875 deps += [ "//ui/gfx/x" ] |
| 876 } |
| 786 } | 877 } |
| 787 | 878 |
| 788 test("content_perftests") { | 879 test("content_perftests") { |
| 880 # See comment at the top of //content/BUILD.gn for why this is disabled in |
| 881 # component builds. |
| 882 if (is_component_build) { |
| 883 check_includes = false |
| 884 } |
| 885 |
| 789 sources = [ | 886 sources = [ |
| 790 "../browser/renderer_host/input/input_router_impl_perftest.cc", | 887 "../browser/renderer_host/input/input_router_impl_perftest.cc", |
| 791 "../common/cc_messages_perftest.cc", | 888 "../common/cc_messages_perftest.cc", |
| 792 "../test/run_all_perftests.cc", | 889 "../test/run_all_perftests.cc", |
| 793 ] | 890 ] |
| 794 deps = [ | 891 deps = [ |
| 795 "//base/test:test_support", | 892 "//base/test:test_support", |
| 796 "//cc", | 893 "//cc", |
| 894 "//content/browser:for_content_tests", |
| 797 "//content/public/browser", | 895 "//content/public/browser", |
| 798 "//content/public/common", | 896 "//content/public/common", |
| 799 "//content/test:test_support", | 897 "//content/test:test_support", |
| 800 "//skia", | 898 "//skia", |
| 801 "//testing/gtest", | 899 "//testing/gtest", |
| 802 "//testing/perf", | 900 "//testing/perf", |
| 803 "//ui/gfx", | 901 "//ui/gfx", |
| 804 "//ui/gfx/geometry", | 902 "//ui/gfx/geometry", |
| 805 ] | 903 ] |
| 806 | 904 |
| 807 if (is_android) { | 905 if (is_android) { |
| 808 deps += [ "//testing/android/native_test:native_test_native_code" ] | 906 deps += [ "//testing/android/native_test:native_test_native_code" ] |
| 809 } | 907 } |
| 810 } | 908 } |
| 811 | 909 |
| 812 test("content_gl_tests") { | 910 test("content_gl_tests") { |
| 911 # See comment at the top of //content/BUILD.gn for why this is disabled in |
| 912 # component builds. |
| 913 if (is_component_build) { |
| 914 check_includes = false |
| 915 } |
| 916 |
| 813 sources = [ | 917 sources = [ |
| 814 "../browser/compositor/gl_helper_unittest.cc", | 918 "../browser/compositor/gl_helper_unittest.cc", |
| 815 "../common/gpu/client/gpu_in_process_context_tests.cc", | 919 "../common/gpu/client/gpu_in_process_context_tests.cc", |
| 816 "run_all_gl_tests.cc", | 920 "run_all_gl_tests.cc", |
| 817 ] | 921 ] |
| 818 | 922 |
| 819 deps = [ | 923 deps = [ |
| 820 ":test_support", | 924 ":test_support", |
| 821 "//base/test:test_support", | 925 "//base/test:test_support", |
| 926 "//content/browser:for_content_tests", |
| 822 "//content/public/common", | 927 "//content/public/common", |
| 823 "//gpu/blink", | 928 "//gpu/blink", |
| 929 "//gpu/command_buffer/client:gl_in_process_context", |
| 930 "//gpu/command_buffer/client:gles2_implementation", |
| 824 "//gpu/command_buffer/common", | 931 "//gpu/command_buffer/common", |
| 932 "//media", |
| 825 "//testing/gtest", | 933 "//testing/gtest", |
| 826 "//third_party/WebKit/public:blink", | 934 "//third_party/WebKit/public:blink", |
| 827 "//ui/base", | 935 "//ui/base", |
| 828 "//ui/gfx", | 936 "//ui/gfx", |
| 829 "//ui/gfx:test_support", | 937 "//ui/gfx:test_support", |
| 830 "//ui/gfx/geometry", | 938 "//ui/gfx/geometry", |
| 831 "//ui/gl", | 939 "//ui/gl", |
| 832 "//ui/gl:test_support", | 940 "//ui/gl:test_support", |
| 833 "//v8", | 941 "//v8", |
| 834 ] | 942 ] |
| 835 | 943 |
| 836 if (is_android) { | 944 if (is_android) { |
| 837 deps += [ | 945 deps += [ |
| 838 "//content/public/test/android:content_java_test_support", | 946 "//content/public/test/android:content_java_test_support", |
| 839 "//content/shell/android:content_shell_assets", | 947 "//content/shell/android:content_shell_assets", |
| 840 ] | 948 ] |
| 841 } else { | 949 } else { |
| 842 data_deps = [ | 950 data_deps = [ |
| 843 "//third_party/ffmpeg", | 951 "//third_party/ffmpeg", |
| 844 "//third_party/mesa:osmesa", | 952 "//third_party/mesa:osmesa", |
| 845 ] | 953 ] |
| 846 } | 954 } |
| 847 } | 955 } |
| 848 | 956 |
| 849 test("content_gl_benchmark") { | 957 test("content_gl_benchmark") { |
| 958 # See comment at the top of //content/BUILD.gn for why this is disabled in |
| 959 # component builds. |
| 960 if (is_component_build) { |
| 961 check_includes = false |
| 962 } |
| 963 |
| 850 sources = [ | 964 sources = [ |
| 851 "../browser/compositor/gl_helper_benchmark.cc", | 965 "../browser/compositor/gl_helper_benchmark.cc", |
| 852 "run_gl_benchmark.cc", | 966 "run_gl_benchmark.cc", |
| 853 ] | 967 ] |
| 854 | 968 |
| 855 deps = [ | 969 deps = [ |
| 856 ":test_support", | 970 ":test_support", |
| 857 "//base/test:test_support", | 971 "//base/test:test_support", |
| 972 "//content/browser:for_content_tests", |
| 858 "//content/public/common", | 973 "//content/public/common", |
| 859 "//gpu/blink", | 974 "//gpu/blink", |
| 975 "//gpu/command_buffer/client:gl_in_process_context", |
| 976 "//gpu/command_buffer/client:gles2_implementation", |
| 860 "//testing/gtest", | 977 "//testing/gtest", |
| 861 "//third_party/WebKit/public:blink", | 978 "//third_party/WebKit/public:blink", |
| 862 "//ui/base", | 979 "//ui/base", |
| 863 "//ui/gfx", | 980 "//ui/gfx", |
| 864 "//ui/gfx/geometry", | 981 "//ui/gfx/geometry", |
| 865 "//ui/gl", | 982 "//ui/gl", |
| 866 "//ui/gl:test_support", | 983 "//ui/gl:test_support", |
| 867 ] | 984 ] |
| 868 } | 985 } |
| 869 | 986 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 "//gpu:test_support", | 1018 "//gpu:test_support", |
| 902 "//media/base/android", | 1019 "//media/base/android", |
| 903 "//media/base/android:media_java", | 1020 "//media/base/android:media_java", |
| 904 "//media/capture/video/android:capture_java", | 1021 "//media/capture/video/android:capture_java", |
| 905 "//testing/gmock", | 1022 "//testing/gmock", |
| 906 "//ui/android:ui_java", | 1023 "//ui/android:ui_java", |
| 907 ] | 1024 ] |
| 908 } | 1025 } |
| 909 } | 1026 } |
| 910 } | 1027 } |
| OLD | NEW |