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") |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 configs += [ | 27 configs += [ |
28 "//build/config:precompiled_headers", | 28 "//build/config:precompiled_headers", |
29 "//v8:external_startup_data", | 29 "//v8:external_startup_data", |
30 ] | 30 ] |
31 | 31 |
32 public_deps = [ | 32 public_deps = [ |
33 "//content/public/app:both", | 33 "//content/public/app:both", |
34 "//content/public/browser", | 34 "//content/public/browser", |
35 "//content/public/common", | 35 "//content/public/common", |
| 36 "//third_party/WebKit/public:blink", |
36 ] | 37 ] |
37 deps = [ | 38 deps = [ |
| 39 ":content_test_mojo_bindings", |
| 40 "//cc", |
| 41 "//cc:test_support", |
38 "//cc/blink", | 42 "//cc/blink", |
| 43 "//components/scheduler:scheduler", |
| 44 "//components/scheduler:test_support", |
| 45 "//content/browser/speech/proto", |
| 46 "//content/gpu", |
| 47 "//content/public/child", |
| 48 "//content/public/plugin", |
| 49 "//content/public/renderer", |
| 50 "//content/public/utility", |
| 51 "//content/shell:pak", |
| 52 "//ipc:test_support", |
| 53 "//ipc/mojo", |
| 54 "//media", |
| 55 "//mojo/edk/test:test_support", |
| 56 "//mojo/shell/public/cpp:cpp_for_chromium", |
39 "//net:test_support", | 57 "//net:test_support", |
40 "//skia", | 58 "//skia", |
| 59 "//storage/browser", |
41 "//storage/common", | 60 "//storage/common", |
42 "//testing/gmock", | 61 "//testing/gmock", |
43 "//testing/gtest", | 62 "//testing/gtest", |
44 "//ui/accessibility:ax_gen", | 63 "//ui/accessibility:ax_gen", |
45 "//ui/base", | 64 "//ui/base", |
46 "//ui/base:test_support", | 65 "//ui/base:test_support", |
47 "//ui/base:ui_data_pack", | 66 "//ui/base:ui_data_pack", |
48 "//ui/base/ime", | 67 "//ui/base/ime", |
| 68 "//ui/compositor:test_support", |
49 "//ui/events:dom_keycode_converter", | 69 "//ui/events:dom_keycode_converter", |
50 "//ui/events:events_base", | 70 "//ui/events:events_base", |
51 "//ui/events:gesture_detection", | 71 "//ui/events:gesture_detection", |
52 "//ui/events:test_support", | 72 "//ui/events:test_support", |
53 "//ui/gfx:test_support", | 73 "//ui/gfx:test_support", |
54 "//ui/gl", | 74 "//ui/gl", |
55 "//ui/gl:test_support", | 75 "//ui/gl:test_support", |
56 "//ui/resources", | 76 "//ui/resources", |
| 77 "//ui/surface", |
57 "//url", | 78 "//url", |
| 79 "//v8", |
58 ] | 80 ] |
59 | 81 |
60 if (is_ios) { | 82 sources = rebase_path(content_tests_gypi_values.test_support_content_sources, |
61 sources = [ | 83 ".", |
62 "public/test/content_test_suite_base.cc", | 84 "//content") |
63 "public/test/mock_notification_observer.cc", | |
64 "public/test/mock_resource_context.cc", | |
65 "public/test/test_browser_thread.cc", | |
66 "public/test/test_content_client_initializer.cc", | |
67 "public/test/test_notification_tracker.cc", | |
68 "public/test/test_utils.cc", | |
69 "public/test/unittest_test_suite.cc", | |
70 "test/content_test_suite.cc", | |
71 "test/test_content_browser_client.cc", | |
72 "test/test_content_client.cc", | |
73 ] | |
74 } else { | |
75 sources = | |
76 rebase_path(content_tests_gypi_values.test_support_content_sources, | |
77 ".", | |
78 "//content") | |
79 | 85 |
80 if (is_android) { | 86 if (is_android) { |
81 sources -= [ | 87 sources -= [ |
82 "mock_google_streaming_server.cc", | 88 "mock_google_streaming_server.cc", |
83 "mock_google_streaming_server.h", | 89 "mock_google_streaming_server.h", |
84 ] | |
85 } | |
86 public_deps += [ "//third_party/WebKit/public:blink" ] | |
87 deps += [ | |
88 ":content_test_mojo_bindings", | |
89 "//cc", | |
90 "//cc:test_support", | |
91 "//components/scheduler:scheduler", | |
92 "//components/scheduler:test_support", | |
93 "//content/browser/speech/proto", | |
94 "//content/gpu", | |
95 "//content/public/child", | |
96 "//content/public/plugin", | |
97 "//content/public/renderer", | |
98 "//content/public/utility", | |
99 "//content/shell:pak", | |
100 "//ipc:test_support", | |
101 "//ipc/mojo", | |
102 "//media", | |
103 "//mojo/edk/test:test_support", | |
104 "//mojo/shell/public/cpp:cpp_for_chromium", | |
105 "//storage/browser", | |
106 "//storage/common", | |
107 "//ui/compositor:test_support", | |
108 "//ui/surface", | |
109 "//v8", | |
110 ] | 90 ] |
111 } | 91 } |
112 | 92 |
113 if (enable_plugins) { | 93 if (enable_plugins) { |
114 deps += [ | 94 deps += [ |
115 "//content/ppapi_plugin", | 95 "//content/ppapi_plugin", |
116 "//ppapi/host", | 96 "//ppapi/host", |
117 "//ppapi/proxy", | 97 "//ppapi/proxy", |
118 "//ppapi/proxy:test_support", | 98 "//ppapi/proxy:test_support", |
119 "//ppapi/shared_impl", | 99 "//ppapi/shared_impl", |
120 "//ppapi/shared_impl:test_support", | 100 "//ppapi/shared_impl:test_support", |
121 ] | 101 ] |
122 } else if (!is_ios) { | 102 } else { |
123 sources -= [ "ppapi_unittest.cc" ] | 103 sources -= [ "ppapi_unittest.cc" ] |
124 } | 104 } |
125 | 105 |
126 if (enable_webrtc) { | 106 if (enable_webrtc) { |
127 sources += [ | 107 sources += [ |
128 "../renderer/media/mock_data_channel_impl.cc", | 108 "../renderer/media/mock_data_channel_impl.cc", |
129 "../renderer/media/mock_data_channel_impl.h", | 109 "../renderer/media/mock_data_channel_impl.h", |
130 "../renderer/media/mock_media_stream_dispatcher.cc", | 110 "../renderer/media/mock_media_stream_dispatcher.cc", |
131 "../renderer/media/mock_media_stream_dispatcher.h", | 111 "../renderer/media/mock_media_stream_dispatcher.h", |
132 "../renderer/media/mock_peer_connection_impl.cc", | 112 "../renderer/media/mock_peer_connection_impl.cc", |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 "../public/test/browser_test.h", | 215 "../public/test/browser_test.h", |
236 "../public/test/browser_test_base.cc", | 216 "../public/test/browser_test_base.cc", |
237 "../public/test/browser_test_base.h", | 217 "../public/test/browser_test_base.h", |
238 "../public/test/browser_test_utils.cc", | 218 "../public/test/browser_test_utils.cc", |
239 "../public/test/browser_test_utils.h", | 219 "../public/test/browser_test_utils.h", |
240 ] | 220 ] |
241 | 221 |
242 public_deps = [ | 222 public_deps = [ |
243 "//content/public/browser", | 223 "//content/public/browser", |
244 "//content/public/common", | 224 "//content/public/common", |
| 225 "//third_party/WebKit/public:blink", |
245 ] | 226 ] |
246 deps = [ | 227 deps = [ |
247 "//base:base", | 228 "//base:base", |
248 "//net:test_support", | 229 "//net:test_support", |
249 "//testing/gtest", | 230 "//testing/gtest", |
250 "//ui/base", | 231 "//ui/base", |
251 "//ui/base:test_support", | 232 "//ui/base:test_support", |
252 "//ui/base/ime", | 233 "//ui/base/ime", |
253 "//ui/events:dom_keycode_converter", | 234 "//ui/events:dom_keycode_converter", |
254 "//ui/events:events_base", | 235 "//ui/events:events_base", |
255 "//ui/events:gesture_detection", | 236 "//ui/events:gesture_detection", |
256 "//ui/resources", | 237 "//ui/resources", |
257 ] | 238 ] |
258 if (!is_ios) { | |
259 public_deps += [ "//third_party/WebKit/public:blink" ] | |
260 } | |
261 } | 239 } |
262 | 240 |
263 mojom("content_test_mojo_bindings") { | 241 mojom("content_test_mojo_bindings") { |
264 sources = [ | 242 sources = [ |
265 "../public/test/test_mojo_service.mojom", | 243 "../public/test/test_mojo_service.mojom", |
266 ] | 244 ] |
267 } | 245 } |
268 | 246 |
269 mojom("web_ui_test_mojo_bindings") { | 247 mojom("web_ui_test_mojo_bindings") { |
270 sources = [ | 248 sources = [ |
271 "data/web_ui_test_mojo_bindings.mojom", | 249 "data/web_ui_test_mojo_bindings.mojom", |
272 ] | 250 ] |
273 } | 251 } |
274 | 252 |
275 if (!is_ios) { | 253 # GYP version //content/content_tests.gypi:layouttest_support_content |
276 # GYP version //content/content_tests.gypi:layouttest_support_content | 254 static_library("layouttest_support") { |
277 static_library("layouttest_support") { | 255 testonly = true |
278 testonly = true | 256 sources = |
279 sources = rebase_path( | 257 rebase_path(content_tests_gypi_values.layouttest_support_content_sources, |
280 content_tests_gypi_values.layouttest_support_content_sources, | 258 ".", |
281 ".", | 259 "//content") |
282 "//content") | |
283 | 260 |
284 deps = [ | 261 deps = [ |
285 ":test_support", | 262 ":test_support", |
286 "//cc", | 263 "//cc", |
287 "//cc/blink", | 264 "//cc/blink", |
288 "//components/test_runner:test_runner", | 265 "//components/test_runner:test_runner", |
289 "//content/public/common", | 266 "//content/public/common", |
290 "//mojo/edk/test:test_support", | 267 "//mojo/edk/test:test_support", |
291 "//skia", | 268 "//skia", |
292 "//ui/accessibility:ax_gen", | 269 "//ui/accessibility:ax_gen", |
293 "//v8", | 270 "//v8", |
294 ] | 271 ] |
295 | |
296 if (is_android) { | |
297 deps += [ ":jni" ] | |
298 } | |
299 } | |
300 | 272 |
301 if (is_android) { | 273 if (is_android) { |
302 import("//build/config/android/rules.gni") | 274 deps += [ ":jni" ] |
| 275 } |
| 276 } |
303 | 277 |
304 generate_jni("jni") { | 278 if (is_android) { |
305 sources = [ | 279 import("//build/config/android/rules.gni") |
306 "../public/test/android/javatests/src/org/chromium/content/browser/test/
NestedSystemMessageHandler.java", | 280 |
307 ] | 281 generate_jni("jni") { |
308 jni_package = "content/public/test" | 282 sources = [ |
309 } | 283 "../public/test/android/javatests/src/org/chromium/content/browser/test/Ne
stedSystemMessageHandler.java", |
| 284 ] |
| 285 jni_package = "content/public/test" |
310 } | 286 } |
311 } # !is_ios | 287 } |
312 | 288 |
313 if (is_android) { | 289 if (is_android) { |
314 jinja_template("content_browsertests_manifest") { | 290 jinja_template("content_browsertests_manifest") { |
315 testonly = true | 291 testonly = true |
316 input = | 292 input = |
317 "//content/shell/android/browsertests_apk/AndroidManifest.xml.jinja2" | 293 "//content/shell/android/browsertests_apk/AndroidManifest.xml.jinja2" |
318 output = | 294 output = |
319 "${target_gen_dir}/content_browsertests_manifest/AndroidManifest.xml" | 295 "${target_gen_dir}/content_browsertests_manifest/AndroidManifest.xml" |
320 } | 296 } |
321 | 297 |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 "//net/data/ssl/certificates/", | 565 "//net/data/ssl/certificates/", |
590 "//media/test/data/", | 566 "//media/test/data/", |
591 ] | 567 ] |
592 } | 568 } |
593 | 569 |
594 configs += [ "//build/config:precompiled_headers" ] | 570 configs += [ "//build/config:precompiled_headers" ] |
595 | 571 |
596 deps = [ | 572 deps = [ |
597 ":test_support", | 573 ":test_support", |
598 "//base/test:test_support", | 574 "//base/test:test_support", |
| 575 "//base/third_party/dynamic_annotations", |
| 576 "//cc", |
| 577 "//cc:test_support", |
| 578 "//cc/surfaces", |
| 579 "//content:resources", |
599 "//content/browser/background_sync:background_sync_proto", | 580 "//content/browser/background_sync:background_sync_proto", |
600 "//content/browser/cache_storage:cache_storage_proto", | 581 "//content/browser/cache_storage:cache_storage_proto", |
601 "//content/browser/notifications:notification_proto", | 582 "//content/browser/notifications:notification_proto", |
602 "//content/browser/service_worker:service_worker_proto", | 583 "//content/browser/service_worker:service_worker_proto", |
603 "//content/browser/speech/proto", | 584 "//content/browser/speech/proto", |
604 "//content/common:mojo_bindings", | 585 "//content/common:mojo_bindings", |
| 586 "//content/gpu", |
605 "//content/public/browser", | 587 "//content/public/browser", |
| 588 "//content/public/child", |
606 "//content/public/common", | 589 "//content/public/common", |
607 "//content/public/common:mojo_bindings", | 590 "//content/public/common:mojo_bindings", |
| 591 "//content/public/plugin", |
| 592 "//content/public/renderer", |
608 "//crypto", | 593 "//crypto", |
609 "//device/battery", | 594 "//device/battery", |
610 "//device/battery:mojo_bindings", | 595 "//device/battery:mojo_bindings", |
611 "//device/bluetooth", | 596 "//device/bluetooth", |
| 597 "//gin", |
| 598 "//gpu", |
| 599 "//gpu:test_support", |
| 600 "//ipc:test_support", |
| 601 "//media:shared_memory_support", |
| 602 "//media:test_support", |
| 603 "//media/audio:test_support", |
| 604 "//media/base:test_support", |
| 605 "//media/midi:midi", |
612 "//mojo/edk/test:test_support", | 606 "//mojo/edk/test:test_support", |
613 "//mojo/public/cpp/bindings", | 607 "//mojo/public/cpp/bindings", |
614 "//net:extras", | 608 "//net:extras", |
615 "//net:test_support", | 609 "//net:test_support", |
616 "//skia", | 610 "//skia", |
617 "//sql", | 611 "//sql", |
618 "//sql:test_support", | 612 "//sql:test_support", |
| 613 "//storage/browser", |
| 614 "//storage/common", |
619 "//testing/gmock", | 615 "//testing/gmock", |
620 "//testing/gtest", | 616 "//testing/gtest", |
| 617 "//third_party/WebKit/public:blink", |
| 618 "//third_party/icu", |
| 619 "//third_party/leveldatabase", |
| 620 "//third_party/libjingle", |
621 "//third_party/re2", | 621 "//third_party/re2", |
622 "//ui/accessibility", | 622 "//ui/accessibility", |
623 "//ui/base", | 623 "//ui/base", |
| 624 "//ui/compositor:test_support", |
624 "//ui/events/blink", | 625 "//ui/events/blink", |
625 "//ui/gfx", | 626 "//ui/gfx", |
626 "//ui/gfx/geometry", | 627 "//ui/gfx/geometry", |
627 "//ui/gfx/ipc", | 628 "//ui/gfx/ipc", |
| 629 "//ui/gl", |
| 630 "//ui/gl:test_support", |
628 ] | 631 ] |
629 | 632 |
630 if (!is_ios) { | |
631 deps += [ | |
632 "//base/third_party/dynamic_annotations", | |
633 "//cc", | |
634 "//cc:test_support", | |
635 "//cc/surfaces", | |
636 "//content:resources", | |
637 "//content/gpu", | |
638 "//content/public/browser", | |
639 "//content/public/child", | |
640 "//content/public/plugin", | |
641 "//content/public/renderer", | |
642 "//gin", | |
643 "//gpu", | |
644 "//gpu:test_support", | |
645 "//ipc:test_support", | |
646 "//media:shared_memory_support", | |
647 "//media:test_support", | |
648 "//media/audio:test_support", | |
649 "//media/base:test_support", | |
650 "//media/midi:midi", | |
651 "//storage/browser", | |
652 "//storage/common", | |
653 "//third_party/WebKit/public:blink", | |
654 "//third_party/icu", | |
655 "//third_party/leveldatabase", | |
656 "//third_party/libjingle", | |
657 "//ui/compositor:test_support", | |
658 "//ui/gl", | |
659 "//ui/gl:test_support", | |
660 ] | |
661 } | |
662 | |
663 data_deps = [ | 633 data_deps = [ |
664 "//third_party/mesa:osmesa", | 634 "//third_party/mesa:osmesa", |
665 ] | 635 ] |
666 | 636 |
667 if (!is_win) { | 637 if (!is_win) { |
668 sources += [ "../browser/file_descriptor_info_impl_unittest.cc" ] | 638 sources += [ "../browser/file_descriptor_info_impl_unittest.cc" ] |
669 } | 639 } |
670 | 640 |
671 if (enable_plugins) { | 641 if (enable_plugins) { |
672 sources += | 642 sources += |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
751 deps -= [ "//device/battery" ] | 721 deps -= [ "//device/battery" ] |
752 | 722 |
753 deps += [ | 723 deps += [ |
754 "//base:base_java_unittest_support", | 724 "//base:base_java_unittest_support", |
755 "//content/public/android:content_java", | 725 "//content/public/android:content_java", |
756 "//v8:v8_external_startup_data_assets", | 726 "//v8:v8_external_startup_data_assets", |
757 ] | 727 ] |
758 | 728 |
759 defines += [ "APPCACHE_USE_SIMPLE_CACHE" ] | 729 defines += [ "APPCACHE_USE_SIMPLE_CACHE" ] |
760 } | 730 } |
761 if (!is_android && !is_ios) { | 731 if (!is_android) { |
762 deps += [ "//third_party/libvpx" ] | 732 deps += [ "//third_party/libvpx" ] |
763 } | 733 } |
764 | 734 |
765 if (use_aura) { | 735 if (use_aura) { |
766 deps += [ | 736 deps += [ |
767 "//components/mus/public/cpp/tests:unittest_support", | 737 "//components/mus/public/cpp/tests:unittest_support", |
768 "//ui/aura", | 738 "//ui/aura", |
769 "//ui/aura_extra", | 739 "//ui/aura_extra", |
770 "//ui/wm", | 740 "//ui/wm", |
771 ] | 741 ] |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
928 "//gpu:test_support", | 898 "//gpu:test_support", |
929 "//media/base/android", | 899 "//media/base/android", |
930 "//media/base/android:media_java", | 900 "//media/base/android:media_java", |
931 "//media/capture/video/android:capture_java", | 901 "//media/capture/video/android:capture_java", |
932 "//testing/gmock", | 902 "//testing/gmock", |
933 "//ui/android:ui_java", | 903 "//ui/android:ui_java", |
934 ] | 904 ] |
935 } | 905 } |
936 } | 906 } |
937 } | 907 } |
OLD | NEW |