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