1 # Copyright 2014 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 import("//build/config/chrome_build.gni")
6 import("//build/config/crypto.gni")
7 import("//build/config/features.gni")
8 import("//build/config/ui.gni")
9 import("//third_party/protobuf/proto_library.gni")
11 # //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which
12 # produces a conflict for the "grit" template so we have to only include one.
14 import("//build/config/android/rules.gni")
16 import("//tools/grit/grit_rule.gni")
18 if (is_desktop_linux) {
19 import("//build/config/linux/pkg_config.gni")
23 # 'Ok Google' hotwording is enabled.
24 enable_hotwording = true
27 about_credits_file = "$target_gen_dir/about_credits.html"
28 additional_modules_list_file =
29 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt"
31 gypi_values = exec_script("//build/gypi_to_gn.py",
32 [ rebase_path("../chrome_browser.gypi") ],
34 [ "../chrome_browser.gypi" ])
36 if (is_desktop_linux) {
37 # Gnome-keyring is normally dynamically loaded. The gnome_keyring config
39 pkg_config("gnome_keyring") {
40 packages = [ "gnome-keyring-1" ]
43 "DLOPEN_GNOME_KEYRING",
48 # If you want to link gnome-keyring directly (use only for unit tests)
49 # ADDITIONALLY add this config on top of ":gnome_keyring". pkg-config is a
50 # bit slow, so prefer not to run it again. In practice, gnome-keyring's libs
51 # are just itself and common gnome ones we link already, so we can get away
52 # with additionally just coding the library name here.
53 config("gnome_keyring_direct") {
54 libs = [ "gnome-keyring" ]
58 source_set("browser") {
60 "//build/config/compiler:wexit_time_destructors",
61 "//third_party/WebKit/public:debug_devtools",
68 # iOS/non-iOS shared deps. New dependencies should generally be added in the
71 "//components/autofill/core/browser",
72 "//content/public/browser",
78 "//chrome:extra_resources",
81 "//chrome/app:generated_resources_map",
82 "//chrome/app/resources:platform_locale_settings",
83 "//chrome/app/theme:theme_resources",
84 "//chrome/browser/net:encrypted_cert_logger_proto",
85 "//chrome/browser/net:probe_message_proto",
86 "//chrome/browser/offline_pages:offline_pages_proto",
87 "//chrome/browser/ssl:cert_logger_proto",
88 "//chrome/browser/ui",
90 "//chrome/common/net",
91 "//components/autofill/core/browser",
92 "//components/bookmarks/browser",
93 "//components/bookmarks/managed",
94 "//components/captive_portal",
95 "//components/cloud_devices/common",
96 "//components/component_updater",
97 "//components/content_settings/content/common",
98 "//components/content_settings/core/browser",
99 "//components/content_settings/core/common",
100 "//components/crx_file",
101 "//components/data_reduction_proxy/core/browser",
102 "//components/device_event_log",
103 "//components/domain_reliability",
104 "//components/enhanced_bookmarks",
105 "//components/favicon/core",
106 "//components/favicon_base",
107 "//components/gcm_driver",
108 "//components/gcm_driver/instance_id",
109 "//components/google/core/browser",
110 "//components/guest_view/browser",
111 "//components/handoff",
112 "//components/history/core/browser",
113 "//components/history/core/common",
114 "//components/infobars/core",
115 "//components/invalidation",
116 "//components/metrics:gpu",
117 "//components/metrics:net",
118 "//components/metrics:profiler",
119 "//components/metrics/proto:proto",
120 "//components/mime_util",
121 "//components/navigation_metrics",
122 "//components/network_time",
123 "//components/offline_pages",
124 "//components/omnibox",
125 "//components/os_crypt",
126 "//components/packed_ct_ev_whitelist",
127 "//components/password_manager/core/browser",
128 "//components/password_manager/core/common",
129 "//components/policy:policy_component",
130 "//components/precache/core",
131 "//components/query_parser",
132 "//components/rappor",
133 "//components/renderer_context_menu",
134 "//components/search",
135 "//components/search_engines",
136 "//components/search_provider_logos",
137 "//components/signin/core/browser",
138 "//components/startup_metric_utils",
139 "//components/strings",
140 "//components/suggestions",
141 "//components/sync_driver",
142 "//components/translate/core/browser",
143 "//components/translate/core/common",
144 "//components/ui/zoom:ui_zoom",
146 "//components/update_client",
147 "//components/url_fixer",
148 "//components/user_prefs",
149 "//components/variations",
150 "//components/variations/net",
151 "//components/webdata/common",
152 "//components/webdata_services",
153 "//components/web_resource",
154 "//content/public/browser",
155 "//content/public/common",
156 "//courgette:courgette_lib",
164 "//third_party/cacheinvalidation",
166 "//third_party/libxml",
167 "//third_party/libjingle",
168 "//third_party/widevine/cdm:version_h",
169 "//third_party/zlib",
170 "//third_party/zlib:minizip",
171 "//third_party/zlib:zip",
173 "//ui/events:events_base",
176 "//ui/message_center",
177 "//ui/shell_dialogs",
183 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
187 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
188 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
191 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
194 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
197 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
200 sources += rebase_path(gypi_values.chrome_browser_engagement_sources,
204 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
206 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
208 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
210 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
212 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
213 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
216 sources += rebase_path(gypi_values.chrome_browser_permissions_sources,
219 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
223 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
224 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
227 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
230 sources += rebase_path(gypi_values.chrome_browser_services_sources,
234 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
236 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
238 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
240 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
241 sources += rebase_path(gypi_values.chrome_browser_web_resource_sources,
248 "//chrome/app:generated_resources_map",
249 "//chrome/app/theme:theme_resources",
250 "//chrome/browser/devtools",
251 "//chrome/browser/resources:component_extension_resources",
252 "//chrome/installer/util",
253 "//components/app_modal",
254 "//components/autofill/content/browser",
255 "//components/browsing_data",
256 "//components/data_reduction_proxy/content/browser",
257 "//components/devtools_discovery",
258 "//components/devtools_http_handler",
259 "//components/dom_distiller/content",
260 "//components/favicon/content",
261 "//components/history/content/browser",
262 "//components/keyed_service/content",
263 "//components/navigation_interception",
264 "//components/password_manager/content/browser",
265 "//components/plugins/common",
266 "//components/precache/content",
267 "//components/safe_json_parser",
268 "//components/sessions",
269 "//components/storage_monitor",
270 "//components/translate/content/browser",
271 "//components/url_matcher",
272 "//components/visitedlink/browser",
273 "//components/visitedlink/common",
274 "//components/web_cache/browser",
275 "//components/web_modal",
276 "//content/app/resources",
279 "//mojo/environment:chromium",
284 "//third_party/WebKit/public:image_resources",
285 "//third_party/WebKit/public:resources",
286 "//third_party/expat",
287 "//third_party/leveldatabase",
288 "//third_party/libaddressinput",
289 "//third_party/libyuv",
290 "//third_party/mojo/src/mojo/edk/system",
291 "//third_party/mojo/src/mojo/public/cpp/bindings",
292 "//third_party/mojo/src/mojo/public/js",
294 "//third_party/smhasher:cityhash",
295 "//third_party/webrtc/modules/desktop_capture",
305 deps += [ "//ui/views" ]
309 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
311 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
314 "CoreTelephony.framework",
315 "CoreText.framework",
316 "MobileCoreServices.framework",
317 "QuartzCore.framework",
325 if (is_win || is_mac) {
327 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
329 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) {
331 "net/disk_cache_dir_policy_handler.cc",
332 "net/disk_cache_dir_policy_handler.h",
335 if (!is_android && !is_ios && enable_configuration_policy) {
337 "download/download_dir_policy_handler.cc",
338 "download/download_dir_policy_handler.h",
343 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
345 #"app_shim" TODO(GYP)
346 #"browser_app_shim" TODO(GYP)
349 if (enable_extensions) {
350 public_deps += [ "//chrome/browser/extensions" ]
352 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
353 "//chrome/common/extensions/api",
354 "//chrome/common/extensions/api:api_registration",
355 "//components/proximity_auth/ble",
356 "//components/proximity_auth/cryptauth",
357 "//extensions/components/javascript_dialog_extensions_client",
360 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
364 if (enable_background) {
365 sources += rebase_path(gypi_values.chrome_browser_background_sources,
368 if (!use_aura || is_win || is_chromeos) {
369 sources -= [ "background/background_mode_manager_aura.cc" ]
372 if (enable_task_manager) {
373 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
377 if (enable_spellcheck) {
378 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
381 deps += [ "//third_party/hunspell" ]
385 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
386 deps += [ "//components/nacl:nacl_browser" ]
389 if (enable_configuration_policy) {
391 rebase_path(gypi_values.chrome_browser_policy_shared_with_ios_sources,
395 "//components/policy",
396 "//components/policy/proto",
399 sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources,
404 sources += rebase_path(
405 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources,
409 if (is_win || is_mac || is_desktop_linux) {
410 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources,
414 if (is_android || is_ios) {
415 sources += rebase_path(gypi_values.chrome_browser_policy_mobile_sources,
420 "//chrome/browser/policy:path_parser",
421 "//net:net_browser_services",
425 # Configuration policy disabled.
426 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources,
431 if (enable_plugins) {
433 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
435 "//components/pdf/browser",
437 "//third_party/adobe/flash:flapper_version_h",
440 if (safe_browsing_mode != 0) {
442 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
446 "//chrome/browser/safe_browsing:chunk_proto",
447 "//chrome/browser/safe_browsing:metadata_proto",
448 "//chrome/browser/safe_browsing:report_proto",
450 if (safe_browsing_mode == 1) {
452 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
455 deps += [ "//chrome/common/safe_browsing:proto" ]
456 } else if (safe_browsing_mode == 3) {
457 sources += rebase_path(
458 gypi_values.chrome_browser_safe_browsing_mobile_extended_sources,
464 if (enable_hotwording) {
465 defines += [ "ENABLE_HOTWORDING" ]
470 "//device/media_transfer_protocol",
471 "//device/udev_linux",
474 if (is_linux && !is_chromeos) {
475 deps += [ "//third_party/speech-dispatcher" ]
479 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
482 deps += [ "//chrome/browser/chromeos" ]
485 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
492 "metrics/signin_status_metrics_provider_base.cc",
493 "metrics/signin_status_metrics_provider_base.h",
497 if (is_chromeos || is_ios) {
499 "metrics/signin_status_metrics_provider.cc",
500 "metrics/signin_status_metrics_provider.h",
505 configs += [ "//printing:cups" ]
507 if (is_desktop_linux) {
508 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
511 configs += [ ":gnome_keyring" ]
513 if (is_desktop_linux) {
514 sources += rebase_path(gypi_values.chrome_browser_libsecret_sources,
517 defines += [ "USE_LIBSECRET" ]
521 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
528 if (ui_compositor_image_transport) {
529 deps += [ "//ui/gl" ]
534 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
539 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
541 sources -= [ "password_manager/password_store_x.cc" ]
543 if (is_posix && !is_mac && !is_ios) {
545 "//chrome/app/chrome_crash_reporter_client.cc",
546 "//chrome/app/chrome_crash_reporter_client.h",
549 "//components/crash/app",
550 "//components/crash/browser",
555 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
557 sources -= [ "net/nss_context_linux.cc" ]
560 if (enable_notifications) {
561 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
565 sources += rebase_path(
566 gypi_values.chrome_browser_notifications_non_android_sources,
573 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
576 if (enable_basic_printing || enable_print_preview) {
577 # Some form of printing support.
578 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
581 deps += [ "//printing" ]
583 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
587 if (enable_print_preview) {
588 # Full printing on top of the above.
589 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
593 # Partial-only printing support.
595 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
600 if (enable_captive_portal_detection) {
601 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
605 if (enable_session_service) {
606 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
611 if (!is_android && !is_ios && !is_chromeos) {
613 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
616 if (is_android || is_ios) {
619 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
622 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
626 "//components/feedback",
628 "//device/devices_app:lib",
635 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
636 sources += rebase_path(gypi_values.chrome_browser_bookmark_android_sources,
640 ":client_discourse_context_proto",
643 "//components/cdm/browser",
644 "//components/enhanced_bookmarks",
645 "//components/resources:components_resources",
646 "//components/resources/enhanced_bookmarks:enhanced_bookmarks_resources",
647 "//components/service_tab_launcher",
648 "//components/web_contents_delegate_android",
649 "//third_party/android_opengl/etc1",
650 "//third_party/android_tools:cpu_features",
651 "//third_party/libaddressinput:util",
654 "//third_party/libaddressinput",
655 "//components/storage_monitor",
656 "//components/web_modal",
658 defines += [ "ENABLE_DATA_REDUCTION_PROXY_DEBUGGING" ]
660 if (use_seccomp_bpf) {
661 defines += [ "USE_SECCOMP_BPF" ]
662 deps += [ "//sandbox/linux:seccomp_bpf" ]
668 "//third_party/google_toolbox_for_mac",
669 "//third_party/mozilla",
672 "Accelerate.framework",
673 "AddressBook.framework",
674 "AudioUnit.framework",
675 "DiskArbitration.framework",
677 "ImageCaptureCore.framework",
679 "QuartzCore.framework",
680 "SecurityInterface.framework",
686 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
687 deps += [ "//rlz:rlz_lib" ]
691 # Temporary fix to break the browser target into smaller chunks so it
692 # will link with goma builds.
693 #["OS=="win" and chromium_win_pch==0", {
699 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
702 "//ui/views/controls/webview",
705 ":chrome_process_finder",
706 "//chrome:version_header",
707 "//chrome/installer/util:strings",
709 "//chrome_elf:constants",
710 "//chrome_elf:dll_hash",
711 "//components/browser_watcher",
712 "//components/browser_watcher:browser_watcher_client",
714 "//third_party/iaccessible2",
715 "//third_party/isimpledom",
718 "//win8:metro_viewer",
724 if (!is_chrome_branded) {
725 deps -= [ "//google_update" ]
727 "google/did_run_updater_win.cc",
728 "google/did_run_updater_win.h",
729 "google/google_update_win.cc",
730 "google/google_update_win.h",
736 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
740 "//ui/views/controls/webview",
747 rebase_path(gypi_values.chrome_browser_linux_sources, ".", "//chrome")
750 "//build/config/linux:dbus",
751 "//build/config/linux:fontconfig",
756 configs += [ "//build/config/linux:x11" ]
757 deps += [ "//ui/gfx/x" ]
761 if (is_desktop_linux) {
762 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
766 if (enable_plugin_installation) {
768 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
772 if (enable_app_list) {
773 deps += [ "//ui/app_list" ]
775 if (enable_supervised_users) {
776 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
780 if (enable_supervised_users && enable_themes) {
781 sources += rebase_path(
782 gypi_values.chrome_browser_supervised_user_and_themes_sources,
788 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
790 if (enable_service_discovery) {
791 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
797 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
799 if (!enable_autofill_dialog || is_android || is_ios) {
801 "autofill/validation_rules_storage_factory.cc",
802 "autofill/validation_rules_storage_factory.h",
805 if (enable_wifi_bootstrapping) {
807 rebase_path(gypi_values.chrome_browser_wifi_bootstrapping_sources,
810 if (is_win || is_mac) {
811 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows
812 # and Mac, so this test is meaningless. Can we merge these lists?
813 sources += rebase_path(
814 gypi_values.chrome_browser_wifi_bootstrapping_win_mac_sources,
819 if (enable_media_router) {
820 deps += [ "//chrome/browser/media/router" ]
825 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
826 generate_jni("jni_headers") {
828 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
829 jni_package = "chrome"
832 #GYP: '//chrome/chrome_browser.gypi:client_discourse_context_proto'
833 proto_library("client_discourse_context_proto") {
835 "android/proto/client_discourse_context.proto",
839 #GYP: '//chrome/chrome_browser.gypi:delta_file_proto'
840 proto_library("delta_file_proto") {
842 "android/proto/delta_file.proto",
848 source_set("chrome_process_finder") {
850 "chrome_process_finder_win.cc",
851 "chrome_process_finder_win.h",
855 "//chrome/browser/metro_utils",
856 "//chrome/common:constants",
858 if (enable_configuration_policy) {
859 deps += [ "//chrome/browser/policy:path_parser" ]
864 # GYP version: chrome/chrome_resources.gyp:chrome_resources
865 # (generate_browser_resources action)
867 source = "browser_resources.grd"
868 output_dir = "$root_gen_dir/chrome"
870 "grit/browser_resources.h",
871 "browser_resources.pak",
875 "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mojom.js"
879 "about_credits_file=" + rebase_path(about_credits_file, root_build_dir),
881 "additional_modules_list_file=" +
882 rebase_path(additional_modules_list_file, root_build_dir),
884 "omnibox_mojom_file=" + rebase_path(omnibox_mojom_file, root_build_dir),
889 ":chrome_internal_resources_gen",
891 # Depend only on the generated mojo bindings since we read the .mojom.js
892 # file, rather than the whole mojo target which will link the C++ bindings.
893 "//chrome/browser/ui/webui/omnibox:mojo_bindings__generator",
900 # GYP version: chrome/chrome_resource.gyp:about_credits
901 action("about_credits") {
902 script = "//tools/licenses.py"
905 # This is not a complete list. TODO(phajdan.jr, dbeam): licenses.py needs to
906 # generate a .d file with all the licenses/credits that about:credits uses.
907 # Then about:credits will automatically rebuild when one of them changes.
908 # See: depfile in gn's documentation (gn help depfile).
909 "resources/about_credits.tmpl",
910 "resources/about_credits_entry.tmpl",
919 rebase_path(about_credits_file, root_build_dir),
923 # GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
924 if (is_chrome_branded) {
925 action("chrome_internal_resources_gen") {
926 script = "internal/transform_additional_modules_list.py"
928 "internal/resources/additional_modules_list.input",
931 additional_modules_list_file,
933 args = rebase_path(sources, root_build_dir) +
934 rebase_path(outputs, root_build_dir)
937 group("chrome_internal_resources_gen") {
942 # In GYP this is part of test_support_common.
943 source_set("test_support") {
946 # Always include this via the main test support target.
947 visibility = [ "//chrome/test:test_support" ]
950 "browsing_data/mock_browsing_data_appcache_helper.cc",
951 "browsing_data/mock_browsing_data_appcache_helper.h",
952 "browsing_data/mock_browsing_data_channel_id_helper.cc",
953 "browsing_data/mock_browsing_data_channel_id_helper.h",
954 "browsing_data/mock_browsing_data_cookie_helper.cc",
955 "browsing_data/mock_browsing_data_cookie_helper.h",
956 "browsing_data/mock_browsing_data_database_helper.cc",
957 "browsing_data/mock_browsing_data_database_helper.h",
958 "browsing_data/mock_browsing_data_file_system_helper.cc",
959 "browsing_data/mock_browsing_data_file_system_helper.h",
960 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
961 "browsing_data/mock_browsing_data_flash_lso_helper.h",
962 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
963 "browsing_data/mock_browsing_data_indexed_db_helper.h",
964 "browsing_data/mock_browsing_data_local_storage_helper.cc",
965 "browsing_data/mock_browsing_data_local_storage_helper.h",
966 "browsing_data/mock_browsing_data_quota_helper.cc",
967 "browsing_data/mock_browsing_data_quota_helper.h",
968 "browsing_data/mock_browsing_data_service_worker_helper.cc",
969 "browsing_data/mock_browsing_data_service_worker_helper.h",
970 "download/download_test_file_activity_observer.cc",
971 "download/download_test_file_activity_observer.h",
972 "download/test_download_shelf.cc",
973 "download/test_download_shelf.h",
974 "invalidation/fake_invalidation_service.cc",
975 "invalidation/fake_invalidation_service.h",
976 "media/fake_desktop_media_list.cc",
977 "media/fake_desktop_media_list.h",
978 "net/dns_probe_test_util.cc",
979 "net/dns_probe_test_util.h",
980 "net/url_request_mock_util.cc",
981 "net/url_request_mock_util.h",
982 "notifications/notification_test_util.cc",
983 "notifications/notification_test_util.h",
984 "password_manager/mock_password_store_service.cc",
985 "password_manager/mock_password_store_service.h",
986 "password_manager/null_password_store_service.cc",
987 "password_manager/null_password_store_service.h",
988 "password_manager/test_password_store_service.cc",
989 "password_manager/test_password_store_service.h",
990 "prefs/pref_service_mock_factory.cc",
991 "prefs/pref_service_mock_factory.h",
992 "profile_resetter/profile_resetter_test_base.cc",
993 "profile_resetter/profile_resetter_test_base.h",
994 "search_engines/template_url_service_factory_test_util.cc",
995 "search_engines/template_url_service_factory_test_util.h",
996 "search_engines/template_url_service_test_util.cc",
997 "search_engines/template_url_service_test_util.h",
998 "sessions/session_restore_test_helper.cc",
999 "sessions/session_restore_test_helper.h",
1000 "sessions/session_service_test_helper.cc",
1001 "sessions/session_service_test_helper.h",
1002 "signin/fake_account_tracker_service.cc",
1003 "signin/fake_account_tracker_service.h",
1004 "signin/fake_gaia_cookie_manager_service.cc",
1005 "signin/fake_gaia_cookie_manager_service.h",
1006 "signin/fake_profile_oauth2_token_service.cc",
1007 "signin/fake_profile_oauth2_token_service.h",
1008 "signin/fake_profile_oauth2_token_service_builder.cc",
1009 "signin/fake_profile_oauth2_token_service_builder.h",
1010 "signin/fake_signin_manager.cc",
1011 "signin/fake_signin_manager.h",
1012 "ssl/ssl_client_auth_requestor_mock.cc",
1013 "ssl/ssl_client_auth_requestor_mock.h",
1014 "sync/profile_sync_components_factory_mock.cc",
1015 "sync/profile_sync_components_factory_mock.h",
1016 "sync/profile_sync_service_mock.cc",
1017 "sync/profile_sync_service_mock.h",
1018 "ui/webui/signin/login_ui_test_utils.cc",
1019 "ui/webui/signin/login_ui_test_utils.h",
1024 "//chrome/browser/ui:test_support",
1027 "//base:prefs_test_support",
1030 "//chrome/common/safe_browsing:proto",
1031 "//components/invalidation",
1032 "//components/invalidation:test_support",
1033 "//components/password_manager/core/browser:test_support",
1034 "//components/search_engines:test_support",
1035 "//content/test:test_support",
1036 "//chrome/app/theme:theme_resources",
1037 "//net:test_support",
1046 "//components/sessions:test_support",
1047 "//google_apis:test_support",
1051 if (enable_extensions) {
1053 "extensions/extension_action_test_util.cc",
1054 "extensions/extension_action_test_util.h",
1056 deps += [ "//extensions:test_support" ]
1061 "chromeos/app_mode/fake_cws.cc",
1062 "chromeos/app_mode/fake_cws.h",
1063 "chromeos/file_manager/fake_disk_mount_manager.cc",
1064 "chromeos/file_manager/fake_disk_mount_manager.h",
1065 "chromeos/input_method/mock_candidate_window_controller.cc",
1066 "chromeos/input_method/mock_candidate_window_controller.h",
1067 "chromeos/input_method/mock_input_method_engine.cc",
1068 "chromeos/input_method/mock_input_method_engine.h",
1069 "chromeos/input_method/mock_input_method_manager.cc",
1070 "chromeos/input_method/mock_input_method_manager.h",
1071 "chromeos/login/screens/mock_device_disabled_screen_actor.cc",
1072 "chromeos/login/screens/mock_device_disabled_screen_actor.h",
1073 "chromeos/login/session/user_session_manager_test_api.cc",
1074 "chromeos/login/session/user_session_manager_test_api.h",
1075 "chromeos/login/test/js_checker.cc",
1076 "chromeos/login/test/js_checker.h",
1077 "chromeos/login/test/oobe_screen_waiter.cc",
1078 "chromeos/login/test/oobe_screen_waiter.h",
1079 "chromeos/login/ui/mock_login_display.cc",
1080 "chromeos/login/ui/mock_login_display.h",
1081 "chromeos/login/ui/mock_login_display_host.cc",
1082 "chromeos/login/ui/mock_login_display_host.h",
1083 "chromeos/login/users/avatar/mock_user_image_manager.cc",
1084 "chromeos/login/users/avatar/mock_user_image_manager.h",
1085 "chromeos/login/users/fake_chrome_user_manager.cc",
1086 "chromeos/login/users/fake_chrome_user_manager.h",
1087 "chromeos/login/users/fake_supervised_user_manager.cc",
1088 "chromeos/login/users/fake_supervised_user_manager.h",
1089 "chromeos/login/users/mock_user_manager.cc",
1090 "chromeos/login/users/mock_user_manager.h",
1091 "chromeos/net/network_portal_detector_test_utils.cc",
1092 "chromeos/net/network_portal_detector_test_utils.h",
1093 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
1094 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
1095 "chromeos/policy/device_policy_builder.cc",
1096 "chromeos/policy/device_policy_builder.h",
1097 "chromeos/policy/fake_consumer_management_service.cc",
1098 "chromeos/policy/fake_consumer_management_service.h",
1099 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
1100 "chromeos/policy/fake_device_cloud_policy_initializer.h",
1101 "chromeos/policy/fake_device_cloud_policy_manager.cc",
1102 "chromeos/policy/fake_device_cloud_policy_manager.h",
1103 "chromeos/policy/stub_enterprise_install_attributes.cc",
1104 "chromeos/policy/stub_enterprise_install_attributes.h",
1105 "chromeos/settings/device_settings_test_helper.cc",
1106 "chromeos/settings/device_settings_test_helper.h",
1107 "chromeos/system/fake_input_device_settings.cc",
1108 "chromeos/system/fake_input_device_settings.h",
1110 configs += [ "//build/config/linux:dbus" ]
1111 deps += [ "//chromeos:test_support" ]
1114 if (enable_configuration_policy) {
1116 "policy/test/local_policy_test_server.cc",
1117 "policy/test/local_policy_test_server.h",
1120 "//components/policy:policy_component_test_support",
1121 "//components/policy:test_support",
1125 if (safe_browsing_mode == 1) {
1127 "extensions/fake_safe_browsing_database_manager.cc",
1128 "extensions/fake_safe_browsing_database_manager.h",
1132 if (enable_extensions) {
1134 "drive/dummy_drive_service.cc",
1135 "drive/dummy_drive_service.h",
1136 "drive/fake_drive_service.cc",
1137 "drive/fake_drive_service.h",
1138 "drive/test_util.cc",
1139 "drive/test_util.h",
1140 "extensions/api/messaging/native_messaging_test_util.cc",
1141 "extensions/api/messaging/native_messaging_test_util.h",
1142 "extensions/extension_notification_observer.cc",
1143 "extensions/extension_notification_observer.h",
1144 "extensions/mock_extension_special_storage_policy.cc",
1145 "extensions/mock_extension_special_storage_policy.h",
1146 "extensions/test_blacklist.cc",
1147 "extensions/test_blacklist.h",
1148 "extensions/test_blacklist_state_fetcher.cc",
1149 "extensions/test_blacklist_state_fetcher.h",
1150 "extensions/test_extension_dir.cc",
1151 "extensions/test_extension_dir.h",
1152 "extensions/test_extension_environment.cc",
1153 "extensions/test_extension_environment.h",
1154 "extensions/test_extension_prefs.cc",
1155 "extensions/test_extension_prefs.h",
1156 "extensions/test_extension_service.cc",
1157 "extensions/test_extension_service.h",
1158 "extensions/test_extension_system.cc",
1159 "extensions/test_extension_system.h",
1160 "media_galleries/media_galleries_test_util.cc",
1161 "media_galleries/media_galleries_test_util.h",
1163 deps += [ "//components/storage_monitor:test_support" ]
1168 "local_discovery/test_service_discovery_client.cc",
1169 "local_discovery/test_service_discovery_client.h",
1173 if (enable_app_list) {
1175 "ui/app_list/test/chrome_app_list_test_support.cc",
1176 "ui/app_list/test/chrome_app_list_test_support.h",
1177 "ui/app_list/test/test_app_list_controller_delegate.cc",
1178 "ui/app_list/test/test_app_list_controller_delegate.h",
1182 if (enable_wifi_bootstrapping) {
1184 "local_discovery/wifi/mock_wifi_manager.cc",
1185 "local_discovery/wifi/mock_wifi_manager.h",