Implement Site Settings \ Images category.
[chromium-blink-merge.git] / BUILD.gn
blob96fd2e78fcb99321bf1b4fbb810ade2d2d0282bc
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     "//media:media_unittests",
67     "//media/cast:cast_unittests",
68     "//mojo",
69     "//mojo/application",
70     "//mojo/common:mojo_common_unittests",
71     "//net:hpack_example_generator",
72     "//net:hpack_fuzz_mutator",
73     "//net:hpack_fuzz_wrapper",
74     "//net:net_perftests",
75     "//net:net_unittests",
76     "//ppapi:ppapi_unittests",
77     "//ppapi/examples/2d",
78     "//ppapi/examples/audio",
79     "//ppapi/examples/audio_input",
80     "//ppapi/examples/compositor",
81     "//ppapi/examples/crxfs",
82     "//ppapi/examples/enumerate_devices",
83     "//ppapi/examples/file_chooser",
84     "//ppapi/examples/flash_topmost",
85     "//ppapi/examples/font",
86     "//ppapi/examples/gamepad",
87     "//ppapi/examples/gles2",
88     "//ppapi/examples/gles2_spinning_cube",
89     "//ppapi/examples/ime",
90     "//ppapi/examples/input",
91     "//ppapi/examples/media_stream_audio",
92     "//ppapi/examples/media_stream_video",
93     "//ppapi/examples/mouse_cursor",
94     "//ppapi/examples/mouse_lock",
95     "//ppapi/examples/printing",
96     "//ppapi/examples/scaling",
97     "//ppapi/examples/scripting",
98     "//ppapi/examples/stub",
99     "//ppapi/examples/threading",
100     "//ppapi/examples/url_loader",
101     "//ppapi/examples/video_capture",
102     "//ppapi/examples/video_decode",
103     "//ppapi/examples/video_effects",
104     "//ppapi/examples/video_encode",
105     "//printing:printing_unittests",
106     "//skia:skia_unittests",
107     "//sql:sql_unittests",
108     "//sync:sync_unit_tests",
109     "//third_party/WebKit/public:blink_tests",
110     "//third_party/cacheinvalidation:cacheinvalidation_unittests",
111     "//third_party/codesighs",
112     "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",
113     "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",
114     "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",
115     "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",
116     "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
117     "//third_party/pdfium/samples:pdfium_test",
118     "//third_party/smhasher:pmurhash",
119     "//tools/imagediff($host_toolchain)",
120     "//tools/gn",
121     "//tools/gn:gn_unittests",
122     "//tools/gn:generate_test_gn_data",
123     "//tools/telemetry:bitmaptools($host_toolchain)",
124     "//ui/accessibility:accessibility_unittests",
125     "//ui/app_list:app_list_unittests",
126     "//ui/base:ui_base_unittests",
127     "//ui/display:display_unittests",
128     "//ui/events:events_unittests",
129     "//ui/gfx:gfx_unittests",
130     "//ui/touch_selection:ui_touch_selection_unittests",
131     "//url:url_unittests",
132   ]
134   deps += root_extra_deps
136   if (enable_extensions && !is_mac) {
137     # TODO(GYP): Get this working on the mac?
138     deps += [ "//extensions/shell:app_shell_unittests" ]
139   }
141   if (enable_me2me_host) {
142     deps += [ "//remoting/host:remoting_me2me_host" ]
143   }
145   if (enable_media_router) {
146     deps += [
147       "//chrome/browser/media/router/",
148       "//chrome/browser/media/router:unit_tests",
149     ]
150   }
152   if (enable_remoting_host) {
153     deps += [
154       "//remoting:remoting_unittests",
155       "//remoting:remoting_perftests",
156       "//remoting/host",
157       "//remoting/host:remoting_start_host",
158       "//remoting/host/it2me:remote_assistance_host",
159     ]
160   }
162   if (toolkit_views) {
163     deps += [ "//ui/views:views_unittests" ]
164   }
166   if (use_aura) {
167     deps += [ "//ui/wm:wm_unittests" ]
168   }
170   if (use_ozone) {
171     deps += [ "//ui/ozone" ]
172   }
174   if (use_x11) {
175     deps += [ "//tools/xdisplaycheck" ]
176   }
178   if (enable_configuration_policy) {
179     deps += [ "//components/policy:policy_templates" ]
180   }
182   if (v8_use_external_startup_data) {
183     deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
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       "//chrome",  # TODO(GYP) ??
225       "//chrome/test:browser_tests",  # TODO(GYP) ??
226       "//chrome/test:interactive_ui_tests",  # TODO(GYP) ??
227       "//chrome/test:sync_integration_tests",  # TODO(GYP) ??
228       "//chrome/test:unit_tests",  # TODO(GYP)
230       # Chromedriver shouldn't be compiled on Android.
231       "//chrome/test/chromedriver:chromedriver_unittests",
232       "//extensions:extensions_browsertests",
233       "//extensions:extensions_unittests",
234       "//google_apis/gcm:gcm_unit_tests",
235       "//ipc:ipc_tests",  # TODO(GYP) ??
236       "//jingle:jingle_unittests",  # TODO(GYP) ??
237       "//net:hpack_example_generator",
238       "//net:hpack_fuzz_mutator",
239       "//net:hpack_fuzz_wrapper",
240       "//net:net_perftests",
241       "//net:net_unittests",
242       "//ppapi/examples/2d",
243       "//ppapi/examples/audio",
244       "//ppapi/examples/audio_input",
245       "//ppapi/examples/compositor",
246       "//ppapi/examples/crxfs",
247       "//ppapi/examples/enumerate_devices",
248       "//ppapi/examples/file_chooser",
249       "//ppapi/examples/flash_topmost",
250       "//ppapi/examples/font",
251       "//ppapi/examples/gamepad",
252       "//ppapi/examples/gles2",
253       "//ppapi/examples/gles2_spinning_cube",
254       "//ppapi/examples/ime",
255       "//ppapi/examples/input",
256       "//ppapi/examples/media_stream_audio",
257       "//ppapi/examples/media_stream_video",
258       "//ppapi/examples/mouse_cursor",
259       "//ppapi/examples/mouse_lock",
260       "//ppapi/examples/printing",
261       "//ppapi/examples/scaling",
262       "//ppapi/examples/scripting",
263       "//ppapi/examples/stub",
264       "//ppapi/examples/threading",
265       "//ppapi/examples/url_loader",
266       "//ppapi/examples/video_capture",
267       "//ppapi/examples/video_decode",
268       "//ppapi/examples/video_effects",
269       "//ppapi/examples/video_encode",
270       "//third_party/pdfium/samples:pdfium_test",
271       "//tools/gn",
272       "//tools/gn:generate_test_gn_data",
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) {  # TODO(GYP): || is_android || is_bsd?
284     deps += [
285       "//breakpad:core-2-minidump",
286       "//breakpad:minidump-2-core",
287     ]
288   }
290   if (is_chromeos) {
291     deps += [
292       "//chromeos:chromeos_unittests",
293       "//ui/chromeos:ui_chromeos_unittests",
294     ]
295   }
297   if (is_chromeos || is_mac || is_win) {
298     deps += [
299       "//rlz:rlz_id",
300       "//rlz:rlz_lib",
301       "//rlz:rlz_unittests",
302     ]
303   }
305   if (is_linux) {
306     # The following are definitely linux-only.
307     deps += [
308       "//breakpad:breakpad_unittests",
309       "//breakpad:generate_test_dump",
310       "//dbus:dbus_test_server",
311       "//dbus:dbus_unittests",
312       "//net:disk_cache_memory_test",
313       "//net:flip_in_mem_edsm_server",
314       "//net:flip_in_mem_edsm_server_unittests",
315       "//net:quic_client",
316       "//net:quic_server",
317       "//sandbox/linux:chrome_sandbox",
318       "//sandbox/linux:sandbox_linux_unittests",
319       "//sandbox/linux:sandbox_linux_jni_unittests",
320     ]
322     if (is_chromeos || use_ash) {
323       deps += [ "//components/session_manager/core" ]
324     }
325   }
327   if (is_win || (is_linux && !is_chromeos)) {
328     # TODO(GYP): Figure out which of these should (and can) build
329     # for android/chromeos/mac/ios.
330     deps += [
331       "//base:base_perftests",
332       "//base:base_i18n_perftests",
333       "//base:check_example",
334       "//base:protect_file_posix",
335       "//base:build_utf8_validator_tables",
336       "//cc:cc_perftests",
337       "//cc/blink:cc_blink_unittests",
338       "//chrome/test:load_library_perf_tests",
339       "//chrome/test:performance_browser_tests",
340       "//chrome/test:sync_performance_tests",
341       "//chrome/test/chromedriver:chromedriver",
342       "//chrome/test/chromedriver:chromedriver_tests",
343       "//chrome/tools/profile_reset:jtl_compiler",
344       "//components:components_perftests",
345       "//content/test:content_gl_tests",
346       "//content/test:content_gl_benchmark",
347       "//courgette:courgette",
348       "//courgette:courgette_fuzz",
349       "//courgette:courgette_minimal_tool",
350       "//courgette:courgette_unittests",
351       "//device:device_unittests",
352       "//gin:gin_shell",
353       "//gin:gin_unittests",
354       "//google_apis:google_apis_unittests",
355       "//google_apis/gcm:mcs_probe",
356       "//gpu:angle_unittests",
357       "//gpu:gpu_perftests",
358       "//gpu:gl_tests",
359       "//ipc:ipc_perftests",
360       "//media:ffmpeg_regression_tests",  # TODO(GYP) this should be conditional on media_use_ffmpeg
361       "//media:media_perftests",
362       "//media/cast:generate_barcode_video",
363       "//media/cast:generate_timecode_audio",
364       "//net:crash_cache",
365       "//net:crl_set_dump",
366       "//net:dns_fuzz_stub",
367       "//net:dump_cache",
368       "//net:gdig",
369       "//net:get_server_time",
370       "//net:net_watcher",  # TODO(GYP): This should be conditional on use_v8_in_net
371       "//net:run_testserver",
372       "//net:stress_cache",
373       "//net:tld_cleanup",
374       "//ppapi:pepper_hash_for_uma",
375       "//ppapi:ppapi_perftests",
376       "//sync:run_sync_testserver",
377       "//sync:sync_endtoend_tests",
378       "//third_party/codesighs:maptsvdifftool",
379       "//third_party/leveldatabase:env_chromium_unittests",
380       "//third_party/libaddressinput:libaddressinput_unittests",
381       "//third_party/libphonenumber:libphonenumber_unittests",
382       "//ui/compositor:compositor_unittests",
383     ]
385     if (enable_extensions) {
386       deps += [ "//extensions/shell:app_shell" ]
387     }
389     if (enable_nacl) {
390       deps += [ "//components/nacl:nacl_loader_unittests" ]
391     }
393     if (enable_nacl && enable_remoting) {
394       deps += [ "//remoting:remoting_key_tester" ]
395     }
397     if (use_ash) {
398       deps += [
399         "//ash:ash_shell",
400         "//ash:ash_shell_unittests",
401         "//ash:ash_unittests",
402       ]
403     }
405     if (use_aura) {
406       deps += [
407         "//ui/aura:aura_unittests",
408         "//ui/aura:bench",
409         "//ui/aura:demo",
410       ]
411     }
412   }
414   if (is_linux && !is_chromeos) {
415     deps += [
416       # TODO(GYP): Figure out which of these should (and can) build
417       # under which other conditions.
418       "//build/sanitizers:copy_llvm_symbolizer",
419       "//chrome/test:chrome_app_unittests",
420       "//cloud_print:cloud_print_unittests",
421       "//components/network_hints/browser",
422       "//components/webui_generator",
423       "//content/public/app:browser",
424       "//content/public/app:child",
426       # TODO(GYP): Remove this when the gles2 tests work
427       "//gpu/command_buffer/client:gles2_implementation_no_check",
429       "//gpu/khronos_glcts_support:khronos_glcts_test",  # TODO(GYP) crbug.com/471903 to make this complete.
430       "//media/cast:cast_benchmarks",
431       "//media/cast:tap_proxy",
432       "//mojo/application",
433       "//skia:filter_fuzz_stub",
434       "//skia:image_operations_bench",
435       "//sync/tools:sync_client",
436       "//sync/tools:sync_listen_notifications",
437       "//testing/gmock:gmock_main",
438       "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests",
439       "//tools/perf/clear_system_cache",
440       "//ui/keyboard:keyboard_unittests",
441       "//ui/message_center:message_center_unittests",
442       "//ui/snapshot:snapshot_unittests",
443       "//ui/views/examples:views_examples_with_content_exe",
445       # "//v8:v8_snapshot",  # TODO(GYP): visibility?
446       # "//v8:postmortem-metadata",  # TODO(GYP): visibility?
448       "//third_party/codesighs:nm2tsv",
449       "//third_party/sqlite:sqlite_shell",
450     ]
452     if (current_toolchain == host_toolchain) {
453       # Do not build the breakpad utilities in cross-compiles.
454       deps += [
455         "//breakpad:dump_syms",
456         "//breakpad:microdump_stackwalk",
457         "//breakpad:minidump_dump",
458         "//breakpad:minidump_stackwalk",
459       ]
460     }
462     if (!is_debug && !is_component_build) {
463       deps += [ "//chrome/tools/service_discovery_sniffer" ]
464     }
466     if (toolkit_views) {
467       deps += [ "//ui/app_list:app_list_demo" ]
468     }
470     if (use_x11) {
471       deps += [ "//media:player_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   }