Add UI for two checkbox settings for Safe Browsing, on Android
[chromium-blink-merge.git] / BUILD.gn
bloba899d4f449e8cedc4c5b132657915f6a4b7eda30
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 # This is the root build file for GN. GN will start processing by loading this
6 # file, and recursively load all dependencies until all dependencies are either
7 # resolved or known not to exist (which will cause the build to fail). So if
8 # you add a new build file, there must be some path of dependencies from this
9 # file to your new one or GN won't know about it.
11 import("//build/config/crypto.gni")
12 import("//build/config/features.gni")
13 import("//build/config/ui.gni")
14 import("//build/module_args/v8.gni")
16 if (is_android) {
17   import("//build/config/android/config.gni")
20 declare_args() {
21   # A list of extra dependencies to add to the root target. This allows a
22   # checkout to add additional targets without explicitly changing any checked-
23   # in files.
24   root_extra_deps = []
27 # This file defines the following four main targets:
29 # "both_gn_and_gyp" should list every root target (target that nothing else
30 # depends on) built by GN that is also built in the GYP build.
32 # "gn_all" should (transitively) cause everything to be built; if you run
33 # 'ninja gn_all' and then 'ninja all', the second build should do no work.
35 # "gn_only" should list every root target that is *not* intended to be built
36 # in a GYP build. Because GN has different rules for deciding what an 'all'
37 # build is, this may end up including targets that are actually defined in a
38 # GYP build but not dependencies of GYP's "all" (and so not actually built).
40 # "gn_visibility": targets that are normally not visible to top-level targets,
41 # but are built anyway by "all". Since we don't want any such targets, we
42 # have this placeholder to make sure hidden targets that aren't otherwise
43 # depended on yet are accounted for.
45 # TODO(GYP): crbug.com/481694. Make sure that the above is true and there are
46 # scripts run on the bots that enforce this. Once the GYP migration is over,
47 # we can collapse all of these targets as desired.
49 group("gn_all") {
50   testonly = true
52   deps = [
53     ":both_gn_and_gyp",
54     ":gn_only",
55     ":gn_visibility",
56   ]
59 # The "both_gn_and_gyp" target should reflect every target that is built
60 # in both the GN and GYP builds, and ideally it should match the
61 # "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line.
63 # TODO(GYP): Add build steps that check and enforce this on the bots.
64 group("both_gn_and_gyp") {
65   testonly = true
66   deps = [
67     "//base:base_unittests",
68   ]
69   if (!is_ios) {
70     deps += [
71       "//cc:cc_unittests",
72       "//chrome",
73       "//chrome/test:browser_tests",
74       "//chrome/test:interactive_ui_tests",
75       "//chrome/test:sync_integration_tests",
76       "//chrome/test:unit_tests",
77       "//chrome/test/chromedriver:chromedriver_unittests",
78       "//components:components_browsertests",
79       "//components:components_unittests",
80       "//content/shell:content_shell",
81       "//content/test:content_browsertests",
82       "//content/test:content_perftests",
83       "//content/test:content_unittests",
84       "//crypto:crypto_unittests",
85       "//device:device_unittests",
86       "//extensions:extensions_browsertests",
87       "//extensions:extensions_unittests",
88       "//google_apis/gcm:gcm_unit_tests",
89       "//gpu:gpu_unittests",
90       "//ipc:ipc_tests",
91       "//ipc/mojo:ipc_mojo_unittests",
92       "//jingle:jingle_unittests",
93       "//media:media_unittests",
94       "//media/cast:cast_unittests",
95       "//media/midi:midi_unittests",
96       "//mojo",
97       "//mojo/application/public/cpp",
98       "//mojo/common:mojo_common_unittests",
99       "//net:hpack_example_generator",
100       "//net:hpack_fuzz_mutator",
101       "//net:hpack_fuzz_wrapper",
102       "//net:net_perftests",
103       "//net:net_unittests",
104       "//ppapi:ppapi_unittests",
105       "//ppapi/examples/2d",
106       "//ppapi/examples/audio",
107       "//ppapi/examples/audio_input",
108       "//ppapi/examples/compositor",
109       "//ppapi/examples/crxfs",
110       "//ppapi/examples/enumerate_devices",
111       "//ppapi/examples/file_chooser",
112       "//ppapi/examples/flash_topmost",
113       "//ppapi/examples/font",
114       "//ppapi/examples/gamepad",
115       "//ppapi/examples/gles2",
116       "//ppapi/examples/gles2_spinning_cube",
117       "//ppapi/examples/ime",
118       "//ppapi/examples/input",
119       "//ppapi/examples/media_stream_audio",
120       "//ppapi/examples/media_stream_video",
121       "//ppapi/examples/mouse_cursor",
122       "//ppapi/examples/mouse_lock",
123       "//ppapi/examples/printing",
124       "//ppapi/examples/scaling",
125       "//ppapi/examples/scripting",
126       "//ppapi/examples/stub",
127       "//ppapi/examples/threading",
128       "//ppapi/examples/url_loader",
129       "//ppapi/examples/video_capture",
130       "//ppapi/examples/video_decode",
131       "//ppapi/examples/video_effects",
132       "//ppapi/examples/video_encode",
133       "//printing:printing_unittests",
134       "//skia:skia_unittests",
135       "//sql:sql_unittests",
136       "//sync:sync_unit_tests",
137       "//third_party/WebKit/Source/platform:heap_unittests",
138       "//third_party/WebKit/Source/platform:platform_unittests",
139       "//third_party/WebKit/Source/web:webkit_unit_tests",
140       "//third_party/WebKit/Source/wtf:wtf_unittests",
141       "//third_party/cacheinvalidation:cacheinvalidation_unittests",
142       "//third_party/codesighs",
143       "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",
144       "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",
145       "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",
146       "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",
147       "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
148       "//third_party/pdfium/samples:pdfium_test",
149       "//third_party/smhasher:pmurhash",
150       "//tools/imagediff($host_toolchain)",
151       "//tools/gn",
152       "//tools/gn:gn_unittests",
153       "//tools/gn:generate_test_gn_data",
154       "//tools/telemetry:bitmaptools($host_toolchain)",
155       "//ui/accessibility:accessibility_unittests",
156       "//ui/app_list:app_list_unittests",
157       "//ui/base:ui_base_unittests",
158       "//ui/display:display_unittests",
159       "//ui/events:events_unittests",
160       "//ui/gfx:gfx_unittests",
161       "//ui/gl:gl_unittests",
162       "//ui/touch_selection:ui_touch_selection_unittests",
163       "//url:url_unittests",
164     ]
165   }
167   deps += root_extra_deps
169   if (enable_extensions && !is_mac) {
170     # TODO(GYP): Get this working on the mac?
171     deps += [ "//extensions/shell:app_shell_unittests" ]
172   }
174   if (enable_media_router) {
175     deps += [ "//chrome/browser/media/router" ]
176   }
178   if (enable_remoting) {
179     deps += [ "//remoting:remoting_all" ]
180   }
182   if (toolkit_views) {
183     deps += [ "//ui/views:views_unittests" ]
184   }
186   if (use_aura) {
187     deps += [ "//ui/wm:wm_unittests" ]
188   }
190   if (use_ozone) {
191     deps += [ "//ui/ozone" ]
192   }
194   if (use_x11) {
195     deps += [ "//tools/xdisplaycheck" ]
196   }
198   if (enable_configuration_policy) {
199     deps += [ "//components/policy:policy_templates" ]
200   }
202   if (v8_use_external_startup_data) {
203     deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
204   }
206   if (is_win) {
207     deps += [ "//chrome/tools/build/win/syzygy:chrome_dll_syzygy" ]
208   }
210   if (is_android) {
211     deps += [
212       "//base/android/linker:chromium_android_linker",
213       "//build/android/gyp/test:hello_world",
214       "//build/android/rezip",
215       "//chrome/android:chrome_public_apk",
216       "//chrome/android:chrome_public_test_apk",
217       "//chrome/android:chrome_shell_apk",
218       "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
219       "//third_party/errorprone:chromium_errorprone",
220       "//tools/imagediff($host_toolchain)",
222       # TODO(GYP): Remove these when the components_unittests work.
223       "//components/history/core/test:test",
224       "//components/policy:policy_component_test_support",
225       "//components/policy:test_support",
226       "//components/rappor:test_support",
227       "//components/signin/core/browser:test_support",
228       "//components/sync_driver:test_support",
229       "//components/user_manager",
230       "//components/wallpaper",
231       "//content/shell/android:content_shell_apk",
233       # TODO(GYP): Are these needed, or will they be pulled in automatically?
234       "//third_party/android_tools:android_gcm_java",
235       "//third_party/android_tools:uiautomator_java",
236       "//third_party/android_tools:android_support_v13_java",
237       "//third_party/android_tools:android_support_v7_appcompat_java",
238       "//third_party/android_tools:android_support_v7_mediarouter_java",
239       "//third_party/mesa",
240       "//third_party/mockito:mockito_java",
241       "//third_party/openmax_dl/dl",
242       "//ui/android:ui_java",
244       # TODO(GYP): Are these needed?
245       "//chrome/test:test_support_unit",
246       "//third_party/smhasher:murmurhash3",
247       "//ui/message_center:test_support",
248     ]
249     deps -= [
250       "//chrome",  # TODO(GYP) ??
251       "//chrome/test:browser_tests",  # TODO(GYP) ??
252       "//chrome/test:interactive_ui_tests",  # TODO(GYP) ??
253       "//chrome/test:sync_integration_tests",  # TODO(GYP) ??
254       "//chrome/test:unit_tests",  # TODO(GYP)
256       # Chromedriver shouldn't be compiled on Android.
257       "//chrome/test/chromedriver:chromedriver_unittests",
258       "//extensions:extensions_browsertests",
259       "//extensions:extensions_unittests",
260       "//google_apis/gcm:gcm_unit_tests",
261       "//ipc:ipc_tests",  # TODO(GYP) ??
262       "//jingle:jingle_unittests",  # TODO(GYP) ??
263       "//net:hpack_example_generator",
264       "//net:hpack_fuzz_mutator",
265       "//net:hpack_fuzz_wrapper",
266       "//net:net_perftests",
267       "//ppapi/examples/2d",
268       "//ppapi/examples/audio",
269       "//ppapi/examples/audio_input",
270       "//ppapi/examples/compositor",
271       "//ppapi/examples/crxfs",
272       "//ppapi/examples/enumerate_devices",
273       "//ppapi/examples/file_chooser",
274       "//ppapi/examples/flash_topmost",
275       "//ppapi/examples/font",
276       "//ppapi/examples/gamepad",
277       "//ppapi/examples/gles2",
278       "//ppapi/examples/gles2_spinning_cube",
279       "//ppapi/examples/ime",
280       "//ppapi/examples/input",
281       "//ppapi/examples/media_stream_audio",
282       "//ppapi/examples/media_stream_video",
283       "//ppapi/examples/mouse_cursor",
284       "//ppapi/examples/mouse_lock",
285       "//ppapi/examples/printing",
286       "//ppapi/examples/scaling",
287       "//ppapi/examples/scripting",
288       "//ppapi/examples/stub",
289       "//ppapi/examples/threading",
290       "//ppapi/examples/url_loader",
291       "//ppapi/examples/video_capture",
292       "//ppapi/examples/video_decode",
293       "//ppapi/examples/video_effects",
294       "//ppapi/examples/video_encode",
295       "//third_party/pdfium/samples:pdfium_test",
296       "//tools/gn",
297       "//tools/gn:generate_test_gn_data",
298       "//tools/gn:gn_unittests",
299       "//ui/app_list:app_list_unittests",
300       "//url:url_unittests",
301     ]
303     if (has_chrome_android_internal) {
304       deps += [ "//clank" ]  # TODO(GYP) ??
305     }
306   }
308   if (is_linux) {  # TODO(GYP): || is_android || is_bsd?
309     deps += [
310       "//breakpad:core-2-minidump",
311       "//breakpad:minidump-2-core",
312     ]
313   }
315   if (is_chromeos) {
316     deps += [
317       "//chromeos:chromeos_unittests",
318       "//ui/chromeos:ui_chromeos_unittests",
319     ]
320   }
322   if (is_chromeos || is_mac || is_win) {
323     deps += [
324       "//rlz:rlz_id",
325       "//rlz:rlz_lib",
326       "//rlz:rlz_unittests",
327     ]
328   }
330   if (is_linux) {
331     # The following are definitely linux-only.
332     deps += [
333       "//breakpad:breakpad_unittests",
334       "//breakpad:generate_test_dump",
335       "//dbus:dbus_test_server",
336       "//dbus:dbus_unittests",
337       "//net:disk_cache_memory_test",
338       "//net:flip_in_mem_edsm_server",
339       "//net:flip_in_mem_edsm_server_unittests",
340       "//net:quic_client",
341       "//net:quic_server",
342       "//sandbox/linux:chrome_sandbox",
343       "//sandbox/linux:sandbox_linux_unittests",
344       "//sandbox/linux:sandbox_linux_jni_unittests",
345     ]
347     if (is_chromeos || use_ash) {
348       deps += [ "//components/session_manager/core" ]
349     }
350   }
352   if (is_win || (is_linux && !is_chromeos)) {
353     # TODO(GYP): Figure out which of these should (and can) build
354     # for android/chromeos/mac/ios.
355     deps += [
356       "//base:base_perftests",
357       "//base:base_i18n_perftests",
358       "//base:check_example",
359       "//base:build_utf8_validator_tables",
360       "//cc:cc_perftests",
361       "//cc/blink:cc_blink_unittests",
362       "//chrome/test:load_library_perf_tests",
363       "//chrome/test:performance_browser_tests",
364       "//chrome/test:sync_performance_tests",
365       "//chrome/test/chromedriver:chromedriver",
366       "//chrome/test/chromedriver:chromedriver_tests",
367       "//chrome/tools/profile_reset:jtl_compiler",
368       "//components:components_perftests",
369       "//content/test:content_gl_tests",
370       "//content/test:content_gl_benchmark",
371       "//courgette:courgette",
372       "//courgette:courgette_fuzz",
373       "//courgette:courgette_minimal_tool",
374       "//courgette:courgette_unittests",
375       "//device:device_unittests",
376       "//gin:gin_shell",
377       "//gin:gin_unittests",
378       "//google_apis:google_apis_unittests",
379       "//google_apis/gcm:mcs_probe",
380       "//gpu:angle_unittests",
381       "//gpu:gpu_perftests",
382       "//gpu:gl_tests",
383       "//ipc:ipc_perftests",
384       "//media:ffmpeg_regression_tests",  # TODO(GYP) this should be conditional on media_use_ffmpeg
385       "//media:media_perftests",
386       "//media/cast:generate_barcode_video",
387       "//media/cast:generate_timecode_audio",
388       "//net:crash_cache",
389       "//net:crl_set_dump",
390       "//net:dns_fuzz_stub",
391       "//net:dump_cache",
392       "//net:gdig",
393       "//net:get_server_time",
394       "//net:net_watcher",  # TODO(GYP): This should be conditional on use_v8_in_net
395       "//net:run_testserver",
396       "//net:stress_cache",
397       "//net:tld_cleanup",
398       "//ppapi:pepper_hash_for_uma",
399       "//ppapi:ppapi_perftests",
400       "//sync:run_sync_testserver",
401       "//third_party/codesighs:maptsvdifftool",
402       "//third_party/leveldatabase:env_chromium_unittests",
403       "//third_party/libaddressinput:libaddressinput_unittests",
404       "//third_party/libphonenumber:libphonenumber_unittests",
405       "//ui/compositor:compositor_unittests",
406     ]
408     if (enable_extensions) {
409       deps += [ "//extensions/shell:app_shell" ]
410     }
412     if (enable_nacl) {
413       deps += [ "//components/nacl:nacl_loader_unittests" ]
414     }
416     if (enable_nacl && enable_remoting) {
417       deps += [ "//remoting:remoting_key_tester" ]
418     }
420     if (use_ash) {
421       deps += [
422         "//ash:ash_shell",
423         "//ash:ash_unittests",
424       ]
425     }
427     if (use_aura) {
428       deps += [
429         "//ui/aura:aura_unittests",
430         "//ui/aura:bench",
431         "//ui/aura:demo",
432       ]
433     }
434   }
436   if (is_linux && !is_chromeos) {
437     deps += [
438       # TODO(GYP): Figure out which of these should (and can) build
439       # under which other conditions.
440       "//build/sanitizers:copy_llvm_symbolizer",
441       "//chrome/test:chrome_app_unittests",
442       "//cloud_print:cloud_print_unittests",
443       "//components/network_hints/browser",
444       "//content/public/app:browser",
445       "//content/public/app:child",
447       # TODO(GYP): Remove this when the gles2 tests work
448       "//gpu/command_buffer/client:gles2_implementation_no_check",
450       "//gpu/khronos_glcts_support:khronos_glcts_test",  # TODO(GYP) crbug.com/471903 to make this complete.
451       "//media/cast:cast_benchmarks",
452       "//media/cast:tap_proxy",
453       "//mojo/application/public/cpp",
454       "//skia:filter_fuzz_stub",
455       "//skia:image_operations_bench",
456       "//sync/tools:sync_client",
457       "//sync/tools:sync_listen_notifications",
458       "//testing/gmock:gmock_main",
459       "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests",
460       "//tools/perf/clear_system_cache",
461       "//ui/keyboard:keyboard_unittests",
462       "//ui/message_center:message_center_unittests",
463       "//ui/snapshot:snapshot_unittests",
464       "//ui/views/examples:views_examples_with_content_exe",
466       # "//v8:v8_snapshot",  # TODO(GYP): visibility?
467       # "//v8:postmortem-metadata",  # TODO(GYP): visibility?
469       "//third_party/codesighs:nm2tsv",
470       "//third_party/sqlite:sqlite_shell",
471     ]
473     if (current_toolchain == host_toolchain) {
474       # Do not build the breakpad utilities in cross-compiles.
475       deps += [
476         "//breakpad:dump_syms",
477         "//breakpad:microdump_stackwalk",
478         "//breakpad:minidump_dump",
479         "//breakpad:minidump_stackwalk",
480       ]
481     }
483     if (!is_debug && !is_component_build) {
484       deps += [ "//chrome/tools/service_discovery_sniffer" ]
485     }
487     if (toolkit_views) {
488       deps += [ "//ui/app_list:app_list_demo" ]
489     }
491     if (use_x11) {
492       if (target_cpu != "arm") {
493         deps += [ "//gpu/tools/compositor_model_bench" ]
494       }
495     }
496   }
498   if (is_mac) {
499     deps += [
500       "//breakpad:crash_inspector",
501       "//breakpad:dump_syms",
502       "//third_party/apple_sample_code",
503       "//third_party/molokocacao",
504     ]
506     # TODO(GYP): Remove these when the targets below work and these
507     # are pulled in automatically.
508     deps += [
509       "//cc/blink",
510       "//components/ui/zoom:ui_zoom",
511       "//content",
512       "//content/test:test_support",
513       "//device/battery",
514       "//device/bluetooth",
515       "//device/nfc",
516       "//device/usb",
517       "//device/vibration",
518       "//media/blink",
519       "//pdf",
520       "//storage/browser",
521       "//third_party/brotli",
522       "//third_party/flac",
523       "//third_party/hunspell",
524       "//third_party/iccjpeg",
525       "//third_party/libphonenumber",
526       "//third_party/ots",
527       "//third_party/qcms",
528       "//third_party/smhasher:murmurhash3",
529       "//third_party/webrtc/system_wrappers",
530       "//ui/native_theme",
531       "//ui/snapshot",
532       "//ui/surface",
533     ]
535     # TODO(dpranke): These are as-yet untriaged but need at least the above.
536     deps -= [
537       "//chrome",  # TODO(GYP)
538       "//chrome/test:browser_tests",  # TODO(GYP)
539       "//chrome/test:interactive_ui_tests",  # TODO(GYP)
540       "//chrome/test:sync_integration_tests",  # TODO(GYP)
541       "//chrome/test:unit_tests",  # TODO(GYP)
542       "//components:components_browsertests",  # TODO(GYP)
543       "//components:components_unittests",  # TODO(GYP)
544       "//content/test:content_browsertests",  # TODO(GYP)
545       "//content/test:content_perftests",  # TODO(GYP)
546       "//device:device_unittests",  # TODO(GYP)
547       "//extensions:extensions_browsertests",  # TODO(GYP)
548       "//extensions:extensions_unittests",  # TODO(GYP)
549       "//mojo",  # TODO(GYP)
550       "//mojo/application/public/cpp",  # TODO(GYP)
552       # TODO(GYP): Re-enable this as soon as we can link Blink binaries on mac.
553       "//third_party/WebKit/Source/platform:heap_unittests",
554       "//third_party/WebKit/Source/platform:platform_unittests",
555       "//third_party/WebKit/Source/web:webkit_unit_tests",
556       "//ui/app_list:app_list_unittests",  # TODO(GYP)
557       "//ui/gfx:gfx_unittests",  # TODO(GYP)
558     ]
559   }
561   if (is_win) {
562     deps += [
563       "//base:pe_image_test",
564       "//chrome/installer/setup:setup_unittests",
565       "//chrome_elf:chrome_elf_unittests",
566       "//chrome_elf:dll_hash_main",
567       "//components/crash/tools:crash_service",
568       "//components/wifi:wifi_test",
569       "//net:quic_client",
570       "//net:quic_server",
571       "//sandbox/win:pocdll",
572       "//sandbox/win:sandbox_poc",
573       "//sandbox/win:sbox_integration_tests",
574       "//sandbox/win:sbox_unittests",
575       "//sandbox/win:sbox_validation_tests",
576       "//testing/gtest:gtest_main",
577       "//third_party/codesighs:msmap2tsv",
578       "//third_party/pdfium/samples:pdfium_diff",
579       "//ui/metro_viewer",
580     ]
581     deps -= [
582       "//crypto:crypto_unittests",  # TODO(GYP)
583       "//net:net_unittests",  # TODO(GYP)
584     ]
585   } else if (!is_android && !is_ios) {
586     deps += [ "//breakpad:symupload" ]
587   }
589   if (!is_ios) {
590     deps += [ "//gpu/skia_runner:skia_runner" ]
591   }
594 group("gn_only") {
595   testonly = true
597   if (!is_ios) {
598     deps = [
599       "//mandoline:all",
600     ]
601   }
603   if (!is_android && !is_ios) {
604     deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
605   }
607   if (is_linux && !is_chromeos) {
608     # TODO(GYP): Figure out if any of these should be in gn_all
609     # and figure out how cross-platform they are
610     deps += [
611       ":gn_mojo_targets",
612       "//chrome/browser/resources:extension_resource_demo",
613       "//chrome/installer/util:strings",
614       "//chrome:main_dll",
615       "//chrome/test:load_library_perf_tests",
616       "//chrome/tools/convert_dict",
617       "//components/constrained_window:unit_tests",
618       "//components/enhanced_bookmarks:test_support",
619       "//components/metrics:serialization",
620       "//components/password_manager/content/renderer:browser_tests",
621       "//components/rappor:unit_tests",
622       "//components/sessions:unit_tests",
623       "//media/blink:media_blink_unittests",
624       "//media/cast:udp_proxy",
625       "//native_client/src/trusted/platform_qualify:vcpuid",
626       "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
627       "//storage/browser:dump_file_system",
628       "//third_party/angle:libANGLE",
629       "//third_party/angle:libEGL",
630       "//third_party/angle:libGLESv2",
631       "//third_party/cld_2:cld_2_dynamic_data_tool",
632       "//third_party/leveldatabase:leveldb_arena_test",
633       "//third_party/leveldatabase:leveldb_bloom_test",
634       "//third_party/leveldatabase:leveldb_db_test",
635       "//third_party/leveldatabase:leveldb_crc32c_test",
636       "//third_party/leveldatabase:leveldb_cache_test",
637       "//third_party/leveldatabase:leveldb_env_test",
638       "//third_party/leveldatabase:leveldb_write_batch_test",
639       "//third_party/leveldatabase:leveldb_filter_block_test",
640       "//third_party/leveldatabase:leveldb_version_edit_test",
641       "//third_party/leveldatabase:leveldb_db_bench",
642       "//third_party/leveldatabase:leveldb_log_test",
643       "//third_party/leveldatabase:leveldb_corruption_test",
644       "//third_party/leveldatabase:leveldb_table_test",
645       "//third_party/leveldatabase:leveldb_skiplist_test",
646       "//third_party/leveldatabase:leveldb_filename_test",
647       "//third_party/leveldatabase:leveldb_dbformat_test",
648       "//third_party/pdfium/third_party:freetype",
649       "//third_party/libjingle:peerconnnection_server",
650       "//third_party/libjpeg_turbo:simd",
651       "//third_party/libsrtp:replay_driver",
652       "//third_party/libsrtp:roc_driver",
653       "//third_party/libsrtp:rtpw",
654       "//third_party/libsrtp:rdbx_driver",
655       "//third_party/libsrtp:srtp_driver",
656       "//third_party/libsrtp:srtp_driver",
657       "//third_party/libsrtp:srtp_test_kernel_driver",
658       "//third_party/libsrtp:srtp_test_cipher_driver",
659       "//third_party/libsrtp:srtp_test_datatypes_driver",
660       "//third_party/libsrtp:srtp_test_aes_calc",
661       "//third_party/libsrtp:srtp_test_env",
662       "//third_party/libsrtp:srtp_test_rand_gen",
663       "//third_party/libsrtp:srtp_test_sha1_driver",
664       "//third_party/libsrtp:srtp_test_stat_driver",
665       "//third_party/opus:opus_compare",
666       "//third_party/opus:opus_demo",
667       "//third_party/opus:test_opus_decode",
668       "//third_party/opus:test_opus_encode",
669       "//third_party/opus:test_opus_api",
670       "//third_party/opus:test_opus_padding",
671       "//third_party/webrtc/system_wrappers:field_trial_default",
672       "//third_party/webrtc/system_wrappers:metrics_default",
673       "//ui/display/types",
674       "//ui/shell_dialogs:shell_dialogs_unittests",
675       "//ui/views/examples:views_examples_exe",
676     ]
678     if (target_cpu == "x86" || target_cpu == "x64") {
679       deps += [ "//third_party/libjpeg_turbo:simd_asm" ]
680     }
681     if (enable_nacl) {
682       deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ]
683     }
684     if (use_ozone) {
685       deps += [ "//ui/ozone/demo" ]
686     }
687     if (is_android) {
688       deps += [ "//build/android/gyp/test:hello_world" ]
689     }
691     if (is_linux && current_toolchain == host_toolchain) {
692       deps += [ "//v8:d8" ]
693     }
694   }
696   if (is_mac) {
697     deps -= [ "//mandoline:all" ]  # TODO(GYP)
698   }
701 group("gn_mojo_targets") {
702   testonly = true
703   if (is_linux && !is_chromeos) {
704     # TODO(GYP): Figure out if any of these should be in gn_all
705     # and figure out how cross-platform they are
706     deps = [
707       "//chrome/browser/ui/webui/omnibox:mojo_bindings_python",
708       "//content/public/common:mojo_bindings_python",
709       "//content/common:mojo_bindings_python",
710       "//content/test:web_ui_test_mojo_bindings_python",
711       "//device/battery:mojo_bindings_python",
712       "//device/vibration:mojo_bindings_python",
713       "//ipc/mojo:ipc_mojo_perftests",
714       "//ipc/mojo:client_channel_python",
715       "//media/mojo/interfaces:interfaces_python",
716       "//media/mojo/services:cdm_service",
717       "//media/mojo:tests",
718       "//mojo:tests",
719       "//net/interfaces:interfaces_python",
720       "//third_party/mojo/src/mojo/edk/js/test:js_integration_tests",
721       "//third_party/mojo/src/mojo/edk/js/tests:js_to_cpp_bindings_python",
722       "//third_party/mojo/src/mojo/public/python:packaged_application",
723       "//third_party/mojo/src/mojo/public/python:packaged_bindings",
724       "//third_party/mojo_services/src/accessibility/public/interfaces:interfaces_python",
725     ]
726   }
729 group("gn_visibility") {
730   deps = [
731     "//build/config/sanitizers:options_sources",
733     # "//third_party/pdfium:pdfium_embeddertests",  # TODO(GYP): visibility?
734     # "//third_party/pdfium:pdfium_unittests",  # TODO(GYP): visibility?
736     "//ui/resources:repack_ui_test_mac_locale_pack",
738     # "//v8:v8_snapshot",  # TODO(GYP): visibility?
739     # "//v8:postmortem-metadata",  # TODO(GYP): visibility?
740   ]
743 if (!is_ios) {
744   # This group includes all of the targets needed to build and test Blink,
745   # including running the layout tests (see below).
746   group("blink_tests") {
747     testonly = true
749     deps = [
750       "//third_party/WebKit/public:all_blink",
751     ]
753     # NOTE: The following deps are needed to run the layout tests
754     # (run-webkit-tests) but there is no GN target for the layout tests,
755     # so we need to specify the dependencies here instead.
756     if (is_android) {
757       deps += [
758         "//breakpad:dump_syms($host_toolchain)",
759         "//breakpad:minidump_stackwalk($host_toolchain)",
760         "//content/shell/android:content_shell_apk",
761         "//tools/imagediff($host_toolchain)",
762       ]
763     } else {
764       deps += [
765         "//content/shell:content_shell",
766         "//tools/imagediff",
767       ]
768     }
770     if (is_win) {
771       deps += [
772         "//components/test_runner:layout_test_helper",
773         "//content/shell:crash_service",
774       ]
775     }
777     if (!is_win && !is_android) {
778       deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
779     }
781     if (is_mac) {
782       deps += [
783         "//breakpad:dump_syms($host_toolchain)",
784         "//components/test_runner:layout_test_helper",
785       ]
786     }
788     if (is_linux) {
789       deps += [ "//breakpad:dump_syms($host_toolchain)" ]
790     }
791   }
794 if (is_linux) {
795   # This group corresponds to the list of tests run on the waterfall for
796   # desktop Linux GYP builds from testing/buildbot/chromium.linux.json. It's
797   # here to help track GYP -> GN conversion progress.
798   group("linux_default_tests") {
799     testonly = true
800     deps = [
801       "//base:base_unittests",  # PASSES (*) 2/25/2015
802       "//cc:cc_unittests",  # PASSES 2/25/2015
803       "//chrome/test:browser_tests",
804       "//chrome/test:interactive_ui_tests",
805       "//chrome/test:sync_integration_tests",  # Crashes for brettw in GN and GYP.
806       "//chrome/test:unit_tests",  # PASSES 2/25/2015
807       "//chrome/test/chromedriver:chromedriver_unittests",  # PASSES 2/25/2015
808       "//components:components_browsertests",  # PASSES 4/17/2015
809       "//components:components_unittests",  # PASSES 2/27/2015
810       "//content/test:content_browsertests",
811       "//content/test:content_unittests",  # PASSES 2/25/2015
812       "//crypto:crypto_unittests",  # PASSES 2/25/2015
813       "//dbus:dbus_unittests",  # PASSES 2/25/2015
814       "//device:device_unittests",  # PASSES 3/07/2015
815       "//extensions:extensions_browsertests",  # PASSES 2/25/2015
816       "//extensions:extensions_unittests",  # PASSES 2/25/2015
817       "//extensions/shell:app_shell_unittests",  # PASSES 2/25/2015
818       "//google_apis/gcm:gcm_unit_tests",  # PASSES 2/25/2015
819       "//google_apis:google_apis_unittests",  # PASSES 2/25/2015
820       "//gpu:gpu_unittests",  # PASSES 2/25/2015
821       "//ipc:ipc_tests",  # PASSES 2/25/2015
822       "//ipc/mojo:ipc_mojo_unittests",  # PASSES 2/25/2015
823       "//jingle:jingle_unittests",  # PASSES 2/25/2015
824       "//media:media_unittests",  # PASSES 3/3/2015
825       "//media/cast:cast_unittests",  # PASSES 2/25/2015
826       "//media/midi:midi_unittests",  # PASSES 4/10/2015
827       "//mojo/common:mojo_common_unittests",  # PASSES 2/25/2015
828       "//net:net_unittests",  # PASSES 2/25/2015
829       "//ppapi:ppapi_unittests",  # PASSES 2/26/2015
830       "//printing:printing_unittests",  # PASSES 2/25/2015
831       "//remoting:remoting_unittests",  # PASSES 4/17/2015
832       "//sandbox/linux:sandbox_linux_unittests",  # PASSES 2/25/2015
833       "//skia:skia_unittests",  # PASSES 2/25/2015
834       "//sql:sql_unittests",  # PASSES 2/25/2015
835       "//sync:sync_unit_tests",  # PASSES 2/25/2015
836       "//third_party/cacheinvalidation:cacheinvalidation_unittests",  # PASSES 2/25/2015
837       "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",  # PASSES 2/25/2015
838       "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",  # PASSES 2/25/2015
839       "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",  # PASSES 2/25/2015
840       "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",  # PASSES 2/25/2015
841       "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
842       "//ui/accessibility:accessibility_unittests",  # PASSES 2/25/2015
843       "//ui/app_list:app_list_unittests",  # PASSES 2/25/2015
844       "//ui/aura:aura_unittests",  # PASSES 2/25/2015
845       "//ui/base:ui_base_unittests",  # PASSES 4/17/2015
846       "//ui/compositor:compositor_unittests",  # PASSES 2/25/2015
847       "//ui/display:display_unittests",  # PASSES 2/25/2015
848       "//ui/events:events_unittests",  # PASSES 2/25/2015
849       "//ui/gfx:gfx_unittests",  # PASSES 2/25/2015
850       "//ui/gl:gl_unittests",
851       "//ui/touch_selection:ui_touch_selection_unittests",  # PASSES 2/25/2015
852       "//ui/views:views_unittests",  # PASSES (*) 2/25/2015
853       "//ui/wm:wm_unittests",  # PASSES 2/25/2015
854       "//url:url_unittests",  # PASSES 2/25/2015
856       # Note:
857       # (*) Fails but failures match GYP build at time of testing.
858     ]
860     if (enable_nacl) {
861       deps += [ "//components/nacl:nacl_loader_unittests" ]  # PASSES 3/28/2015
862     }
863   }
864 } else if (is_win) {
865   group("windows_default_tests") {
866     testonly = true
867     deps = [
868       "//ash:ash_unittests",  # FAILS 4/20/2015
869       "//base:base_unittests",  # PASSES 4/20/2015
870       "//cc:cc_unittests",  # PASSES 4/17/2015
871       "//chrome_elf:chrome_elf_unittests",  # FAILS 4/20/2015
872       "//chrome/installer/util:installer_util_unittests",
873       "//chrome/installer/setup:setup_unittests",
874       "//chrome/test:browser_tests",
875       "//chrome/test:interactive_ui_tests",
876       "//chrome/test:sync_integration_tests",  # Note: need to turn off incremental linking for debug.
877       "//chrome/test:unit_tests",
878       "//chrome/test/chromedriver:chromedriver_unittests",  # PASSES 4/20/2015
879       "//components:components_browsertests",  # PASSES 4/24/2015
880       "//components:components_unittests",  # PASSES 4/17/2015
881       "//courgette:courgette_unittests",  # PASSES 4/20/2015
882       "//content/test:content_browsertests",
883       "//content/test:content_unittests",  # PASSES 4/17/2015
884       "//crypto:crypto_unittests",  # PASSES 4/17/2015
885       "//device:device_unittests",  # PASSES 4/17/2015
886       "//extensions:extensions_browsertests",  # PASSES 4/17/2015
887       "//extensions:extensions_unittests",  # PASSES 4/17/2015
888       "//extensions/shell:app_shell_unittests",  # Doesn't compile in 64-bit
889       "//google_apis/gcm:gcm_unit_tests",  # PASSES 4/17/2015
890       "//google_apis:google_apis_unittests",  # PASSES 4/17/2015
891       "//gpu:gpu_unittests",  # PASSES 4/17/2015
892       "//ipc:ipc_tests",  # PASSES 4/17/2015
893       "//ipc/mojo:ipc_mojo_unittests",  # PASSES 4/17/2015
894       "//jingle:jingle_unittests",  # PASSES 4/17/2015
895       "//media/cast:cast_unittests",  # PASSES 4/17/2015
896       "//media:media_unittests",  # PASSES 4/17/2015
897       "//mojo/common:mojo_common_unittests",  # PASSES 4/17/2015
898       "//net:net_unittests",  # PASSES 4/17/2015
899       "//ppapi:ppapi_unittests",  # PASSES 4/17/2015
900       "//printing:printing_unittests",  # PASSES 4/17/2015
901       "//remoting:remoting_unittests",  # PASSES 4/17/2015
902       "//sandbox/win:sbox_integration_tests",  # PASSES 4/20/2015
903       "//sandbox/win:sbox_unittests",  # PASSES 4/20/2015
904       "//sandbox/win:sbox_validation_tests",  # PASSES 4/20/2015
905       "//skia:skia_unittests",  # PASSES 4/17/2015
906       "//sql:sql_unittests",  # PASSES 4/17/2015
907       "//sync:sync_unit_tests",  # PASSES 4/20/2015
908       "//third_party/cacheinvalidation:cacheinvalidation_unittests",  # PASSES 4/20/2015
909       "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",  # Seems to hang?
910       "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",  # FAILS
911       "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",  # PASSES 4/20/2015
912       "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",  # PASSES 4/20/2015
913       "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",  # PASSES 4/20/2015
914       "//ui/accessibility:accessibility_unittests",  # PASSES 4/20/2015
915       "//ui/app_list:app_list_unittests",  # PASSES 4/20/2015
916       "//ui/aura:aura_unittests",  # PASSES 4/17/2015
917       "//ui/base:ui_base_unittests",  # PASSES 4/20/2015
918       "//ui/compositor:compositor_unittests",  # PASSES 4/20/2015
919       "//ui/display:display_unittests",  # PASSES 4/20/2015
920       "//ui/events:events_unittests",  # PASSES 4/20/2015
921       "//ui/gfx:gfx_unittests",  # PASSES (with assertion failure?) 4/20/2015
922       "//ui/gl:gl_unittests",
923       "//ui/message_center:message_center_unittests",  # PASSES 4/20/2015
924       "//ui/touch_selection:ui_touch_selection_unittests",  # PASSES 4/20/2015
925       "//ui/views:views_unittests",  # TooltipControllerTest failures
926       "//ui/wm:wm_unittests",  # PASSES 4/21/2015
927       "//url:url_unittests",  # PASSES 4/17/2015
929       # TODO(GYP) nacl_integration
930       # TODO(GYP) telemetry_perf_unittests
931       # TODO(GYP) telemetry_unittests
932     ]
933   }