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