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