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