Revert of Add browser test for RestoreOnStartup[URLs] on Chrome OS (patchset #1 id...
[chromium-blink-merge.git] / BUILD.gn
blob9454d2d0de6ac24ea44ea0e314ea193370e7381d
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 # The "gn_all" target should list every root target (target that
28 # nothing else depends on) built by both GN and GYP. One should
29 # be able to run 'ninja gn_all gn_only gn_groups' and then run
30 # 'ninja' a second time and have the second ninja invocation do nothing.
32 # In addition, the "gn_all" target serves to pull in all of the other
33 # build files needed for the build.
35 # TODO(GYP): make sure that the above is true and there are scripts run
36 # on the bots that enforce this.
38 group("gn_all") {
39   testonly = true
41   deps = [
42     "//base:base_unittests",
43     "//cc:cc_unittests",
44     "//chrome",
45     "//chrome/test:browser_tests",
46     "//chrome/test:interactive_ui_tests",
47     "//chrome/test:sync_integration_tests",
48     "//chrome/test:unit_tests",
49     "//chrome/test/chromedriver:chromedriver_unittests",
50     "//components:components_browsertests",
51     "//components:components_unittests",
52     "//content/shell:content_shell",
53     "//content/test:content_browsertests",
54     "//content/test:content_perftests",
55     "//content/test:content_unittests",
56     "//crypto:crypto_unittests",
57     "//device:device_unittests",
58     "//extensions:extensions_browsertests",
59     "//extensions:extensions_unittests",
60     "//google_apis/gcm:gcm_unit_tests",
61     "//gpu:gpu_unittests",
62     "//ipc:ipc_tests",
63     "//ipc/mojo:ipc_mojo_unittests",
64     "//jingle:jingle_unittests",
65     "//mandoline:mandoline_all",
66     "//media:media_unittests",
67     "//media/cast:cast_unittests",
68     "//media/midi:midi_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_media_router) {
143     deps += [
144       "//chrome/browser/media/router/",
145       "//chrome/browser/media/router:unit_tests",
146     ]
147   }
149   if (enable_remoting) {
150     deps += [ "//remoting:remoting_all" ]
151   }
153   if (toolkit_views) {
154     deps += [ "//ui/views:views_unittests" ]
155   }
157   if (use_aura) {
158     deps += [ "//ui/wm:wm_unittests" ]
159   }
161   if (use_ozone) {
162     deps += [ "//ui/ozone" ]
163   }
165   if (use_x11) {
166     deps += [ "//tools/xdisplaycheck" ]
167   }
169   if (enable_configuration_policy) {
170     deps += [ "//components/policy:policy_templates" ]
171   }
173   if (v8_use_external_startup_data) {
174     deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
175   }
177   if (is_android) {
178     deps += [
179       "//base/android/linker:chromium_android_linker",
180       "//build/android/gyp/test:hello_world",
181       "//build/android/rezip",
182       "//chrome/android:chrome_shell_apk",
183       "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
184       "//tools/imagediff($host_toolchain)",
186       # TODO(GYP): Remove these when the components_unittests work.
187       "//components/history/core/test:test",
188       "//components/policy:policy_component_test_support",
189       "//components/policy:test_support",
190       "//components/rappor:test_support",
191       "//components/signin/core/browser:test_support",
192       "//components/sync_driver:test_support",
193       "//components/user_manager",
194       "//components/wallpaper",
195       "//content/shell/android:content_shell_apk",
197       # TODO(GYP): Are these needed, or will they be pulled in automatically?
198       "//third_party/android_tools:android_gcm_java",
199       "//third_party/android_tools:uiautomator_java",
200       "//third_party/android_tools:android_support_v13_java",
201       "//third_party/android_tools:android_support_v7_appcompat_java",
202       "//third_party/android_tools:android_support_v7_mediarouter_java",
203       "//third_party/mesa",
204       "//third_party/mockito:mockito_java",
205       "//third_party/openmax_dl/dl",
206       "//third_party/speex",
207       "//ui/android:ui_java",
209       # TODO(GYP): Are these needed?
210       "//chrome/test:test_support_unit",
211       "//third_party/smhasher:murmurhash3",
212       "//ui/message_center:test_support",
213     ]
214     deps -= [
215       "//chrome",  # TODO(GYP) ??
216       "//chrome/test:browser_tests",  # TODO(GYP) ??
217       "//chrome/test:interactive_ui_tests",  # TODO(GYP) ??
218       "//chrome/test:sync_integration_tests",  # TODO(GYP) ??
219       "//chrome/test:unit_tests",  # TODO(GYP)
221       # Chromedriver shouldn't be compiled on Android.
222       "//chrome/test/chromedriver:chromedriver_unittests",
223       "//extensions:extensions_browsertests",
224       "//extensions:extensions_unittests",
225       "//google_apis/gcm:gcm_unit_tests",
226       "//ipc:ipc_tests",  # TODO(GYP) ??
227       "//jingle:jingle_unittests",  # TODO(GYP) ??
228       "//net:hpack_example_generator",
229       "//net:hpack_fuzz_mutator",
230       "//net:hpack_fuzz_wrapper",
231       "//net:net_perftests",
232       "//net:net_unittests",
233       "//ppapi/examples/2d",
234       "//ppapi/examples/audio",
235       "//ppapi/examples/audio_input",
236       "//ppapi/examples/compositor",
237       "//ppapi/examples/crxfs",
238       "//ppapi/examples/enumerate_devices",
239       "//ppapi/examples/file_chooser",
240       "//ppapi/examples/flash_topmost",
241       "//ppapi/examples/font",
242       "//ppapi/examples/gamepad",
243       "//ppapi/examples/gles2",
244       "//ppapi/examples/gles2_spinning_cube",
245       "//ppapi/examples/ime",
246       "//ppapi/examples/input",
247       "//ppapi/examples/media_stream_audio",
248       "//ppapi/examples/media_stream_video",
249       "//ppapi/examples/mouse_cursor",
250       "//ppapi/examples/mouse_lock",
251       "//ppapi/examples/printing",
252       "//ppapi/examples/scaling",
253       "//ppapi/examples/scripting",
254       "//ppapi/examples/stub",
255       "//ppapi/examples/threading",
256       "//ppapi/examples/url_loader",
257       "//ppapi/examples/video_capture",
258       "//ppapi/examples/video_decode",
259       "//ppapi/examples/video_effects",
260       "//ppapi/examples/video_encode",
261       "//third_party/pdfium/samples:pdfium_test",
262       "//tools/gn",
263       "//tools/gn:generate_test_gn_data",
264       "//tools/gn:gn_unittests",
265       "//ui/app_list:app_list_unittests",
266       "//url:url_unittests",
267     ]
269     if (has_chrome_android_internal) {
270       deps += [ "//clank" ]  # TODO(GYP) ??
271     }
272   }
274   if (is_linux) {  # TODO(GYP): || is_android || is_bsd?
275     deps += [
276       "//breakpad:core-2-minidump",
277       "//breakpad:minidump-2-core",
278     ]
279   }
281   if (is_chromeos) {
282     deps += [
283       "//chromeos:chromeos_unittests",
284       "//ui/chromeos:ui_chromeos_unittests",
285     ]
286   }
288   if (is_chromeos || is_mac || is_win) {
289     deps += [
290       "//rlz:rlz_id",
291       "//rlz:rlz_lib",
292       "//rlz:rlz_unittests",
293     ]
294   }
296   if (is_linux) {
297     # The following are definitely linux-only.
298     deps += [
299       "//breakpad:breakpad_unittests",
300       "//breakpad:generate_test_dump",
301       "//dbus:dbus_test_server",
302       "//dbus:dbus_unittests",
303       "//net:disk_cache_memory_test",
304       "//net:flip_in_mem_edsm_server",
305       "//net:flip_in_mem_edsm_server_unittests",
306       "//net:quic_client",
307       "//net:quic_server",
308       "//sandbox/linux:chrome_sandbox",
309       "//sandbox/linux:sandbox_linux_unittests",
310       "//sandbox/linux:sandbox_linux_jni_unittests",
311     ]
313     if (is_chromeos || use_ash) {
314       deps += [ "//components/session_manager/core" ]
315     }
316   }
318   if (is_win || (is_linux && !is_chromeos)) {
319     # TODO(GYP): Figure out which of these should (and can) build
320     # for android/chromeos/mac/ios.
321     deps += [
322       "//base:base_perftests",
323       "//base:base_i18n_perftests",
324       "//base:check_example",
325       "//base:protect_file_posix",
326       "//base:build_utf8_validator_tables",
327       "//cc:cc_perftests",
328       "//cc/blink:cc_blink_unittests",
329       "//chrome/test:load_library_perf_tests",
330       "//chrome/test:performance_browser_tests",
331       "//chrome/test:sync_performance_tests",
332       "//chrome/test/chromedriver:chromedriver",
333       "//chrome/test/chromedriver:chromedriver_tests",
334       "//chrome/tools/profile_reset:jtl_compiler",
335       "//components:components_perftests",
336       "//content/test:content_gl_tests",
337       "//content/test:content_gl_benchmark",
338       "//courgette:courgette",
339       "//courgette:courgette_fuzz",
340       "//courgette:courgette_minimal_tool",
341       "//courgette:courgette_unittests",
342       "//device:device_unittests",
343       "//gin:gin_shell",
344       "//gin:gin_unittests",
345       "//google_apis:google_apis_unittests",
346       "//google_apis/gcm:mcs_probe",
347       "//gpu:angle_unittests",
348       "//gpu:gpu_perftests",
349       "//gpu:gl_tests",
350       "//ipc:ipc_perftests",
351       "//media:ffmpeg_regression_tests",  # TODO(GYP) this should be conditional on media_use_ffmpeg
352       "//media:media_perftests",
353       "//media/cast:generate_barcode_video",
354       "//media/cast:generate_timecode_audio",
355       "//net:crash_cache",
356       "//net:crl_set_dump",
357       "//net:dns_fuzz_stub",
358       "//net:dump_cache",
359       "//net:gdig",
360       "//net:get_server_time",
361       "//net:net_watcher",  # TODO(GYP): This should be conditional on use_v8_in_net
362       "//net:run_testserver",
363       "//net:stress_cache",
364       "//net:tld_cleanup",
365       "//ppapi:pepper_hash_for_uma",
366       "//ppapi:ppapi_perftests",
367       "//sync:run_sync_testserver",
368       "//sync:sync_endtoend_tests",
369       "//third_party/codesighs:maptsvdifftool",
370       "//third_party/leveldatabase:env_chromium_unittests",
371       "//third_party/libaddressinput:libaddressinput_unittests",
372       "//third_party/libphonenumber:libphonenumber_unittests",
373       "//ui/compositor:compositor_unittests",
374     ]
376     if (enable_extensions) {
377       deps += [ "//extensions/shell:app_shell" ]
378     }
380     if (enable_nacl) {
381       deps += [ "//components/nacl:nacl_loader_unittests" ]
382     }
384     if (enable_nacl && enable_remoting) {
385       deps += [ "//remoting:remoting_key_tester" ]
386     }
388     if (use_ash) {
389       deps += [
390         "//ash:ash_shell",
391         "//ash:ash_shell_unittests",
392         "//ash:ash_unittests",
393       ]
394     }
396     if (use_aura) {
397       deps += [
398         "//ui/aura:aura_unittests",
399         "//ui/aura:bench",
400         "//ui/aura:demo",
401       ]
402     }
403   }
405   if (is_linux && !is_chromeos) {
406     deps += [
407       # TODO(GYP): Figure out which of these should (and can) build
408       # under which other conditions.
409       "//build/sanitizers:copy_llvm_symbolizer",
410       "//chrome/test:chrome_app_unittests",
411       "//cloud_print:cloud_print_unittests",
412       "//components/network_hints/browser",
413       "//components/webui_generator",
414       "//content/public/app:browser",
415       "//content/public/app:child",
417       # TODO(GYP): Remove this when the gles2 tests work
418       "//gpu/command_buffer/client:gles2_implementation_no_check",
420       "//gpu/khronos_glcts_support:khronos_glcts_test",  # TODO(GYP) crbug.com/471903 to make this complete.
421       "//media/cast:cast_benchmarks",
422       "//media/cast:tap_proxy",
423       "//mojo/application",
424       "//skia:filter_fuzz_stub",
425       "//skia:image_operations_bench",
426       "//sync/tools:sync_client",
427       "//sync/tools:sync_listen_notifications",
428       "//testing/gmock:gmock_main",
429       "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests",
430       "//tools/perf/clear_system_cache",
431       "//ui/keyboard:keyboard_unittests",
432       "//ui/message_center:message_center_unittests",
433       "//ui/snapshot:snapshot_unittests",
434       "//ui/views/examples:views_examples_with_content_exe",
436       # "//v8:v8_snapshot",  # TODO(GYP): visibility?
437       # "//v8:postmortem-metadata",  # TODO(GYP): visibility?
439       "//third_party/codesighs:nm2tsv",
440       "//third_party/sqlite:sqlite_shell",
441     ]
443     if (current_toolchain == host_toolchain) {
444       # Do not build the breakpad utilities in cross-compiles.
445       deps += [
446         "//breakpad:dump_syms",
447         "//breakpad:microdump_stackwalk",
448         "//breakpad:minidump_dump",
449         "//breakpad:minidump_stackwalk",
450       ]
451     }
453     if (!is_debug && !is_component_build) {
454       deps += [ "//chrome/tools/service_discovery_sniffer" ]
455     }
457     if (toolkit_views) {
458       deps += [ "//ui/app_list:app_list_demo" ]
459     }
461     if (use_x11) {
462       if (target_cpu != "arm") {
463         deps += [ "//gpu/tools/compositor_model_bench" ]
464       }
465     }
466   }
468   if (is_mac) {
469     deps += [
470       "//breakpad:crash_inspector",
471       "//breakpad:dump_syms",
472       "//third_party/apple_sample_code",
473       "//third_party/molokocacao",
474     ]
476     # TODO(GYP): Remove these when the targets below work and these
477     # are pulled in automatically.
478     deps += [
479       "//cc/blink",
480       "//components/ui/zoom:ui_zoom",
481       "//content",
482       "//content/test:test_support",
483       "//device/battery",
484       "//device/bluetooth",
485       "//device/nfc",
486       "//device/usb",
487       "//device/vibration",
488       "//media/blink",
489       "//pdf",
490       "//storage/browser",
491       "//third_party/brotli",
492       "//third_party/flac",
493       "//third_party/hunspell",
494       "//third_party/iccjpeg",
495       "//third_party/libphonenumber",
496       "//third_party/ots",
497       "//third_party/qcms",
498       "//third_party/smhasher:murmurhash3",
499       "//third_party/speex",
500       "//third_party/webrtc/system_wrappers",
501       "//ui/native_theme",
502       "//ui/snapshot",
503       "//ui/surface",
504     ]
506     # TODO(dpranke): These are as-yet untriaged but need at least the above.
507     deps -= [
508       "//chrome",  # TODO(GYP)
509       "//chrome/test:browser_tests",  # TODO(GYP)
510       "//chrome/test:interactive_ui_tests",  # TODO(GYP)
511       "//chrome/test:sync_integration_tests",  # TODO(GYP)
512       "//chrome/test:unit_tests",  # TODO(GYP)
513       "//components:components_browsertests",  # TODO(GYP)
514       "//components:components_unittests",  # TODO(GYP)
515       "//content/test:content_browsertests",  # TODO(GYP)
516       "//content/test:content_perftests",  # TODO(GYP)
517       "//content/test:content_unittests",  # TODO(GYP)
518       "//extensions:extensions_browsertests",  # TODO(GYP)
519       "//extensions:extensions_unittests",  # TODO(GYP)
520       "//net:net_unittests",  # TODO(GYP)
521       "//ui/app_list:app_list_unittests",  # TODO(GYP)
522       "//ui/gfx:gfx_unittests",  # TODO(GYP)
523     ]
524   }
526   if (is_win) {
527     deps += [
528       "//base:pe_image_test",
529       "//chrome_elf:chrome_elf_unittests",
530       "//chrome_elf:dll_hash_main",
532       # "//components/crash/tools:crash_service", TODO(GYP) - doesn't fully build yet.
533       "//components/wifi:wifi_test",
534       "//net:quic_client",
535       "//net:quic_server",
536       "//sandbox/win:pocdll",
537       "//sandbox/win:sandbox_poc",
538       "//sandbox/win:sbox_integration_tests",
539       "//sandbox/win:sbox_unittests",
540       "//sandbox/win:sbox_validation_tests",
541       "//testing/gtest:gtest_main",
542       "//third_party/codesighs:msmap2tsv",
543       "//third_party/pdfium/samples:pdfium_diff",
544       "//ui/metro_viewer",
545     ]
546     deps -= [
547       "//crypto:crypto_unittests",  # TODO(GYP)
548       "//net:net_unittests",  # TODO(GYP)
549     ]
550   } else if (!is_android) {
551     deps += [ "//breakpad:symupload" ]
552   }
555 group("gn_only") {
556   testonly = true
558   deps = []
560   if (!is_android && !is_ios) {
561     deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
562   }
564   if (is_linux && !is_chromeos) {
565     # TODO(GYP): Figure out if any of these should be in gn_all
566     # and figure out how cross-platform they are
567     deps += [
568       ":gn_mojo_targets",
569       "//chrome/browser/resources:extension_resource_demo",
570       "//chrome/installer/util:strings",
571       "//chrome:main_dll",
572       "//chrome/test:load_library_perf_tests",
573       "//chrome/tools/convert_dict",
574       "//components/constrained_window:unit_tests",
575       "//components/enhanced_bookmarks:test_support",
576       "//components/metrics:serialization",
577       "//components/password_manager/content/renderer:browser_tests",
578       "//components/rappor:unit_tests",
579       "//components/sessions:unit_tests",
580       "//media/blink:media_blink_unittests",
581       "//media/base:base_for_cast_ios",
582       "//media/cast:udp_proxy",
583       "//native_client/src/trusted/platform_qualify:vcpuid",
584       "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
585       "//storage/browser:dump_file_system",
586       "//third_party/angle:libANGLE",
587       "//third_party/angle:libEGL",
588       "//third_party/angle:libGLESv2",
589       "//third_party/cld_2:cld_2_dynamic_data_tool",
590       "//third_party/leveldatabase:leveldb_arena_test",
591       "//third_party/leveldatabase:leveldb_bloom_test",
592       "//third_party/leveldatabase:leveldb_db_test",
593       "//third_party/leveldatabase:leveldb_crc32c_test",
594       "//third_party/leveldatabase:leveldb_cache_test",
595       "//third_party/leveldatabase:leveldb_env_test",
596       "//third_party/leveldatabase:leveldb_write_batch_test",
597       "//third_party/leveldatabase:leveldb_filter_block_test",
598       "//third_party/leveldatabase:leveldb_version_edit_test",
599       "//third_party/leveldatabase:leveldb_db_bench",
600       "//third_party/leveldatabase:leveldb_log_test",
601       "//third_party/leveldatabase:leveldb_corruption_test",
602       "//third_party/leveldatabase:leveldb_table_test",
603       "//third_party/leveldatabase:leveldb_skiplist_test",
604       "//third_party/leveldatabase:leveldb_filename_test",
605       "//third_party/leveldatabase:leveldb_dbformat_test",
606       "//third_party/pdfium/third_party:freetype",
607       "//third_party/libjingle:peerconnnection_server",
608       "//third_party/libjpeg_turbo:simd",
609       "//third_party/libjpeg_turbo:simd_asm",
610       "//third_party/libsrtp:replay_driver",
611       "//third_party/libsrtp:roc_driver",
612       "//third_party/libsrtp:rtpw",
613       "//third_party/libsrtp:rdbx_driver",
614       "//third_party/libsrtp:srtp_driver",
615       "//third_party/libsrtp:srtp_driver",
616       "//third_party/libsrtp:srtp_test_kernel_driver",
617       "//third_party/libsrtp:srtp_test_cipher_driver",
618       "//third_party/libsrtp:srtp_test_datatypes_driver",
619       "//third_party/libsrtp:srtp_test_aes_calc",
620       "//third_party/libsrtp:srtp_test_env",
621       "//third_party/libsrtp:srtp_test_rand_gen",
622       "//third_party/libsrtp:srtp_test_sha1_driver",
623       "//third_party/libsrtp:srtp_test_stat_driver",
624       "//third_party/opus:opus_compare",
625       "//third_party/opus:opus_demo",
626       "//third_party/opus:test_opus_decode",
627       "//third_party/opus:test_opus_encode",
628       "//third_party/opus:test_opus_api",
629       "//third_party/opus:test_opus_padding",
630       "//third_party/webrtc/system_wrappers:field_trial_default",
631       "//third_party/webrtc/system_wrappers:metrics_default",
632       "//ui/display/types",
633       "//ui/shell_dialogs:shell_dialogs_unittests",
634       "//ui/views/examples:views_examples_exe",
635     ]
636     if (enable_nacl) {
637       deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ]
638     }
639     if (use_ozone) {
640       deps += [ "//ui/ozone/demo" ]
641     }
642     if (is_android) {
643       deps += [ "//build/android/gyp/test:hello_world" ]
644     }
646     if (is_linux && current_toolchain == host_toolchain) {
647       deps += [ "//v8:d8" ]
648     }
649   }
652 group("gn_mojo_targets") {
653   testonly = true
654   if (is_linux && !is_chromeos) {
655     # TODO(GYP): Figure out if any of these should be in gn_all
656     # and figure out how cross-platform they are
657     deps = [
658       "//chrome/browser/ui/webui/omnibox:mojo_bindings_python",
659       "//content/public/common:mojo_bindings_python",
660       "//content/common:mojo_bindings_python",
661       "//content/test:web_ui_test_mojo_bindings_python",
662       "//device/battery:mojo_bindings_python",
663       "//device/vibration:mojo_bindings_python",
664       "//ipc/mojo:ipc_mojo_perftests",
665       "//ipc/mojo:client_channel_python",
666       "//media/mojo/interfaces:interfaces_python",
667       "//media/mojo/services:cdm_service",
668       "//media/mojo:tests",
669       "//mojo/services:apptests",
670       "//mojo/services:tests",
671       "//net/interfaces:interfaces_python",
672       "//third_party/mojo/src/mojo/edk/js/test:js_integration_tests",
673       "//third_party/mojo/src/mojo/edk/js/tests:js_to_cpp_bindings_python",
674       "//third_party/mojo/src/mojo/public/python:packaged_application",
675       "//third_party/mojo/src/mojo/public/python:packaged_bindings",
676       "//third_party/mojo/src/mojo/public/cpp/application:test_support_standalone",
677       "//third_party/mojo_services/src/accessibility/public/interfaces:interfaces_python",
678       "//third_party/mojo_services/src/window_manager/public/interfaces:interfaces_python",
679     ]
680   }
683 group("gn_visibility") {
684   deps = [
685     # "//build/config/sanitizers:options_sources",
686     # "//third_party/pdfium:pdfium_embeddertests",  # TODO(GYP): visibility?
687     # "//third_party/pdfium:pdfium_unittests",  # TODO(GYP): visibility?
688     # "//ui/resources:repack_ui_test_mac_locale_pack",
689     # "//v8:v8_snapshot",  # TODO(GYP): visibility?
690     # "//v8:postmortem-metadata",  # TODO(GYP): visibility?
691   ]
694 if (is_linux) {
695   # This group corresponds to the list of tests run on the waterfall for
696   # desktop Linux GYP builds from testing/buildbot/chromium.linux.json. It's
697   # here to help track GYP -> GN conversion progress.
698   group("linux_default_tests") {
699     testonly = true
700     deps = [
701       "//base:base_unittests",  # PASSES (*) 2/25/2015
702       "//cc:cc_unittests",  # PASSES 2/25/2015
703       "//chrome/test:browser_tests",
704       "//chrome/test:interactive_ui_tests",
705       "//chrome/test:sync_integration_tests",  # Crashes for brettw in GN and GYP.
706       "//chrome/test:unit_tests",  # PASSES 2/25/2015
707       "//chrome/test/chromedriver:chromedriver_unittests",  # PASSES 2/25/2015
708       "//components:components_browsertests",  # PASSES 4/17/2015
709       "//components:components_unittests",  # PASSES 2/27/2015
710       "//content/test:content_browsertests",
711       "//content/test:content_unittests",  # PASSES 2/25/2015
712       "//crypto:crypto_unittests",  # PASSES 2/25/2015
713       "//dbus:dbus_unittests",  # PASSES 2/25/2015
714       "//device:device_unittests",  # PASSES 3/07/2015
715       "//extensions:extensions_browsertests",  # PASSES 2/25/2015
716       "//extensions:extensions_unittests",  # PASSES 2/25/2015
717       "//extensions/shell:app_shell_unittests",  # PASSES 2/25/2015
718       "//google_apis/gcm:gcm_unit_tests",  # PASSES 2/25/2015
719       "//google_apis:google_apis_unittests",  # PASSES 2/25/2015
720       "//gpu:gpu_unittests",  # PASSES 2/25/2015
721       "//ipc:ipc_tests",  # PASSES 2/25/2015
722       "//ipc/mojo:ipc_mojo_unittests",  # PASSES 2/25/2015
723       "//jingle:jingle_unittests",  # PASSES 2/25/2015
724       "//media:media_unittests",  # PASSES 3/3/2015
725       "//media/cast:cast_unittests",  # PASSES 2/25/2015
726       "//media/midi:midi_unittests",  # PASSES 4/10/2015
727       "//mojo/common:mojo_common_unittests",  # PASSES 2/25/2015
728       "//net:net_unittests",  # PASSES 2/25/2015
729       "//ppapi:ppapi_unittests",  # PASSES 2/26/2015
730       "//printing:printing_unittests",  # PASSES 2/25/2015
731       "//remoting:remoting_unittests",  # PASSES 4/17/2015
732       "//sandbox/linux:sandbox_linux_unittests",  # PASSES 2/25/2015
733       "//skia:skia_unittests",  # PASSES 2/25/2015
734       "//sql:sql_unittests",  # PASSES 2/25/2015
735       "//sync:sync_unit_tests",  # PASSES 2/25/2015
736       "//third_party/cacheinvalidation:cacheinvalidation_unittests",  # PASSES 2/25/2015
737       "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",  # PASSES 2/25/2015
738       "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",  # PASSES 2/25/2015
739       "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",  # PASSES 2/25/2015
740       "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",  # PASSES 2/25/2015
741       "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
742       "//ui/accessibility:accessibility_unittests",  # PASSES 2/25/2015
743       "//ui/app_list:app_list_unittests",  # PASSES 2/25/2015
744       "//ui/aura:aura_unittests",  # PASSES 2/25/2015
745       "//ui/base:ui_base_unittests",  # PASSES 4/17/2015
746       "//ui/compositor:compositor_unittests",  # PASSES 2/25/2015
747       "//ui/display:display_unittests",  # PASSES 2/25/2015
748       "//ui/events:events_unittests",  # PASSES 2/25/2015
749       "//ui/gfx:gfx_unittests",  # PASSES 2/25/2015
750       "//ui/touch_selection:ui_touch_selection_unittests",  # PASSES 2/25/2015
751       "//ui/views:views_unittests",  # PASSES (*) 2/25/2015
752       "//ui/wm:wm_unittests",  # PASSES 2/25/2015
753       "//url:url_unittests",  # PASSES 2/25/2015
755       # Note:
756       # (*) Fails but failures match GYP build at time of testing.
757     ]
759     if (enable_nacl) {
760       deps += [ "//components/nacl:nacl_loader_unittests" ]  # PASSES 3/28/2015
761     }
762   }
763 } else if (is_win) {
764   group("windows_default_tests") {
765     testonly = true
766     deps = [
767       "//ash:ash_unittests",  # FAILS 4/20/2015
768       "//base:base_unittests",  # PASSES 4/17/2015 in 32-bit, some 64-bit failures.
769       "//cc:cc_unittests",  # PASSES 4/17/2015
770       "//chrome_elf:chrome_elf_unittests",  # FAILS 4/20/2015
771       "//chrome/test:browser_tests",
772       "//chrome/test:interactive_ui_tests",
773       "//chrome/test:sync_integration_tests",  # Note: need to turn off incremental linking for debug.
774       "//chrome/test:unit_tests",
775       "//chrome/test/chromedriver:chromedriver_unittests",  # PASSES 4/20/2015
776       "//components:components_browsertests",
777       "//components:components_unittests",  # PASSES 4/17/2015
778       "//courgette:courgette_unittests",  # PASSES 4/20/2015
779       "//content/test:content_browsertests",
780       "//content/test:content_unittests",  # PASSES 4/17/2015
781       "//crypto:crypto_unittests",  # PASSES 4/17/2015
782       "//device:device_unittests",  # PASSES 4/17/2015
783       "//extensions:extensions_browsertests",  # PASSES 4/17/2015
784       "//extensions:extensions_unittests",  # PASSES 4/17/2015
785       "//extensions/shell:app_shell_unittests",  # Doesn't compile in 64-bit
786       "//google_apis/gcm:gcm_unit_tests",  # PASSES 4/17/2015
787       "//google_apis:google_apis_unittests",  # PASSES 4/17/2015
788       "//gpu:gpu_unittests",  # PASSES 4/17/2015
789       "//ipc:ipc_tests",  # PASSES 4/17/2015
790       "//ipc/mojo:ipc_mojo_unittests",  # PASSES 4/17/2015
791       "//jingle:jingle_unittests",  # PASSES 4/17/2015
792       "//media/cast:cast_unittests",  # PASSES 4/17/2015
793       "//media:media_unittests",  # PASSES 4/17/2015
794       "//mojo/common:mojo_common_unittests",  # PASSES 4/17/2015
795       "//net:net_unittests",  # PASSES 4/17/2015
796       "//ppapi:ppapi_unittests",  # PASSES 4/17/2015
797       "//printing:printing_unittests",  # PASSES 4/17/2015
798       "//remoting:remoting_unittests",  # PASSES 4/17/2015
799       "//sandbox/win:sbox_integration_tests",  # PASSES 4/20/2015
800       "//sandbox/win:sbox_unittests",  # PASSES 4/20/2015
801       "//sandbox/win:sbox_validation_tests",  # PASSES 4/20/2015
802       "//skia:skia_unittests",  # PASSES 4/17/2015
803       "//sql:sql_unittests",  # PASSES 4/17/2015
804       "//sync:sync_unit_tests",  # PASSES 4/20/2015
805       "//third_party/cacheinvalidation:cacheinvalidation_unittests",  # PASSES 4/20/2015
806       "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",  # Seems to hang?
807       "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",  # FAILS
808       "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",  # PASSES 4/20/2015
809       "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",  # PASSES 4/20/2015
810       "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",  # PASSES 4/20/2015
811       "//ui/accessibility:accessibility_unittests",  # PASSES 4/20/2015
812       "//ui/app_list:app_list_unittests",  # PASSES 4/20/2015
813       "//ui/aura:aura_unittests",  # PASSES 4/17/2015
814       "//ui/base:ui_base_unittests",  # PASSES 4/20/2015
815       "//ui/compositor:compositor_unittests",  # PASSES 4/20/2015
816       "//ui/display:display_unittests",  # PASSES 4/20/2015
817       "//ui/events:events_unittests",  # PASSES 4/20/2015
818       "//ui/gfx:gfx_unittests",  # PASSES (with assertion failure?) 4/20/2015
819       "//ui/message_center:message_center_unittests",  # PASSES 4/20/2015
820       "//ui/touch_selection:ui_touch_selection_unittests",  # PASSES 4/20/2015
821       "//ui/views:views_unittests",  # Same as WM unittests
822       "//ui/wm:wm_unittests",  # CRASHES, looks like something simple missing.
823       "//url:url_unittests",  # PASSES 4/17/2015
825       # TODO(GYP) installer_util_unittests
826       # TODO(GYP) app_installer_unittests
827       # TODO(GYP) nacl_integration
828       # TODO(GYP) telemetry_perf_unittests
829       # TODO(GYP) telemetry_unittests
830     ]
831   }