Fix the RenderFrameProxyHost mop-up logic in RenderFrameHostManager.
[chromium-blink-merge.git] / BUILD.gn
blob09913a9ca191d507fee7532bbfb3d984f1d9a2b6
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/features.gni")
12 import("//build/config/ui.gni")
13 import("//remoting/remoting_host.gni")
15 if (is_android) {
16   import("//build/config/android/config.gni")
19 declare_args() {
20   # A list of extra dependencies to add to the root target. This allows a
21   # checkout to add additional targets without explicitly changing any checked-
22   # in files.
23   root_extra_deps = []
26 # The "gn_all" target should list every root target (target that
27 # nothing else depends on) built by both GN and GYP. One should
28 # be able to run 'ninja gn_all gn_only gn_groups' and then run
29 # 'ninja' a second time and have the second ninja invocation do nothing.
31 # In addition, the "gn_all" target serves to pull in all of the other
32 # build files needed for the build.
34 # TODO(GYP): make sure that the above is true and there are scripts run
35 # on the bots that enforce this.
37 group("gn_all") {
38   testonly = true
40   deps = [
41     "//base:base_unittests",
42     "//cc:cc_unittests",
43     "//chrome",
44     "//chrome/test:browser_tests",
45     "//chrome/test:interactive_ui_tests",
46     "//chrome/test:sync_integration_tests",
47     "//chrome/test:unit_tests",
48     "//chrome/test/chromedriver:chromedriver_unittests",
49     "//components:components_browsertests",
50     "//components:components_unittests",
51     "//components/policy:policy_templates",
52     "//content/shell:content_shell",
53     "//content/test:content_browsertests",
54     "//content/test:content_perftests",
55     "//content/test:content_unittests",
56     "//crypto:crypto_unittests",
57     "//device:device_unittests",
58     "//extensions:extensions_browsertests",
59     "//extensions:extensions_unittests",
60     "//google_apis/gcm:gcm_unit_tests",
61     "//gpu:gpu_unittests",
62     "//ipc:ipc_tests",
63     "//ipc/mojo:ipc_mojo_unittests",
64     "//jingle:jingle_unittests",
65     "//media:media_unittests",
66     "//media/cast:cast_unittests",
67     "//mojo",
68     "//mojo/application",
69     "//mojo/common:mojo_common_unittests",
70     "//net:hpack_example_generator",
71     "//net:hpack_fuzz_mutator",
72     "//net:hpack_fuzz_wrapper",
73     "//net:net_perftests",
74     "//net:net_unittests",
75     "//ppapi:ppapi_unittests",
76     "//ppapi/examples/2d",
77     "//ppapi/examples/audio",
78     "//ppapi/examples/audio_input",
79     "//ppapi/examples/compositor",
80     "//ppapi/examples/crxfs",
81     "//ppapi/examples/enumerate_devices",
82     "//ppapi/examples/file_chooser",
83     "//ppapi/examples/flash_topmost",
84     "//ppapi/examples/font",
85     "//ppapi/examples/gamepad",
86     "//ppapi/examples/gles2",
87     "//ppapi/examples/gles2_spinning_cube",
88     "//ppapi/examples/ime",
89     "//ppapi/examples/input",
90     "//ppapi/examples/media_stream_audio",
91     "//ppapi/examples/media_stream_video",
92     "//ppapi/examples/mouse_cursor",
93     "//ppapi/examples/mouse_lock",
94     "//ppapi/examples/printing",
95     "//ppapi/examples/scaling",
96     "//ppapi/examples/scripting",
97     "//ppapi/examples/stub",
98     "//ppapi/examples/threading",
99     "//ppapi/examples/url_loader",
100     "//ppapi/examples/video_capture",
101     "//ppapi/examples/video_decode",
102     "//ppapi/examples/video_effects",
103     "//ppapi/examples/video_encode",
104     "//printing:printing_unittests",
105     "//skia:skia_unittests",
106     "//sql:sql_unittests",
107     "//sync:sync_unit_tests",
108     "//third_party/WebKit/public:blink_tests",
109     "//third_party/cacheinvalidation:cacheinvalidation_unittests",
110     "//third_party/codesighs",
111     "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",
112     "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",
113     "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",
114     "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",
115     "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
116     "//third_party/pdfium/samples:pdfium_test",
117     "//third_party/smhasher:pmurhash",
118     "//tools/imagediff($host_toolchain)",
119     "//tools/gn",
120     "//tools/gn:gn_unittests",
121     "//tools/telemetry:bitmaptools($host_toolchain)",
122     "//ui/accessibility:accessibility_unittests",
123     "//ui/app_list:app_list_unittests",
124     "//ui/base:ui_base_unittests",
125     "//ui/display:display_unittests",
126     "//ui/events:events_unittests",
127     "//ui/gfx:gfx_unittests",
128     "//ui/touch_selection:ui_touch_selection_unittests",
129     "//url:url_unittests",
130   ]
132   deps += root_extra_deps
134   # TODO(GYP): Get this working on the mac?
135   if (enable_extensions && !is_mac) {
136     deps += [ "//extensions/shell:app_shell_unittests" ]
137   }
139   if (enable_remoting_host) {
140     deps += [
141       "//remoting:remoting_unittests",
142       "//remoting:remoting_perftests",
143       "//remoting/host",
144       "//remoting/host:remoting_start_host",
145       "//remoting/host/it2me:remote_assistance_host",
146     ]
147   }
149   if (enable_me2me_host) {
150     deps += [ "//remoting/host:remoting_me2me_host" ]
151   }
153   if (!is_win) {
154     deps += [ "//breakpad:symupload" ]
155   }
157   if (use_x11) {
158     deps += [ "//tools/xdisplaycheck" ]
159   }
161   if (toolkit_views) {
162     deps += [ "//ui/views:views_unittests" ]
163   }
165   if (use_aura) {
166     deps += [ "//ui/wm:wm_unittests" ]
167   }
169   if (use_ozone) {
170     deps += [ "//ui/ozone" ]
171   }
173   if (enable_media_router) {
174     deps += [
175       "//chrome/browser/media/router/",
176       "//chrome/browser/media/router:unit_tests",
177     ]
178   }
180   if (is_win || is_mac || is_chromeos) {
181     # RLZ works on these platforms.
182     # TODO(GYP): Is this target needed, or pulled in automatically?
183     deps += [ "//rlz:rlz_lib" ]
184   }
186   if (is_android) {
187     deps += [
188       "//base/android/linker:chromium_android_linker",
189       "//build/android/gyp/test:hello_world",
190       "//build/android/rezip",
191       "//chrome/android:chrome_shell_apk",
192       "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
193       "//tools/imagediff($host_toolchain)",
195       # TODO(GYP): Remove these when the components_unittests work.
196       "//components/history/core/test:test",
197       "//components/policy:policy_component_test_support",
198       "//components/policy:test_support",
199       "//components/rappor:test_support",
200       "//components/signin/core/browser:test_support",
201       "//components/sync_driver:test_support",
202       "//components/user_manager",
203       "//components/wallpaper",
204       "//content/shell/android:content_shell_apk",
206       # TODO(GYP): Are these needed, or will they be pulled in automatically?
207       "//third_party/android_tools:android_gcm_java",
208       "//third_party/android_tools:uiautomator_java",
209       "//third_party/android_tools:android_support_v13_java",
210       "//third_party/android_tools:android_support_v7_appcompat_java",
211       "//third_party/android_tools:android_support_v7_mediarouter_java",
212       "//third_party/mesa",
213       "//third_party/mockito:mockito_java",
214       "//third_party/openmax_dl/dl",
215       "//third_party/speex",
216       "//ui/android:ui_java",
218       # TODO(GYP): Are these needed?
219       "//chrome/test:test_support_unit",
220       "//third_party/smhasher:murmurhash3",
221       "//ui/message_center:test_support",
222     ]
223     deps -= [
224       "//breakpad:symupload",  # TODO(GYP) ??
225       "//chrome",  # TODO(GYP) ??
226       "//chrome/test:browser_tests",  # TODO(GYP) ??
227       "//chrome/test:interactive_ui_tests",  # TODO(GYP) ??
228       "//chrome/test:sync_integration_tests",  # TODO(GYP) ??
229       "//chrome/test:unit_tests",  # TODO(GYP)
231       # Chromedriver shouldn't be compiled on Android.
232       "//chrome/test/chromedriver:chromedriver_unittests",
233       "//extensions:extensions_browsertests",
234       "//extensions:extensions_unittests",
235       "//google_apis/gcm:gcm_unit_tests",
236       "//ipc:ipc_tests",  # TODO(GYP) ??
237       "//jingle:jingle_unittests",  # TODO(GYP) ??
238       "//net:hpack_example_generator",
239       "//net:hpack_fuzz_mutator",
240       "//net:hpack_fuzz_wrapper",
241       "//net:net_perftests",
242       "//net:net_unittests",
243       "//ppapi/examples/2d",
244       "//ppapi/examples/audio",
245       "//ppapi/examples/audio_input",
246       "//ppapi/examples/compositor",
247       "//ppapi/examples/crxfs",
248       "//ppapi/examples/enumerate_devices",
249       "//ppapi/examples/file_chooser",
250       "//ppapi/examples/flash_topmost",
251       "//ppapi/examples/font",
252       "//ppapi/examples/gamepad",
253       "//ppapi/examples/gles2",
254       "//ppapi/examples/gles2_spinning_cube",
255       "//ppapi/examples/ime",
256       "//ppapi/examples/input",
257       "//ppapi/examples/media_stream_audio",
258       "//ppapi/examples/media_stream_video",
259       "//ppapi/examples/mouse_cursor",
260       "//ppapi/examples/mouse_lock",
261       "//ppapi/examples/printing",
262       "//ppapi/examples/scaling",
263       "//ppapi/examples/scripting",
264       "//ppapi/examples/stub",
265       "//ppapi/examples/threading",
266       "//ppapi/examples/url_loader",
267       "//ppapi/examples/video_capture",
268       "//ppapi/examples/video_decode",
269       "//ppapi/examples/video_effects",
270       "//ppapi/examples/video_encode",
271       "//third_party/pdfium/samples:pdfium_test",
272       "//tools/gn",
273       "//tools/gn:gn_unittests",
274       "//ui/app_list:app_list_unittests",
275       "//url:url_unittests",
276     ]
278     if (has_chrome_android_internal) {
279       deps += [ "//clank" ]  # TODO(GYP) ??
280     }
281   }
283   if (is_linux) {
284     # The following are definitely linux-only.
285     deps += [
286       "//breakpad:breakpad_unittests",
287       "//breakpad:generate_test_dump",
288       "//dbus:dbus_test_server",
289       "//dbus:dbus_unittests",
290       "//net:disk_cache_memory_test",
291       "//net:flip_in_mem_edsm_server",
292       "//net:flip_in_mem_edsm_server_unittests",
293       "//net:quic_client",
294       "//net:quic_server",
295       "//sandbox/linux:chrome_sandbox",
296       "//sandbox/linux:sandbox_linux_unittests",
297       "//sandbox/linux:sandbox_linux_jni_unittests",
298     ]
300     if (is_chromeos || use_ash) {
301       deps += [ "//components/session_manager/core" ]
302     }
303   }
305   if (is_linux && !is_chromeos) {
306     deps += [
307       # TODO(GYP): Figure out which of these should (and can) build
308       # under which other conditions.
309       "//base:base_perftests",
310       "//base:base_i18n_perftests",
311       "//base:check_example",
312       "//base:protect_file_posix",
313       "//base:build_utf8_validator_tables",
314       "//breakpad:core-2-minidump",
315       "//breakpad:minidump-2-core",
316       "//build/sanitizers:copy_llvm_symbolizer",
317       "//cc/blink:cc_blink_unittests",
318       "//cc:cc_perftests",
319       "//chrome/test:chrome_app_unittests",
320       "//chrome/test:load_library_perf_tests",
321       "//chrome/test:performance_browser_tests",
322       "//chrome/test:sync_performance_tests",
323       "//chrome/test/chromedriver:chromedriver",
324       "//chrome/test/chromedriver:chromedriver_tests",
325       "//chrome/tools/profile_reset:jtl_compiler",
326       "//cloud_print:cloud_print_unittests",
327       "//components:components_perftests",
328       "//components/network_hints/browser",
329       "//components/webui_generator",
330       "//content/public/app:browser",
331       "//content/public/app:child",
332       "//content/test:content_gl_tests",
333       "//content/test:content_gl_benchmark",
334       "//courgette:courgette",
335       "//courgette:courgette_fuzz",
336       "//courgette:courgette_minimal_tool",
337       "//courgette:courgette_unittests",
338       "//device:device_unittests",
339       "//gin:gin_shell",
340       "//gin:gin_v8_snapshot_fingerprint",
341       "//gin:gin_unittests",
342       "//google_apis:google_apis_unittests",
343       "//google_apis/gcm:mcs_probe",
344       "//gpu:angle_unittests",
345       "//gpu:gl_tests",
347       # TODO(GYP): Remove this when the gles2 tests work
348       "//gpu/command_buffer/client:gles2_implementation_no_check",
350       "//gpu:gpu_perftests",
351       "//gpu/khronos_glcts_support:khronos_glcts_test",  # TODO(GYP) crbug.com/471903 to make this complete.
352       "//ipc:ipc_perftests",
353       "//media:ffmpeg_regression_tests",  # TODO(GYP) this should be conditional on media_use_ffmpeg
354       "//media:media_perftests",
355       "//media/cast:cast_benchmarks",
356       "//media/cast:generate_barcode_video",
357       "//media/cast:generate_timecode_audio",
358       "//media/cast:tap_proxy",
359       "//mojo/application",
360       "//net:crash_cache",
361       "//net:crl_set_dump",
362       "//net:dns_fuzz_stub",
363       "//net:gdig",
364       "//net:get_server_time",
365       "//net:net_watcher",  # TODO(GYP): This should be conditional on use_v8_in_net
366       "//net:stress_cache",
367       "//net:tld_cleanup",
368       "//net:run_testserver",
369       "//net:dump_cache",
370       "//ppapi:pepper_hash_for_uma",
371       "//ppapi:ppapi_perftests",  # TODO(GYP): Are there other ppapi_* test targets?
372       "//skia:filter_fuzz_stub",
373       "//skia:image_operations_bench",
374       "//sync:run_sync_testserver",
375       "//sync:sync_endtoend_tests",
376       "//sync/tools:sync_client",
377       "//sync/tools:sync_listen_notifications",
378       "//testing/gmock:gmock_main",
379       "//third_party/codesighs:maptsvdifftool",
380       "//third_party/libphonenumber:libphonenumber_unittests",
381       "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests",
382       "//tools/gn:generate_test_gn_data",
383       "//tools/perf/clear_system_cache",
384       "//ui/keyboard:keyboard_unittests",
385       "//ui/message_center:message_center_unittests",
386       "//ui/snapshot:snapshot_unittests",
387       "//ui/views/examples:views_examples_with_content_exe",
389       # "//v8:v8_snapshot",  # TODO(GYP): visibility?
390       # "//v8:postmortem-metadata",  # TODO(GYP): visibility?
392       "//third_party/codesighs:nm2tsv",
393       "//third_party/leveldatabase:env_chromium_unittests",
394       "//third_party/libaddressinput:libaddressinput_unittests",
395       "//third_party/sqlite:sqlite_shell",
396       "//ui/compositor:compositor_unittests",
397     ]
399     if (current_toolchain == host_toolchain) {
400       # Do not build the breakpad utilities in cross-compiles.
401       deps += [
402         "//breakpad:dump_syms",
403         "//breakpad:microdump_stackwalk",
404         "//breakpad:minidump_dump",
405         "//breakpad:minidump_stackwalk",
406       ]
407     }
409     if (enable_extensions) {
410       deps += [ "//extensions/shell:app_shell" ]
411     }
413     if (enable_nacl) {
414       deps += [
415         "//components/nacl:nacl_loader_unittests",
416         "//remoting:remoting_key_tester",
417       ]
418     }
420     if (!is_debug && !is_component_build) {
421       deps += [ "//chrome/tools/service_discovery_sniffer" ]
422     }
424     if (toolkit_views) {
425       deps += [ "//ui/app_list:app_list_demo" ]
426     }
428     if (use_ash) {
429       deps += [
430         "//ash:ash_shell",
431         "//ash:ash_shell_unittests",
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     }
444     if (use_x11) {
445       deps += [ "//media:player_x11" ]
446       if (target_cpu != "arm") {
447         deps += [ "//gpu/tools/compositor_model_bench" ]
448       }
449     }
450   }
452   if (is_mac) {
453     deps += [
454       "//breakpad:crash_inspector",
455       "//breakpad:dump_syms",
456       "//breakpad:symupload",
457       "//third_party/apple_sample_code",
458       "//third_party/molokocacao",
459     ]
461     # TODO(GYP): Remove these when the targets below work and these
462     # are pulled in automatically.
463     deps += [
464       "//cc/blink",
465       "//components/ui/zoom:ui_zoom",
466       "//content",
467       "//content/test:test_support",
468       "//device/battery",
469       "//device/bluetooth",
470       "//device/nfc",
471       "//device/usb",
472       "//device/vibration",
473       "//media/blink",
474       "//pdf",
475       "//storage/browser",
476       "//third_party/brotli",
477       "//third_party/flac",
478       "//third_party/hunspell",
479       "//third_party/iccjpeg",
480       "//third_party/libphonenumber",
481       "//third_party/ots",
482       "//third_party/qcms",
483       "//third_party/smhasher:murmurhash3",
484       "//third_party/speex",
485       "//third_party/webrtc/system_wrappers",
486       "//ui/native_theme",
487       "//ui/snapshot",
488       "//ui/surface",
489     ]
491     # TODO(dpranke): These are as-yet untriaged but need at least the above.
492     deps -= [
493       "//chrome",  # TODO(GYP)
494       "//chrome/test:browser_tests",  # TODO(GYP)
495       "//chrome/test:interactive_ui_tests",  # TODO(GYP)
496       "//chrome/test:sync_integration_tests",  # TODO(GYP)
497       "//chrome/test:unit_tests",  # TODO(GYP)
498       "//components:components_browsertests",  # TODO(GYP)
499       "//components:components_unittests",  # TODO(GYP)
500       "//content/test:content_browsertests",  # TODO(GYP)
501       "//content/test:content_perftests",  # TODO(GYP)
502       "//content/test:content_unittests",  # TODO(GYP)
503       "//extensions:extensions_browsertests",  # TODO(GYP)
504       "//extensions:extensions_unittests",  # TODO(GYP)
505       "//net:net_unittests",  # TODO(GYP)
506       "//ui/app_list:app_list_unittests",  # TODO(GYP)
507       "//ui/gfx:gfx_unittests",  # TODO(GYP)
508     ]
509   } else if (is_win) {
510     deps += [ "//ui/metro_viewer" ]
511     deps -= [
512       "//crypto:crypto_unittests",  # TODO(GYP)
513       "//net:net_unittests",  # TODO(GYP)
514     ]
515   }
518 group("gn_only") {
519   testonly = true
521   if (is_linux && !is_chromeos) {
522     # TODO(GYP): Figure out if any of these should be in gn_all
523     # and figure out how cross-platform they are
524     deps = [
525       ":gn_mojo_targets",
526       "//chrome/browser/resources:extension_resource_demo",
527       "//chrome/installer/util:strings",
528       "//chrome:main_dll",
529       "//chrome/test:load_library_perf_tests",
530       "//chrome/tools/convert_dict",
531       "//components/constrained_window:unit_tests",
532       "//components/enhanced_bookmarks:test_support",
533       "//components/password_manager/content/renderer:browser_tests",
534       "//components/metrics:serialization",
535       "//components/proximity_auth:proximity_auth_unittests",
536       "//components/rappor:unit_tests",
537       "//components/sessions:unit_tests",
538       "//media/blink:media_blink_unittests",
539       "//media/base:base_for_cast_ios",
540       "//media/cast:udp_proxy",
541       "//native_client/src/trusted/platform_qualify:vcpuid",
542       "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
543       "//storage/browser:dump_file_system",
544       "//third_party/angle:libANGLE",
545       "//third_party/angle:libEGL",
546       "//third_party/angle:libGLESv2",
547       "//third_party/cld_2:cld_2_dynamic_data_tool",
548       "//third_party/leveldatabase:leveldb_arena_test",
549       "//third_party/leveldatabase:leveldb_bloom_test",
550       "//third_party/leveldatabase:leveldb_db_test",
551       "//third_party/leveldatabase:leveldb_crc32c_test",
552       "//third_party/leveldatabase:leveldb_cache_test",
553       "//third_party/leveldatabase:leveldb_env_test",
554       "//third_party/leveldatabase:leveldb_write_batch_test",
555       "//third_party/leveldatabase:leveldb_filter_block_test",
556       "//third_party/leveldatabase:leveldb_version_edit_test",
557       "//third_party/leveldatabase:leveldb_db_bench",
558       "//third_party/leveldatabase:leveldb_log_test",
559       "//third_party/leveldatabase:leveldb_corruption_test",
560       "//third_party/leveldatabase:leveldb_table_test",
561       "//third_party/leveldatabase:leveldb_skiplist_test",
562       "//third_party/leveldatabase:leveldb_filename_test",
563       "//third_party/leveldatabase:leveldb_dbformat_test",
564       "//third_party/pdfium/third_party:freetype",
565       "//third_party/libjingle:peerconnnection_server",
566       "//third_party/libjpeg_turbo:simd",
567       "//third_party/libjpeg_turbo:simd_asm",
568       "//third_party/libsrtp:replay_driver",
569       "//third_party/libsrtp:roc_driver",
570       "//third_party/libsrtp:rtpw",
571       "//third_party/libsrtp:rdbx_driver",
572       "//third_party/libsrtp:srtp_driver",
573       "//third_party/libsrtp:srtp_driver",
574       "//third_party/libsrtp:srtp_test_kernel_driver",
575       "//third_party/libsrtp:srtp_test_cipher_driver",
576       "//third_party/libsrtp:srtp_test_datatypes_driver",
577       "//third_party/libsrtp:srtp_test_aes_calc",
578       "//third_party/libsrtp:srtp_test_env",
579       "//third_party/libsrtp:srtp_test_rand_gen",
580       "//third_party/libsrtp:srtp_test_sha1_driver",
581       "//third_party/libsrtp:srtp_test_stat_driver",
582       "//third_party/opus:opus_compare",
583       "//third_party/opus:opus_demo",
584       "//third_party/opus:test_opus_decode",
585       "//third_party/opus:test_opus_encode",
586       "//third_party/opus:test_opus_api",
587       "//third_party/opus:test_opus_padding",
588       "//third_party/webrtc/system_wrappers:field_trial_default",
589       "//third_party/webrtc/system_wrappers:metrics_default",
590       "//ui/display/types",
591       "//ui/shell_dialogs:shell_dialogs_unittests",
592       "//ui/views/examples:views_examples_exe",
593     ]
594     if (enable_nacl) {
595       deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ]
596     }
597     if (use_ozone) {
598       deps += [ "//ui/ozone/demo" ]
599     }
600     if (is_android) {
601       deps += [ "//build/android/gyp/test:hello_world" ]
602     }
604     if (is_linux && current_toolchain == host_toolchain) {
605       deps += [ "//v8:d8" ]
606     }
607   }
610 group("gn_mojo_targets") {
611   testonly = true
612   if (is_linux && !is_chromeos) {
613     # TODO(GYP): Figure out if any of these should be in gn_all
614     # and figure out how cross-platform they are
615     deps = [
616       "//chrome/browser/ui/webui/omnibox:mojo_bindings_python",
617       "//chrome/browser/ui/webui/omnibox:mojo_bindings_dart",
618       "//content/public/common:mojo_bindings_dart",
619       "//content/public/common:mojo_bindings_python",
620       "//content/common:mojo_bindings_dart",
621       "//content/common:mojo_bindings_python",
622       "//content/test:web_ui_test_mojo_bindings_dart",
623       "//content/test:web_ui_test_mojo_bindings_python",
624       "//device/battery:mojo_bindings_python",
625       "//device/battery:mojo_bindings_dart",
626       "//device/vibration:mojo_bindings_dart",
627       "//device/vibration:mojo_bindings_python",
628       "//ipc/mojo:ipc_mojo_perftests",
629       "//ipc/mojo:client_channel_dart",
630       "//ipc/mojo:client_channel_python",
631       "//media/mojo/interfaces:interfaces_dart",
632       "//media/mojo/interfaces:interfaces_python",
633       "//media/mojo/services:cdm_service",
634       "//media/mojo:tests",
635       "//net/interfaces:interfaces_dart",
636       "//net/interfaces:interfaces_python",
637       "//third_party/mojo/src/mojo/edk/js/test:js_integration_tests",
638       "//third_party/mojo/src/mojo/edk/js/tests:js_to_cpp_bindings_dart",
639       "//third_party/mojo/src/mojo/edk/js/tests:js_to_cpp_bindings_python",
640       "//third_party/mojo/src/mojo/public/python:packaged_application",
641       "//third_party/mojo/src/mojo/public/python:packaged_bindings",
642       "//third_party/mojo/src/mojo/public/cpp/application:test_support_standalone",
643       "//third_party/mojo_services/src/accessibility/public/interfaces:interfaces_dart",
644       "//third_party/mojo_services/src/accessibility/public/interfaces:interfaces_python",
645       "//third_party/mojo_services/src/window_manager/public/interfaces:interfaces_dart",
646       "//third_party/mojo_services/src/window_manager/public/interfaces:interfaces_python",
647     ]
649     if (!is_debug) {
650       deps += [
651         "//mojo/services/html_viewer:tests",
652         "//mojo/services/network:apptests",
653       ]
654     }
655   }
658 group("gn_visibility") {
659   deps = [
660     # "//build/config/sanitizers:options_sources",
661     # "//third_party/pdfium:pdfium_embeddertests",  # TODO(GYP): visibility?
662     # "//third_party/pdfium:pdfium_unittests",  # TODO(GYP): visibility?
663     # "//ui/resources:repack_ui_test_mac_locale_pack",
664     # "//v8:v8_snapshot",  # TODO(GYP): visibility?
665     # "//v8:postmortem-metadata",  # TODO(GYP): visibility?
666   ]
669 if (is_linux) {
670   # This group corresponds to the list of tests run on the waterfall for
671   # desktop Linux GYP builds from testing/buildbot/chromium.linux.json. It's
672   # here to help track GYP -> GN conversion progress.
673   group("linux_default_tests") {
674     testonly = true
675     deps = [
676       # components_browsertests  TODO(GYP)
678       "//base:base_unittests",  # PASSES (*) 2/25/2015
679       "//cc:cc_unittests",  # PASSES 2/25/2015
680       "//chrome/test:browser_tests",
681       "//chrome/test:interactive_ui_tests",
682       "//chrome/test:sync_integration_tests",  # Crashes for brettw in GN and GYP.
683       "//chrome/test:unit_tests",  # PASSES 2/25/2015
684       "//chrome/test/chromedriver:chromedriver_unittests",  # PASSES 2/25/2015
685       "//components:components_unittests",  # PASSES 2/27/2015
686       "//content/test:content_browsertests",
687       "//content/test:content_unittests",  # PASSES 2/25/2015
688       "//crypto:crypto_unittests",  # PASSES 2/25/2015
689       "//dbus:dbus_unittests",  # PASSES 2/25/2015
690       "//device:device_unittests",  # PASSES 3/07/2015
691       "//extensions:extensions_browsertests",  # PASSES 2/25/2015
692       "//extensions:extensions_unittests",  # PASSES 2/25/2015
693       "//extensions/shell:app_shell_unittests",  # PASSES 2/25/2015
694       "//google_apis/gcm:gcm_unit_tests",  # PASSES 2/25/2015
695       "//google_apis:google_apis_unittests",  # PASSES 2/25/2015
696       "//gpu:gpu_unittests",  # PASSES 2/25/2015
697       "//ipc:ipc_tests",  # PASSES 2/25/2015
698       "//ipc/mojo:ipc_mojo_unittests",  # PASSES 2/25/2015
699       "//jingle:jingle_unittests",  # PASSES 2/25/2015
700       "//media/cast:cast_unittests",  # PASSES 2/25/2015
701       "//media:media_unittests",  # PASSES 3/3/2015
702       "//mojo/common:mojo_common_unittests",  # PASSES 2/25/2015
703       "//net:net_unittests",  # PASSES 2/25/2015
704       "//ppapi:ppapi_unittests",  # PASSES 2/26/2015
705       "//printing:printing_unittests",  # PASSES 2/25/2015
706       "//remoting:remoting_unittests",  # Some crashes.
707       "//sandbox/linux:sandbox_linux_unittests",  # PASSES 2/25/2015
708       "//skia:skia_unittests",  # PASSES 2/25/2015
709       "//sql:sql_unittests",  # PASSES 2/25/2015
710       "//sync:sync_unit_tests",  # PASSES 2/25/2015
711       "//third_party/cacheinvalidation:cacheinvalidation_unittests",  # PASSES 2/25/2015
712       "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",  # PASSES 2/25/2015
713       "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",  # PASSES 2/25/2015
714       "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",  # PASSES 2/25/2015
715       "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",  # PASSES 2/25/2015
716       "//ui/accessibility:accessibility_unittests",  # PASSES 2/25/2015
717       "//ui/app_list:app_list_unittests",  # PASSES 2/25/2015
718       "//ui/aura:aura_unittests",  # PASSES 2/25/2015
719       "//ui/base:ui_base_unittests",  # TODO(GYP) ResourceBundleTest.* fails.
720       "//ui/compositor:compositor_unittests",  # PASSES 2/25/2015
721       "//ui/display:display_unittests",  # PASSES 2/25/2015
722       "//ui/events:events_unittests",  # PASSES 2/25/2015
723       "//ui/gfx:gfx_unittests",  # PASSES 2/25/2015
724       "//ui/touch_selection:ui_touch_selection_unittests",  # PASSES 2/25/2015
725       "//ui/views:views_unittests",  # PASSES (*) 2/25/2015
726       "//ui/wm:wm_unittests",  # PASSES 2/25/2015
727       "//url:url_unittests",  # PASSES 2/25/2015
729       # Note:
730       # (*) Fails but failures match GYP build at time of testing.
731     ]
733     if (enable_nacl) {
734       deps += [ "//components/nacl:nacl_loader_unittests" ]  # PASSES 3/28/2015
735     }
736   }