Revert of Add a WorkerScheduler and a WebThreadImplForWorker (patchset #15 id:360001...
[chromium-blink-merge.git] / BUILD.gn
bloba5d7cfd058981929a0984a8b9e0187350d2a22d0
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   deps = []
523   if (!is_android && !is_ios) {
524     deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
525   }
527   if (is_linux && !is_chromeos) {
528     # TODO(GYP): Figure out if any of these should be in gn_all
529     # and figure out how cross-platform they are
530     deps += [
531       ":gn_mojo_targets",
532       "//chrome/browser/resources:extension_resource_demo",
533       "//chrome/installer/util:strings",
534       "//chrome:main_dll",
535       "//chrome/test:load_library_perf_tests",
536       "//chrome/tools/convert_dict",
537       "//components/constrained_window:unit_tests",
538       "//components/enhanced_bookmarks:test_support",
539       "//components/metrics:serialization",
540       "//components/password_manager/content/renderer:browser_tests",
541       "//components/rappor:unit_tests",
542       "//components/sessions:unit_tests",
543       "//media/blink:media_blink_unittests",
544       "//media/base:base_for_cast_ios",
545       "//media/cast:udp_proxy",
546       "//native_client/src/trusted/platform_qualify:vcpuid",
547       "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
548       "//storage/browser:dump_file_system",
549       "//third_party/angle:libANGLE",
550       "//third_party/angle:libEGL",
551       "//third_party/angle:libGLESv2",
552       "//third_party/cld_2:cld_2_dynamic_data_tool",
553       "//third_party/leveldatabase:leveldb_arena_test",
554       "//third_party/leveldatabase:leveldb_bloom_test",
555       "//third_party/leveldatabase:leveldb_db_test",
556       "//third_party/leveldatabase:leveldb_crc32c_test",
557       "//third_party/leveldatabase:leveldb_cache_test",
558       "//third_party/leveldatabase:leveldb_env_test",
559       "//third_party/leveldatabase:leveldb_write_batch_test",
560       "//third_party/leveldatabase:leveldb_filter_block_test",
561       "//third_party/leveldatabase:leveldb_version_edit_test",
562       "//third_party/leveldatabase:leveldb_db_bench",
563       "//third_party/leveldatabase:leveldb_log_test",
564       "//third_party/leveldatabase:leveldb_corruption_test",
565       "//third_party/leveldatabase:leveldb_table_test",
566       "//third_party/leveldatabase:leveldb_skiplist_test",
567       "//third_party/leveldatabase:leveldb_filename_test",
568       "//third_party/leveldatabase:leveldb_dbformat_test",
569       "//third_party/pdfium/third_party:freetype",
570       "//third_party/libjingle:peerconnnection_server",
571       "//third_party/libjpeg_turbo:simd",
572       "//third_party/libjpeg_turbo:simd_asm",
573       "//third_party/libsrtp:replay_driver",
574       "//third_party/libsrtp:roc_driver",
575       "//third_party/libsrtp:rtpw",
576       "//third_party/libsrtp:rdbx_driver",
577       "//third_party/libsrtp:srtp_driver",
578       "//third_party/libsrtp:srtp_driver",
579       "//third_party/libsrtp:srtp_test_kernel_driver",
580       "//third_party/libsrtp:srtp_test_cipher_driver",
581       "//third_party/libsrtp:srtp_test_datatypes_driver",
582       "//third_party/libsrtp:srtp_test_aes_calc",
583       "//third_party/libsrtp:srtp_test_env",
584       "//third_party/libsrtp:srtp_test_rand_gen",
585       "//third_party/libsrtp:srtp_test_sha1_driver",
586       "//third_party/libsrtp:srtp_test_stat_driver",
587       "//third_party/opus:opus_compare",
588       "//third_party/opus:opus_demo",
589       "//third_party/opus:test_opus_decode",
590       "//third_party/opus:test_opus_encode",
591       "//third_party/opus:test_opus_api",
592       "//third_party/opus:test_opus_padding",
593       "//third_party/webrtc/system_wrappers:field_trial_default",
594       "//third_party/webrtc/system_wrappers:metrics_default",
595       "//ui/display/types",
596       "//ui/shell_dialogs:shell_dialogs_unittests",
597       "//ui/views/examples:views_examples_exe",
598     ]
599     if (enable_nacl) {
600       deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ]
601     }
602     if (use_ozone) {
603       deps += [ "//ui/ozone/demo" ]
604     }
605     if (is_android) {
606       deps += [ "//build/android/gyp/test:hello_world" ]
607     }
609     if (is_linux && current_toolchain == host_toolchain) {
610       deps += [ "//v8:d8" ]
611     }
612   }
615 group("gn_mojo_targets") {
616   testonly = true
617   if (is_linux && !is_chromeos) {
618     # TODO(GYP): Figure out if any of these should be in gn_all
619     # and figure out how cross-platform they are
620     deps = [
621       "//chrome/browser/ui/webui/omnibox:mojo_bindings_python",
622       "//chrome/browser/ui/webui/omnibox:mojo_bindings_dart",
623       "//content/public/common:mojo_bindings_dart",
624       "//content/public/common:mojo_bindings_python",
625       "//content/common:mojo_bindings_dart",
626       "//content/common:mojo_bindings_python",
627       "//content/test:web_ui_test_mojo_bindings_dart",
628       "//content/test:web_ui_test_mojo_bindings_python",
629       "//device/battery:mojo_bindings_python",
630       "//device/battery:mojo_bindings_dart",
631       "//device/vibration:mojo_bindings_dart",
632       "//device/vibration:mojo_bindings_python",
633       "//ipc/mojo:ipc_mojo_perftests",
634       "//ipc/mojo:client_channel_dart",
635       "//ipc/mojo:client_channel_python",
636       "//media/mojo/interfaces:interfaces_dart",
637       "//media/mojo/interfaces:interfaces_python",
638       "//media/mojo/services:cdm_service",
639       "//media/mojo:tests",
640       "//net/interfaces:interfaces_dart",
641       "//net/interfaces:interfaces_python",
642       "//third_party/mojo/src/mojo/edk/js/test:js_integration_tests",
643       "//third_party/mojo/src/mojo/edk/js/tests:js_to_cpp_bindings_dart",
644       "//third_party/mojo/src/mojo/edk/js/tests:js_to_cpp_bindings_python",
645       "//third_party/mojo/src/mojo/public/python:packaged_application",
646       "//third_party/mojo/src/mojo/public/python:packaged_bindings",
647       "//third_party/mojo/src/mojo/public/cpp/application:test_support_standalone",
648       "//third_party/mojo_services/src/accessibility/public/interfaces:interfaces_dart",
649       "//third_party/mojo_services/src/accessibility/public/interfaces:interfaces_python",
650       "//third_party/mojo_services/src/window_manager/public/interfaces:interfaces_dart",
651       "//third_party/mojo_services/src/window_manager/public/interfaces:interfaces_python",
652     ]
654     if (!is_debug) {
655       deps += [
656         "//mojo/services/html_viewer:apptests",
657         "//mojo/services/html_viewer:tests",
658         "//mojo/services/network:apptests",
659       ]
660     }
661   }
664 group("gn_visibility") {
665   deps = [
666     # "//build/config/sanitizers:options_sources",
667     # "//third_party/pdfium:pdfium_embeddertests",  # TODO(GYP): visibility?
668     # "//third_party/pdfium:pdfium_unittests",  # TODO(GYP): visibility?
669     # "//ui/resources:repack_ui_test_mac_locale_pack",
670     # "//v8:v8_snapshot",  # TODO(GYP): visibility?
671     # "//v8:postmortem-metadata",  # TODO(GYP): visibility?
672   ]
675 if (is_linux) {
676   # This group corresponds to the list of tests run on the waterfall for
677   # desktop Linux GYP builds from testing/buildbot/chromium.linux.json. It's
678   # here to help track GYP -> GN conversion progress.
679   group("linux_default_tests") {
680     testonly = true
681     deps = [
682       # components_browsertests  TODO(GYP)
684       "//base:base_unittests",  # PASSES (*) 2/25/2015
685       "//cc:cc_unittests",  # PASSES 2/25/2015
686       "//chrome/test:browser_tests",
687       "//chrome/test:interactive_ui_tests",
688       "//chrome/test:sync_integration_tests",  # Crashes for brettw in GN and GYP.
689       "//chrome/test:unit_tests",  # PASSES 2/25/2015
690       "//chrome/test/chromedriver:chromedriver_unittests",  # PASSES 2/25/2015
691       "//components:components_unittests",  # PASSES 2/27/2015
692       "//content/test:content_browsertests",
693       "//content/test:content_unittests",  # PASSES 2/25/2015
694       "//crypto:crypto_unittests",  # PASSES 2/25/2015
695       "//dbus:dbus_unittests",  # PASSES 2/25/2015
696       "//device:device_unittests",  # PASSES 3/07/2015
697       "//extensions:extensions_browsertests",  # PASSES 2/25/2015
698       "//extensions:extensions_unittests",  # PASSES 2/25/2015
699       "//extensions/shell:app_shell_unittests",  # PASSES 2/25/2015
700       "//google_apis/gcm:gcm_unit_tests",  # PASSES 2/25/2015
701       "//google_apis:google_apis_unittests",  # PASSES 2/25/2015
702       "//gpu:gpu_unittests",  # PASSES 2/25/2015
703       "//ipc:ipc_tests",  # PASSES 2/25/2015
704       "//ipc/mojo:ipc_mojo_unittests",  # PASSES 2/25/2015
705       "//jingle:jingle_unittests",  # PASSES 2/25/2015
706       "//media/cast:cast_unittests",  # PASSES 2/25/2015
707       "//media:media_unittests",  # PASSES 3/3/2015
708       "//mojo/common:mojo_common_unittests",  # PASSES 2/25/2015
709       "//net:net_unittests",  # PASSES 2/25/2015
710       "//ppapi:ppapi_unittests",  # PASSES 2/26/2015
711       "//printing:printing_unittests",  # PASSES 2/25/2015
712       "//remoting:remoting_unittests",  # Some crashes.
713       "//sandbox/linux:sandbox_linux_unittests",  # PASSES 2/25/2015
714       "//skia:skia_unittests",  # PASSES 2/25/2015
715       "//sql:sql_unittests",  # PASSES 2/25/2015
716       "//sync:sync_unit_tests",  # PASSES 2/25/2015
717       "//third_party/cacheinvalidation:cacheinvalidation_unittests",  # PASSES 2/25/2015
718       "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",  # PASSES 2/25/2015
719       "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",  # PASSES 2/25/2015
720       "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",  # PASSES 2/25/2015
721       "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",  # PASSES 2/25/2015
722       "//ui/accessibility:accessibility_unittests",  # PASSES 2/25/2015
723       "//ui/app_list:app_list_unittests",  # PASSES 2/25/2015
724       "//ui/aura:aura_unittests",  # PASSES 2/25/2015
725       "//ui/base:ui_base_unittests",  # TODO(GYP) ResourceBundleTest.* fails.
726       "//ui/compositor:compositor_unittests",  # PASSES 2/25/2015
727       "//ui/display:display_unittests",  # PASSES 2/25/2015
728       "//ui/events:events_unittests",  # PASSES 2/25/2015
729       "//ui/gfx:gfx_unittests",  # PASSES 2/25/2015
730       "//ui/touch_selection:ui_touch_selection_unittests",  # PASSES 2/25/2015
731       "//ui/views:views_unittests",  # PASSES (*) 2/25/2015
732       "//ui/wm:wm_unittests",  # PASSES 2/25/2015
733       "//url:url_unittests",  # PASSES 2/25/2015
735       # Note:
736       # (*) Fails but failures match GYP build at time of testing.
737     ]
739     if (enable_nacl) {
740       deps += [ "//components/nacl:nacl_loader_unittests" ]  # PASSES 3/28/2015
741     }
742   }