Prepare Push Messaging browser tests for the endpoint value change.
[chromium-blink-merge.git] / BUILD.gn
blobbf50824c428212b803b83d3e28442887abf5381d
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 # This is the root build file for GN. GN will start processing by loading this
6 # file, and recursively load all dependencies until all dependencies are either
7 # resolved or known not to exist (which will cause the build to fail). So if
8 # you add a new build file, there must be some path of dependencies from this
9 # file to your new one or GN won't know about it.
11 import("//build/config/crypto.gni")
12 import("//build/config/features.gni")
13 import("//build/config/ui.gni")
14 import("//build/module_args/v8.gni")
16 if (is_android) {
17   import("//build/config/android/config.gni")
20 declare_args() {
21   # A list of extra dependencies to add to the root target. This allows a
22   # checkout to add additional targets without explicitly changing any checked-
23   # in files.
24   root_extra_deps = []
27 # This file defines the following three main targets:
29 # "both_gn_and_gyp" should list every root target (target that nothing else
30 # depends on) built by GN that is also built in the GYP build.
32 # "gn_all" should (transitively) cause everything to be built; if you run
33 # 'ninja gn_all' and then 'ninja all', the second build should do no work.
35 # "gn_only" should list every root target that is *not* intended to be built
36 # in a GYP build. Because GN has different rules for deciding what an 'all'
37 # build is, this may end up including targets that are actually defined in a
38 # GYP build but not dependencies of GYP's "all" (and so not actually built).
40 # TODO(GYP): crbug.com/481694. Make sure that the above is true and there are
41 # scripts run on the bots that enforce this. Once the GYP migration is over,
42 # we can collapse all of these targets as desired.
44 group("gn_all") {
45   testonly = true
47   deps = [
48     ":both_gn_and_gyp",
49     ":gn_only",
50   ]
53 # The "both_gn_and_gyp" target should reflect every target that is built
54 # in both the GN and GYP builds, and ideally it should match the
55 # "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line.
57 # TODO(GYP): Add build steps that check and enforce this on the bots.
58 group("both_gn_and_gyp") {
59   testonly = true
61   deps = [
62     "//base:base_unittests",
63     "//cc:cc_unittests",
64     "//chrome",
65     "//chrome/test:browser_tests",
66     "//chrome/test:interactive_ui_tests",
67     "//chrome/test:sync_integration_tests",
68     "//chrome/test:unit_tests",
69     "//chrome/test/chromedriver:chromedriver_unittests",
70     "//components:components_browsertests",
71     "//components:components_unittests",
72     "//content/shell:content_shell",
73     "//content/test:content_browsertests",
74     "//content/test:content_perftests",
75     "//content/test:content_unittests",
76     "//crypto:crypto_unittests",
77     "//device:device_unittests",
78     "//extensions:extensions_browsertests",
79     "//extensions:extensions_unittests",
80     "//google_apis/gcm:gcm_unit_tests",
81     "//gpu:gpu_unittests",
82     "//ipc:ipc_tests",
83     "//ipc/mojo:ipc_mojo_unittests",
84     "//jingle:jingle_unittests",
85     "//media:media_unittests",
86     "//media/cast:cast_unittests",
87     "//media/midi:midi_unittests",
88     "//mojo",
89     "//mojo/application",
90     "//mojo/common:mojo_common_unittests",
91     "//net:hpack_example_generator",
92     "//net:hpack_fuzz_mutator",
93     "//net:hpack_fuzz_wrapper",
94     "//net:net_perftests",
95     "//net:net_unittests",
96     "//ppapi:ppapi_unittests",
97     "//ppapi/examples/2d",
98     "//ppapi/examples/audio",
99     "//ppapi/examples/audio_input",
100     "//ppapi/examples/compositor",
101     "//ppapi/examples/crxfs",
102     "//ppapi/examples/enumerate_devices",
103     "//ppapi/examples/file_chooser",
104     "//ppapi/examples/flash_topmost",
105     "//ppapi/examples/font",
106     "//ppapi/examples/gamepad",
107     "//ppapi/examples/gles2",
108     "//ppapi/examples/gles2_spinning_cube",
109     "//ppapi/examples/ime",
110     "//ppapi/examples/input",
111     "//ppapi/examples/media_stream_audio",
112     "//ppapi/examples/media_stream_video",
113     "//ppapi/examples/mouse_cursor",
114     "//ppapi/examples/mouse_lock",
115     "//ppapi/examples/printing",
116     "//ppapi/examples/scaling",
117     "//ppapi/examples/scripting",
118     "//ppapi/examples/stub",
119     "//ppapi/examples/threading",
120     "//ppapi/examples/url_loader",
121     "//ppapi/examples/video_capture",
122     "//ppapi/examples/video_decode",
123     "//ppapi/examples/video_effects",
124     "//ppapi/examples/video_encode",
125     "//printing:printing_unittests",
126     "//skia:skia_unittests",
127     "//sql:sql_unittests",
128     "//sync:sync_unit_tests",
129     "//third_party/WebKit/public:blink_tests",
130     "//third_party/cacheinvalidation:cacheinvalidation_unittests",
131     "//third_party/codesighs",
132     "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",
133     "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",
134     "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",
135     "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",
136     "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
137     "//third_party/pdfium/samples:pdfium_test",
138     "//third_party/smhasher:pmurhash",
139     "//tools/imagediff($host_toolchain)",
140     "//tools/gn",
141     "//tools/gn:gn_unittests",
142     "//tools/gn:generate_test_gn_data",
143     "//tools/telemetry:bitmaptools($host_toolchain)",
144     "//ui/accessibility:accessibility_unittests",
145     "//ui/app_list:app_list_unittests",
146     "//ui/base:ui_base_unittests",
147     "//ui/display:display_unittests",
148     "//ui/events:events_unittests",
149     "//ui/gfx:gfx_unittests",
150     "//ui/touch_selection:ui_touch_selection_unittests",
151     "//url:url_unittests",
152   ]
154   deps += root_extra_deps
156   if (enable_extensions && !is_mac) {
157     # TODO(GYP): Get this working on the mac?
158     deps += [ "//extensions/shell:app_shell_unittests" ]
159   }
161   if (enable_media_router) {
162     deps += [
163       "//chrome/browser/media/router/",
164       "//chrome/browser/media/router:unit_tests",
165     ]
166   }
168   if (enable_remoting) {
169     deps += [ "//remoting:remoting_all" ]
170   }
172   if (toolkit_views) {
173     deps += [ "//ui/views:views_unittests" ]
174   }
176   if (use_aura) {
177     deps += [ "//ui/wm:wm_unittests" ]
178   }
180   if (use_ozone) {
181     deps += [ "//ui/ozone" ]
182   }
184   if (use_x11) {
185     deps += [ "//tools/xdisplaycheck" ]
186   }
188   if (enable_configuration_policy) {
189     deps += [ "//components/policy:policy_templates" ]
190   }
192   if (v8_use_external_startup_data) {
193     deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
194   }
196   if (is_android) {
197     deps += [
198       "//base/android/linker:chromium_android_linker",
199       "//build/android/gyp/test:hello_world",
200       "//build/android/rezip",
201       "//chrome/android:chrome_shell_apk",
202       "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
203       "//tools/imagediff($host_toolchain)",
205       # TODO(GYP): Remove these when the components_unittests work.
206       "//components/history/core/test:test",
207       "//components/policy:policy_component_test_support",
208       "//components/policy:test_support",
209       "//components/rappor:test_support",
210       "//components/signin/core/browser:test_support",
211       "//components/sync_driver:test_support",
212       "//components/user_manager",
213       "//components/wallpaper",
214       "//content/shell/android:content_shell_apk",
216       # TODO(GYP): Are these needed, or will they be pulled in automatically?
217       "//third_party/android_tools:android_gcm_java",
218       "//third_party/android_tools:uiautomator_java",
219       "//third_party/android_tools:android_support_v13_java",
220       "//third_party/android_tools:android_support_v7_appcompat_java",
221       "//third_party/android_tools:android_support_v7_mediarouter_java",
222       "//third_party/mesa",
223       "//third_party/mockito:mockito_java",
224       "//third_party/openmax_dl/dl",
225       "//third_party/speex",
226       "//ui/android:ui_java",
228       # TODO(GYP): Are these needed?
229       "//chrome/test:test_support_unit",
230       "//third_party/smhasher:murmurhash3",
231       "//ui/message_center:test_support",
232     ]
233     deps -= [
234       "//chrome",  # TODO(GYP) ??
235       "//chrome/test:browser_tests",  # TODO(GYP) ??
236       "//chrome/test:interactive_ui_tests",  # TODO(GYP) ??
237       "//chrome/test:sync_integration_tests",  # TODO(GYP) ??
238       "//chrome/test:unit_tests",  # TODO(GYP)
240       # Chromedriver shouldn't be compiled on Android.
241       "//chrome/test/chromedriver:chromedriver_unittests",
242       "//extensions:extensions_browsertests",
243       "//extensions:extensions_unittests",
244       "//google_apis/gcm:gcm_unit_tests",
245       "//ipc:ipc_tests",  # TODO(GYP) ??
246       "//jingle:jingle_unittests",  # TODO(GYP) ??
247       "//net:hpack_example_generator",
248       "//net:hpack_fuzz_mutator",
249       "//net:hpack_fuzz_wrapper",
250       "//net:net_perftests",
251       "//net:net_unittests",
252       "//ppapi/examples/2d",
253       "//ppapi/examples/audio",
254       "//ppapi/examples/audio_input",
255       "//ppapi/examples/compositor",
256       "//ppapi/examples/crxfs",
257       "//ppapi/examples/enumerate_devices",
258       "//ppapi/examples/file_chooser",
259       "//ppapi/examples/flash_topmost",
260       "//ppapi/examples/font",
261       "//ppapi/examples/gamepad",
262       "//ppapi/examples/gles2",
263       "//ppapi/examples/gles2_spinning_cube",
264       "//ppapi/examples/ime",
265       "//ppapi/examples/input",
266       "//ppapi/examples/media_stream_audio",
267       "//ppapi/examples/media_stream_video",
268       "//ppapi/examples/mouse_cursor",
269       "//ppapi/examples/mouse_lock",
270       "//ppapi/examples/printing",
271       "//ppapi/examples/scaling",
272       "//ppapi/examples/scripting",
273       "//ppapi/examples/stub",
274       "//ppapi/examples/threading",
275       "//ppapi/examples/url_loader",
276       "//ppapi/examples/video_capture",
277       "//ppapi/examples/video_decode",
278       "//ppapi/examples/video_effects",
279       "//ppapi/examples/video_encode",
280       "//third_party/pdfium/samples:pdfium_test",
281       "//tools/gn",
282       "//tools/gn:generate_test_gn_data",
283       "//tools/gn:gn_unittests",
284       "//ui/app_list:app_list_unittests",
285       "//url:url_unittests",
286     ]
288     if (has_chrome_android_internal) {
289       deps += [ "//clank" ]  # TODO(GYP) ??
290     }
291   }
293   if (is_linux) {  # TODO(GYP): || is_android || is_bsd?
294     deps += [
295       "//breakpad:core-2-minidump",
296       "//breakpad:minidump-2-core",
297     ]
298   }
300   if (is_chromeos) {
301     deps += [
302       "//chromeos:chromeos_unittests",
303       "//ui/chromeos:ui_chromeos_unittests",
304     ]
305   }
307   if (is_chromeos || is_mac || is_win) {
308     deps += [
309       "//rlz:rlz_id",
310       "//rlz:rlz_lib",
311       "//rlz:rlz_unittests",
312     ]
313   }
315   if (is_linux) {
316     # The following are definitely linux-only.
317     deps += [
318       "//breakpad:breakpad_unittests",
319       "//breakpad:generate_test_dump",
320       "//dbus:dbus_test_server",
321       "//dbus:dbus_unittests",
322       "//net:disk_cache_memory_test",
323       "//net:flip_in_mem_edsm_server",
324       "//net:flip_in_mem_edsm_server_unittests",
325       "//net:quic_client",
326       "//net:quic_server",
327       "//sandbox/linux:chrome_sandbox",
328       "//sandbox/linux:sandbox_linux_unittests",
329       "//sandbox/linux:sandbox_linux_jni_unittests",
330     ]
332     if (is_chromeos || use_ash) {
333       deps += [ "//components/session_manager/core" ]
334     }
335   }
337   if (is_win || (is_linux && !is_chromeos)) {
338     # TODO(GYP): Figure out which of these should (and can) build
339     # for android/chromeos/mac/ios.
340     deps += [
341       "//base:base_perftests",
342       "//base:base_i18n_perftests",
343       "//base:check_example",
344       "//base:build_utf8_validator_tables",
345       "//cc:cc_perftests",
346       "//cc/blink:cc_blink_unittests",
347       "//chrome/test:load_library_perf_tests",
348       "//chrome/test:performance_browser_tests",
349       "//chrome/test:sync_performance_tests",
350       "//chrome/test/chromedriver:chromedriver",
351       "//chrome/test/chromedriver:chromedriver_tests",
352       "//chrome/tools/profile_reset:jtl_compiler",
353       "//components:components_perftests",
354       "//content/test:content_gl_tests",
355       "//content/test:content_gl_benchmark",
356       "//courgette:courgette",
357       "//courgette:courgette_fuzz",
358       "//courgette:courgette_minimal_tool",
359       "//courgette:courgette_unittests",
360       "//device:device_unittests",
361       "//gin:gin_shell",
362       "//gin:gin_unittests",
363       "//google_apis:google_apis_unittests",
364       "//google_apis/gcm:mcs_probe",
365       "//gpu:angle_unittests",
366       "//gpu:gpu_perftests",
367       "//gpu:gl_tests",
368       "//ipc:ipc_perftests",
369       "//media:ffmpeg_regression_tests",  # TODO(GYP) this should be conditional on media_use_ffmpeg
370       "//media:media_perftests",
371       "//media/cast:generate_barcode_video",
372       "//media/cast:generate_timecode_audio",
373       "//net:crash_cache",
374       "//net:crl_set_dump",
375       "//net:dns_fuzz_stub",
376       "//net:dump_cache",
377       "//net:gdig",
378       "//net:get_server_time",
379       "//net:net_watcher",  # TODO(GYP): This should be conditional on use_v8_in_net
380       "//net:run_testserver",
381       "//net:stress_cache",
382       "//net:tld_cleanup",
383       "//ppapi:pepper_hash_for_uma",
384       "//ppapi:ppapi_perftests",
385       "//sync:run_sync_testserver",
386       "//sync:sync_endtoend_tests",
387       "//third_party/codesighs:maptsvdifftool",
388       "//third_party/leveldatabase:env_chromium_unittests",
389       "//third_party/libaddressinput:libaddressinput_unittests",
390       "//third_party/libphonenumber:libphonenumber_unittests",
391       "//ui/compositor:compositor_unittests",
392     ]
394     if (enable_extensions) {
395       deps += [ "//extensions/shell:app_shell" ]
396     }
398     if (enable_nacl) {
399       deps += [ "//components/nacl:nacl_loader_unittests" ]
400     }
402     if (enable_nacl && enable_remoting) {
403       deps += [ "//remoting:remoting_key_tester" ]
404     }
406     if (use_ash) {
407       deps += [
408         "//ash:ash_shell",
409         "//ash:ash_shell_unittests",
410         "//ash:ash_unittests",
411       ]
412     }
414     if (use_aura) {
415       deps += [
416         "//ui/aura:aura_unittests",
417         "//ui/aura:bench",
418         "//ui/aura:demo",
419       ]
420     }
421   }
423   if (is_linux && !is_chromeos) {
424     deps += [
425       # TODO(GYP): Figure out which of these should (and can) build
426       # under which other conditions.
427       "//build/sanitizers:copy_llvm_symbolizer",
428       "//chrome/test:chrome_app_unittests",
429       "//cloud_print:cloud_print_unittests",
430       "//components/network_hints/browser",
431       "//components/webui_generator",
432       "//content/public/app:browser",
433       "//content/public/app:child",
435       # TODO(GYP): Remove this when the gles2 tests work
436       "//gpu/command_buffer/client:gles2_implementation_no_check",
438       "//gpu/khronos_glcts_support:khronos_glcts_test",  # TODO(GYP) crbug.com/471903 to make this complete.
439       "//media/cast:cast_benchmarks",
440       "//media/cast:tap_proxy",
441       "//mojo/application",
442       "//skia:filter_fuzz_stub",
443       "//skia:image_operations_bench",
444       "//sync/tools:sync_client",
445       "//sync/tools:sync_listen_notifications",
446       "//testing/gmock:gmock_main",
447       "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests",
448       "//tools/perf/clear_system_cache",
449       "//ui/keyboard:keyboard_unittests",
450       "//ui/message_center:message_center_unittests",
451       "//ui/snapshot:snapshot_unittests",
452       "//ui/views/examples:views_examples_with_content_exe",
454       # "//v8:v8_snapshot",  # TODO(GYP): visibility?
455       # "//v8:postmortem-metadata",  # TODO(GYP): visibility?
457       "//third_party/codesighs:nm2tsv",
458       "//third_party/sqlite:sqlite_shell",
459     ]
461     if (current_toolchain == host_toolchain) {
462       # Do not build the breakpad utilities in cross-compiles.
463       deps += [
464         "//breakpad:dump_syms",
465         "//breakpad:microdump_stackwalk",
466         "//breakpad:minidump_dump",
467         "//breakpad:minidump_stackwalk",
468       ]
469     }
471     if (!is_debug && !is_component_build) {
472       deps += [ "//chrome/tools/service_discovery_sniffer" ]
473     }
475     if (toolkit_views) {
476       deps += [ "//ui/app_list:app_list_demo" ]
477     }
479     if (use_x11) {
480       if (target_cpu != "arm") {
481         deps += [ "//gpu/tools/compositor_model_bench" ]
482       }
483     }
484   }
486   if (is_mac) {
487     deps += [
488       "//breakpad:crash_inspector",
489       "//breakpad:dump_syms",
490       "//third_party/apple_sample_code",
491       "//third_party/molokocacao",
492     ]
494     # TODO(GYP): Remove these when the targets below work and these
495     # are pulled in automatically.
496     deps += [
497       "//cc/blink",
498       "//components/ui/zoom:ui_zoom",
499       "//content",
500       "//content/test:test_support",
501       "//device/battery",
502       "//device/bluetooth",
503       "//device/nfc",
504       "//device/usb",
505       "//device/vibration",
506       "//media/blink",
507       "//pdf",
508       "//storage/browser",
509       "//third_party/brotli",
510       "//third_party/flac",
511       "//third_party/hunspell",
512       "//third_party/iccjpeg",
513       "//third_party/libphonenumber",
514       "//third_party/ots",
515       "//third_party/qcms",
516       "//third_party/smhasher:murmurhash3",
517       "//third_party/speex",
518       "//third_party/webrtc/system_wrappers",
519       "//ui/native_theme",
520       "//ui/snapshot",
521       "//ui/surface",
522     ]
524     # TODO(dpranke): These are as-yet untriaged but need at least the above.
525     deps -= [
526       "//chrome",  # TODO(GYP)
527       "//chrome/test:browser_tests",  # TODO(GYP)
528       "//chrome/test:interactive_ui_tests",  # TODO(GYP)
529       "//chrome/test:sync_integration_tests",  # TODO(GYP)
530       "//chrome/test:unit_tests",  # TODO(GYP)
531       "//components:components_browsertests",  # TODO(GYP)
532       "//components:components_unittests",  # TODO(GYP)
533       "//content/test:content_browsertests",  # TODO(GYP)
534       "//content/test:content_perftests",  # TODO(GYP)
535       "//content/test:content_unittests",  # TODO(GYP)
536       "//extensions:extensions_browsertests",  # TODO(GYP)
537       "//extensions:extensions_unittests",  # TODO(GYP)
538       "//net:net_unittests",  # TODO(GYP)
539       "//ui/app_list:app_list_unittests",  # TODO(GYP)
540       "//ui/gfx:gfx_unittests",  # TODO(GYP)
541     ]
542   }
544   if (is_win) {
545     deps += [
546       "//base:pe_image_test",
547       "//chrome_elf:chrome_elf_unittests",
548       "//chrome_elf:dll_hash_main",
549       "//components/crash/tools:crash_service",
550       "//components/wifi:wifi_test",
551       "//net:quic_client",
552       "//net:quic_server",
553       "//sandbox/win:pocdll",
554       "//sandbox/win:sandbox_poc",
555       "//sandbox/win:sbox_integration_tests",
556       "//sandbox/win:sbox_unittests",
557       "//sandbox/win:sbox_validation_tests",
558       "//testing/gtest:gtest_main",
559       "//third_party/codesighs:msmap2tsv",
560       "//third_party/pdfium/samples:pdfium_diff",
561       "//ui/metro_viewer",
562     ]
563     deps -= [
564       "//crypto:crypto_unittests",  # TODO(GYP)
565       "//net:net_unittests",  # TODO(GYP)
566     ]
567   } else if (!is_android) {
568     deps += [ "//breakpad:symupload" ]
569   }
572 group("gn_only") {
573   testonly = true
575   deps = [
576     "//mandoline:mandoline_all",
577   ]
579   if (!is_android && !is_ios) {
580     deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
581   }
583   if (is_linux && !is_chromeos) {
584     # TODO(GYP): Figure out if any of these should be in gn_all
585     # and figure out how cross-platform they are
586     deps += [
587       ":gn_mojo_targets",
588       "//chrome/browser/resources:extension_resource_demo",
589       "//chrome/installer/util:strings",
590       "//chrome:main_dll",
591       "//chrome/test:load_library_perf_tests",
592       "//chrome/tools/convert_dict",
593       "//components/constrained_window:unit_tests",
594       "//components/enhanced_bookmarks:test_support",
595       "//components/metrics:serialization",
596       "//components/password_manager/content/renderer:browser_tests",
597       "//components/rappor:unit_tests",
598       "//components/sessions:unit_tests",
599       "//media/blink:media_blink_unittests",
600       "//media/cast:udp_proxy",
601       "//native_client/src/trusted/platform_qualify:vcpuid",
602       "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
603       "//storage/browser:dump_file_system",
604       "//third_party/angle:libANGLE",
605       "//third_party/angle:libEGL",
606       "//third_party/angle:libGLESv2",
607       "//third_party/cld_2:cld_2_dynamic_data_tool",
608       "//third_party/leveldatabase:leveldb_arena_test",
609       "//third_party/leveldatabase:leveldb_bloom_test",
610       "//third_party/leveldatabase:leveldb_db_test",
611       "//third_party/leveldatabase:leveldb_crc32c_test",
612       "//third_party/leveldatabase:leveldb_cache_test",
613       "//third_party/leveldatabase:leveldb_env_test",
614       "//third_party/leveldatabase:leveldb_write_batch_test",
615       "//third_party/leveldatabase:leveldb_filter_block_test",
616       "//third_party/leveldatabase:leveldb_version_edit_test",
617       "//third_party/leveldatabase:leveldb_db_bench",
618       "//third_party/leveldatabase:leveldb_log_test",
619       "//third_party/leveldatabase:leveldb_corruption_test",
620       "//third_party/leveldatabase:leveldb_table_test",
621       "//third_party/leveldatabase:leveldb_skiplist_test",
622       "//third_party/leveldatabase:leveldb_filename_test",
623       "//third_party/leveldatabase:leveldb_dbformat_test",
624       "//third_party/pdfium/third_party:freetype",
625       "//third_party/libjingle:peerconnnection_server",
626       "//third_party/libjpeg_turbo:simd",
627       "//third_party/libsrtp:replay_driver",
628       "//third_party/libsrtp:roc_driver",
629       "//third_party/libsrtp:rtpw",
630       "//third_party/libsrtp:rdbx_driver",
631       "//third_party/libsrtp:srtp_driver",
632       "//third_party/libsrtp:srtp_driver",
633       "//third_party/libsrtp:srtp_test_kernel_driver",
634       "//third_party/libsrtp:srtp_test_cipher_driver",
635       "//third_party/libsrtp:srtp_test_datatypes_driver",
636       "//third_party/libsrtp:srtp_test_aes_calc",
637       "//third_party/libsrtp:srtp_test_env",
638       "//third_party/libsrtp:srtp_test_rand_gen",
639       "//third_party/libsrtp:srtp_test_sha1_driver",
640       "//third_party/libsrtp:srtp_test_stat_driver",
641       "//third_party/opus:opus_compare",
642       "//third_party/opus:opus_demo",
643       "//third_party/opus:test_opus_decode",
644       "//third_party/opus:test_opus_encode",
645       "//third_party/opus:test_opus_api",
646       "//third_party/opus:test_opus_padding",
647       "//third_party/webrtc/system_wrappers:field_trial_default",
648       "//third_party/webrtc/system_wrappers:metrics_default",
649       "//ui/display/types",
650       "//ui/shell_dialogs:shell_dialogs_unittests",
651       "//ui/views/examples:views_examples_exe",
652     ]
653     if (target_cpu == "x86" || target_cpu == "x64") {
654       deps += [ "//third_party/libjpeg_turbo:simd_asm" ]
655     }
656     if (enable_nacl) {
657       deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ]
658     }
659     if (use_ozone) {
660       deps += [ "//ui/ozone/demo" ]
661     }
662     if (is_android) {
663       deps += [ "//build/android/gyp/test:hello_world" ]
664     }
666     if (is_linux && current_toolchain == host_toolchain) {
667       deps += [ "//v8:d8" ]
668     }
669   }
672 group("gn_mojo_targets") {
673   testonly = true
674   if (is_linux && !is_chromeos) {
675     # TODO(GYP): Figure out if any of these should be in gn_all
676     # and figure out how cross-platform they are
677     deps = [
678       "//chrome/browser/ui/webui/omnibox:mojo_bindings_python",
679       "//components/window_manager/public/interfaces:interfaces_python",
680       "//content/public/common:mojo_bindings_python",
681       "//content/common:mojo_bindings_python",
682       "//content/test:web_ui_test_mojo_bindings_python",
683       "//device/battery:mojo_bindings_python",
684       "//device/vibration:mojo_bindings_python",
685       "//ipc/mojo:ipc_mojo_perftests",
686       "//ipc/mojo:client_channel_python",
687       "//media/mojo/interfaces:interfaces_python",
688       "//media/mojo/services:cdm_service",
689       "//media/mojo:tests",
690       "//mojo/services:apptests",
691       "//mojo/services:tests",
692       "//net/interfaces:interfaces_python",
693       "//third_party/mojo/src/mojo/edk/js/test:js_integration_tests",
694       "//third_party/mojo/src/mojo/edk/js/tests:js_to_cpp_bindings_python",
695       "//third_party/mojo/src/mojo/public/python:packaged_application",
696       "//third_party/mojo/src/mojo/public/python:packaged_bindings",
697       "//third_party/mojo/src/mojo/public/cpp/application:test_support_standalone",
698       "//third_party/mojo_services/src/accessibility/public/interfaces:interfaces_python",
699     ]
700   }
703 group("gn_visibility") {
704   deps = [
705     # "//build/config/sanitizers:options_sources",
706     # "//third_party/pdfium:pdfium_embeddertests",  # TODO(GYP): visibility?
707     # "//third_party/pdfium:pdfium_unittests",  # TODO(GYP): visibility?
708     # "//ui/resources:repack_ui_test_mac_locale_pack",
709     # "//v8:v8_snapshot",  # TODO(GYP): visibility?
710     # "//v8:postmortem-metadata",  # TODO(GYP): visibility?
711   ]
714 if (is_linux) {
715   # This group corresponds to the list of tests run on the waterfall for
716   # desktop Linux GYP builds from testing/buildbot/chromium.linux.json. It's
717   # here to help track GYP -> GN conversion progress.
718   group("linux_default_tests") {
719     testonly = true
720     deps = [
721       "//base:base_unittests",  # PASSES (*) 2/25/2015
722       "//cc:cc_unittests",  # PASSES 2/25/2015
723       "//chrome/test:browser_tests",
724       "//chrome/test:interactive_ui_tests",
725       "//chrome/test:sync_integration_tests",  # Crashes for brettw in GN and GYP.
726       "//chrome/test:unit_tests",  # PASSES 2/25/2015
727       "//chrome/test/chromedriver:chromedriver_unittests",  # PASSES 2/25/2015
728       "//components:components_browsertests",  # PASSES 4/17/2015
729       "//components:components_unittests",  # PASSES 2/27/2015
730       "//content/test:content_browsertests",
731       "//content/test:content_unittests",  # PASSES 2/25/2015
732       "//crypto:crypto_unittests",  # PASSES 2/25/2015
733       "//dbus:dbus_unittests",  # PASSES 2/25/2015
734       "//device:device_unittests",  # PASSES 3/07/2015
735       "//extensions:extensions_browsertests",  # PASSES 2/25/2015
736       "//extensions:extensions_unittests",  # PASSES 2/25/2015
737       "//extensions/shell:app_shell_unittests",  # PASSES 2/25/2015
738       "//google_apis/gcm:gcm_unit_tests",  # PASSES 2/25/2015
739       "//google_apis:google_apis_unittests",  # PASSES 2/25/2015
740       "//gpu:gpu_unittests",  # PASSES 2/25/2015
741       "//ipc:ipc_tests",  # PASSES 2/25/2015
742       "//ipc/mojo:ipc_mojo_unittests",  # PASSES 2/25/2015
743       "//jingle:jingle_unittests",  # PASSES 2/25/2015
744       "//media:media_unittests",  # PASSES 3/3/2015
745       "//media/cast:cast_unittests",  # PASSES 2/25/2015
746       "//media/midi:midi_unittests",  # PASSES 4/10/2015
747       "//mojo/common:mojo_common_unittests",  # PASSES 2/25/2015
748       "//net:net_unittests",  # PASSES 2/25/2015
749       "//ppapi:ppapi_unittests",  # PASSES 2/26/2015
750       "//printing:printing_unittests",  # PASSES 2/25/2015
751       "//remoting:remoting_unittests",  # PASSES 4/17/2015
752       "//sandbox/linux:sandbox_linux_unittests",  # PASSES 2/25/2015
753       "//skia:skia_unittests",  # PASSES 2/25/2015
754       "//sql:sql_unittests",  # PASSES 2/25/2015
755       "//sync:sync_unit_tests",  # PASSES 2/25/2015
756       "//third_party/cacheinvalidation:cacheinvalidation_unittests",  # PASSES 2/25/2015
757       "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",  # PASSES 2/25/2015
758       "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",  # PASSES 2/25/2015
759       "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",  # PASSES 2/25/2015
760       "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",  # PASSES 2/25/2015
761       "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
762       "//ui/accessibility:accessibility_unittests",  # PASSES 2/25/2015
763       "//ui/app_list:app_list_unittests",  # PASSES 2/25/2015
764       "//ui/aura:aura_unittests",  # PASSES 2/25/2015
765       "//ui/base:ui_base_unittests",  # PASSES 4/17/2015
766       "//ui/compositor:compositor_unittests",  # PASSES 2/25/2015
767       "//ui/display:display_unittests",  # PASSES 2/25/2015
768       "//ui/events:events_unittests",  # PASSES 2/25/2015
769       "//ui/gfx:gfx_unittests",  # PASSES 2/25/2015
770       "//ui/touch_selection:ui_touch_selection_unittests",  # PASSES 2/25/2015
771       "//ui/views:views_unittests",  # PASSES (*) 2/25/2015
772       "//ui/wm:wm_unittests",  # PASSES 2/25/2015
773       "//url:url_unittests",  # PASSES 2/25/2015
775       # Note:
776       # (*) Fails but failures match GYP build at time of testing.
777     ]
779     if (enable_nacl) {
780       deps += [ "//components/nacl:nacl_loader_unittests" ]  # PASSES 3/28/2015
781     }
782   }
783 } else if (is_win) {
784   group("windows_default_tests") {
785     testonly = true
786     deps = [
787       "//ash:ash_unittests",  # FAILS 4/20/2015
788       "//base:base_unittests",  # PASSES 4/20/2015
789       "//cc:cc_unittests",  # PASSES 4/17/2015
790       "//chrome_elf:chrome_elf_unittests",  # FAILS 4/20/2015
791       "//chrome/app_installer:app_installer_unittests",
792       "//chrome/test:browser_tests",
793       "//chrome/test:interactive_ui_tests",
794       "//chrome/test:sync_integration_tests",  # Note: need to turn off incremental linking for debug.
795       "//chrome/test:unit_tests",
796       "//chrome/test/chromedriver:chromedriver_unittests",  # PASSES 4/20/2015
797       "//components:components_browsertests",
798       "//components:components_unittests",  # PASSES 4/17/2015
799       "//courgette:courgette_unittests",  # PASSES 4/20/2015
800       "//content/test:content_browsertests",
801       "//content/test:content_unittests",  # PASSES 4/17/2015
802       "//crypto:crypto_unittests",  # PASSES 4/17/2015
803       "//device:device_unittests",  # PASSES 4/17/2015
804       "//extensions:extensions_browsertests",  # PASSES 4/17/2015
805       "//extensions:extensions_unittests",  # PASSES 4/17/2015
806       "//extensions/shell:app_shell_unittests",  # Doesn't compile in 64-bit
807       "//google_apis/gcm:gcm_unit_tests",  # PASSES 4/17/2015
808       "//google_apis:google_apis_unittests",  # PASSES 4/17/2015
809       "//gpu:gpu_unittests",  # PASSES 4/17/2015
810       "//ipc:ipc_tests",  # PASSES 4/17/2015
811       "//ipc/mojo:ipc_mojo_unittests",  # PASSES 4/17/2015
812       "//jingle:jingle_unittests",  # PASSES 4/17/2015
813       "//media/cast:cast_unittests",  # PASSES 4/17/2015
814       "//media:media_unittests",  # PASSES 4/17/2015
815       "//mojo/common:mojo_common_unittests",  # PASSES 4/17/2015
816       "//net:net_unittests",  # PASSES 4/17/2015
817       "//ppapi:ppapi_unittests",  # PASSES 4/17/2015
818       "//printing:printing_unittests",  # PASSES 4/17/2015
819       "//remoting:remoting_unittests",  # PASSES 4/17/2015
820       "//sandbox/win:sbox_integration_tests",  # PASSES 4/20/2015
821       "//sandbox/win:sbox_unittests",  # PASSES 4/20/2015
822       "//sandbox/win:sbox_validation_tests",  # PASSES 4/20/2015
823       "//skia:skia_unittests",  # PASSES 4/17/2015
824       "//sql:sql_unittests",  # PASSES 4/17/2015
825       "//sync:sync_unit_tests",  # PASSES 4/20/2015
826       "//third_party/cacheinvalidation:cacheinvalidation_unittests",  # PASSES 4/20/2015
827       "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",  # Seems to hang?
828       "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",  # FAILS
829       "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",  # PASSES 4/20/2015
830       "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",  # PASSES 4/20/2015
831       "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",  # PASSES 4/20/2015
832       "//ui/accessibility:accessibility_unittests",  # PASSES 4/20/2015
833       "//ui/app_list:app_list_unittests",  # PASSES 4/20/2015
834       "//ui/aura:aura_unittests",  # PASSES 4/17/2015
835       "//ui/base:ui_base_unittests",  # PASSES 4/20/2015
836       "//ui/compositor:compositor_unittests",  # PASSES 4/20/2015
837       "//ui/display:display_unittests",  # PASSES 4/20/2015
838       "//ui/events:events_unittests",  # PASSES 4/20/2015
839       "//ui/gfx:gfx_unittests",  # PASSES (with assertion failure?) 4/20/2015
840       "//ui/message_center:message_center_unittests",  # PASSES 4/20/2015
841       "//ui/touch_selection:ui_touch_selection_unittests",  # PASSES 4/20/2015
842       "//ui/views:views_unittests",  # TooltipControllerTest failures
843       "//ui/wm:wm_unittests",  # PASSES 4/21/2015
844       "//url:url_unittests",  # PASSES 4/17/2015
846       # TODO(GYP) installer_util_unittests
847       # TODO(GYP) app_installer_unittests
848       # TODO(GYP) nacl_integration
849       # TODO(GYP) telemetry_perf_unittests
850       # TODO(GYP) telemetry_unittests
851     ]
852   }