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/crypto.gni")
6 import("//build/config/features.gni")
7 import("//build/config/ui.gni")
9 # //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which
10 # produces a conflict for the "grit" template so we have to only include one.
12 import("//build/config/android/rules.gni")
14 import("//tools/grit/grit_rule.gni")
16 if (is_desktop_linux) {
17 import("//build/config/linux/pkg_config.gni")
20 about_credits_file = "$target_gen_dir/about_credits.html"
21 additional_modules_list_file =
22 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt"
24 gypi_values = exec_script("//build/gypi_to_gn.py",
25 [ rebase_path("../chrome_browser.gypi") ],
27 [ "../chrome_browser.gypi" ])
29 if (is_desktop_linux) {
30 # Gnome-keyring is normally dynamically loaded. The gnome_keyring config
32 pkg_config("gnome_keyring") {
33 packages = [ "gnome-keyring-1" ]
36 "DLOPEN_GNOME_KEYRING",
41 # If you want to link gnome-keyring directly (use only for unit tests)
42 # ADDITIONALLY add this config on top of ":gnome_keyring". pkg-config is a
43 # bit slow, so prefer not to run it again. In practice, gnome-keyring's libs
44 # are just itself and common gnome ones we link already, so we can get away
45 # with additionally just coding the library name here.
46 config("gnome_keyring_direct") {
47 libs = [ "gnome-keyring" ]
51 static_library("browser") {
53 "//build/config/compiler:wexit_time_destructors",
54 "//third_party/WebKit/public:debug_devtools",
61 # iOS/non-iOS shared deps. New dependencies should generally be added in the
64 "//components/autofill/core/browser",
65 "//content/public/browser",
71 "//chrome:extra_resources",
74 "//chrome/app:generated_resources_map",
75 "//chrome/app/resources:platform_locale_settings",
76 "//chrome/app/theme:theme_resources",
77 "//chrome/browser/autocomplete:in_memory_url_index_cache_proto",
78 "//chrome/browser/net:cert_logger_proto",
79 "//chrome/browser/net:probe_message_proto",
80 "//chrome/browser/ui",
82 "//chrome/common/net",
83 "//components/autofill/core/browser",
84 "//components/bookmarks/browser",
85 "//components/bookmarks/managed",
86 "//components/captive_portal",
87 "//components/cloud_devices/common",
88 "//components/component_updater",
89 "//components/content_settings/core/browser",
90 "//components/content_settings/core/common",
91 "//components/crx_file",
92 "//components/data_reduction_proxy/core/browser",
93 "//components/device_event_log",
94 "//components/domain_reliability",
95 "//components/enhanced_bookmarks",
96 "//components/favicon/core",
97 "//components/favicon_base",
98 "//components/gcm_driver",
99 "//components/google/core/browser",
100 "//components/handoff",
101 "//components/history/core/browser",
102 "//components/history/core/common",
103 "//components/infobars/core",
104 "//components/invalidation",
105 "//components/metrics:gpu",
106 "//components/metrics:net",
107 "//components/metrics:profiler",
108 "//components/metrics/proto:proto",
109 "//components/navigation_metrics",
110 "//components/network_time",
111 "//components/omnibox",
112 "//components/os_crypt",
113 "//components/packed_ct_ev_whitelist",
114 "//components/password_manager/core/browser",
115 "//components/password_manager/core/common",
116 "//components/policy:policy_component",
117 "//components/precache/core",
118 "//components/query_parser",
119 "//components/rappor",
120 "//components/renderer_context_menu",
121 "//components/search",
122 "//components/search_engines",
123 "//components/search_provider_logos",
124 "//components/signin/core/browser",
125 "//components/startup_metric_utils",
126 "//components/strings",
127 "//components/suggestions",
128 "//components/sync_driver",
129 "//components/translate/core/browser",
130 "//components/translate/core/common",
131 "//components/ui/zoom:ui_zoom",
132 "//components/update_client",
133 "//components/url_fixer",
134 "//components/user_prefs",
135 "//components/variations",
136 "//components/variations/net",
137 "//components/webdata/common",
138 "//components/webdata_services",
139 "//components/web_resource",
140 "//content/public/browser",
141 "//content/public/common",
142 "//courgette:courgette_lib",
150 "//third_party/cacheinvalidation",
152 "//third_party/libxml",
153 "//third_party/libjingle",
154 "//third_party/widevine/cdm:version_h",
155 "//third_party/zlib",
156 "//third_party/zlib:minizip",
157 "//third_party/zlib:zip",
159 "//ui/events:events_base",
162 "//ui/message_center",
163 "//ui/shell_dialogs",
169 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
173 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
174 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
177 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
180 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
183 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
187 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
189 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
191 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
193 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
195 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
196 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
199 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
203 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
204 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
207 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
210 sources += rebase_path(gypi_values.chrome_browser_services_sources,
214 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
216 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
218 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
220 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
221 sources += rebase_path(gypi_values.chrome_browser_web_resource_sources,
228 "//chrome/app:generated_resources_map",
229 "//chrome/app/theme:theme_resources",
230 "//chrome/browser/devtools",
231 "//chrome/browser/resources:component_extension_resources",
232 "//chrome/installer/util",
233 "//components/app_modal",
234 "//components/autofill/content/browser",
235 "//components/data_reduction_proxy/content/browser",
236 "//components/dom_distiller/content",
237 "//components/favicon/content",
238 "//components/history/content/browser",
239 "//components/keyed_service/content",
240 "//components/navigation_interception",
241 "//components/password_manager/content/browser",
242 "//components/precache/content",
243 "//components/sessions:sessions_content",
244 "//components/storage_monitor",
245 "//components/translate/content/browser",
246 "//components/url_matcher",
247 "//components/visitedlink/browser",
248 "//components/visitedlink/common",
249 "//components/web_cache/browser",
250 "//components/web_modal",
251 "//content/app/resources",
254 "//mojo/environment:chromium",
259 "//third_party/WebKit/public:resources",
260 "//third_party/expat",
261 "//third_party/leveldatabase",
262 "//third_party/libaddressinput",
263 "//third_party/libyuv",
264 "//third_party/mojo/src/mojo/edk/system",
265 "//third_party/mojo/src/mojo/public/cpp/bindings",
266 "//third_party/mojo/src/mojo/public/js",
267 "//third_party/npapi",
269 "//third_party/smhasher:cityhash",
270 "//third_party/webrtc/modules/desktop_capture",
280 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
282 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
285 "CoreTelephony.framework",
286 "CoreText.framework",
287 "MobileCoreServices.framework",
288 "QuartzCore.framework",
296 if (is_win || is_mac) {
298 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
300 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) {
302 "net/disk_cache_dir_policy_handler.cc",
303 "net/disk_cache_dir_policy_handler.h",
306 if (!is_android && !is_ios && enable_configuration_policy) {
308 "download/download_dir_policy_handler.cc",
309 "download/download_dir_policy_handler.h",
314 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
316 #"app_shim" TODO(GYP)
317 #"browser_app_shim" TODO(GYP)
320 if (enable_extensions) {
321 public_deps += [ "//chrome/browser/extensions" ]
323 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
324 "//chrome/common/extensions/api",
325 "//chrome/common/extensions/api:api_registration",
326 "//components/proximity_auth/cryptauth",
327 "//extensions/components/javascript_dialog_extensions_client",
330 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
334 if (enable_background) {
335 sources += rebase_path(gypi_values.chrome_browser_background_sources,
338 if (!use_aura || is_win || is_chromeos) {
339 sources -= [ "background/background_mode_manager_aura.cc" ]
342 if (enable_task_manager) {
343 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
347 if (enable_spellcheck) {
348 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
351 deps += [ "//third_party/hunspell" ]
355 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
356 deps += [ "//components/nacl:nacl_browser" ]
359 if (enable_configuration_policy) {
361 rebase_path(gypi_values.chrome_browser_policy_shared_with_ios_sources,
365 "//components/policy",
366 "//components/policy/proto",
369 sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources,
374 sources += rebase_path(
375 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources,
379 if (is_win || is_mac || is_desktop_linux) {
380 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources,
384 if (is_android || is_ios) {
385 sources += rebase_path(gypi_values.chrome_browser_policy_mobile_sources,
390 "//chrome/browser/policy:path_parser",
391 "//net:net_browser_services",
395 # Configuration policy disabled.
396 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources,
401 if (enable_plugins) {
403 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
405 "//components/pdf/browser",
407 "//third_party/adobe/flash:flapper_version_h",
410 if (safe_browsing_mode != 0) {
412 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
416 "//chrome/browser/safe_browsing:chunk_proto",
417 "//chrome/browser/safe_browsing:metadata_proto",
418 "//chrome/browser/safe_browsing:report_proto",
420 if (safe_browsing_mode == 1) {
422 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
425 defines += [ "FULL_SAFE_BROWSING" ]
426 deps += [ "//chrome/common/safe_browsing:proto" ]
427 } else if (safe_browsing_mode == 2) {
428 defines += [ "MOBILE_SAFE_BROWSING" ]
434 "//device/media_transfer_protocol",
435 "//device/udev_linux",
438 if (is_linux && !is_chromeos) {
439 deps += [ "//third_party/speech-dispatcher" ]
443 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
446 deps += [ "//chrome/browser/chromeos" ]
449 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
456 "metrics/signin_status_metrics_provider_base.cc",
457 "metrics/signin_status_metrics_provider_base.h",
461 if (is_chromeos || is_ios) {
463 "metrics/signin_status_metrics_provider.cc",
464 "metrics/signin_status_metrics_provider.h",
469 configs += [ "//printing:cups" ]
471 if (is_desktop_linux) {
472 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
475 configs += [ ":gnome_keyring" ]
477 if (is_desktop_linux) {
478 sources += rebase_path(gypi_values.chrome_browser_libsecret_sources,
481 defines += [ "USE_LIBSECRET" ]
485 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
492 if (ui_compositor_image_transport) {
493 deps += [ "//ui/gl" ]
498 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
503 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
505 sources -= [ "password_manager/password_store_x.cc" ]
507 if (is_posix && !is_mac && !is_ios) {
509 "//chrome/app/chrome_crash_reporter_client.cc",
510 "//chrome/app/chrome_crash_reporter_client.h",
513 "//components/crash/app",
514 "//components/crash/browser",
519 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
521 sources -= [ "net/nss_context_linux.cc" ]
524 if (enable_notifications) {
525 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
529 sources += rebase_path(
530 gypi_values.chrome_browser_notifications_non_android_sources,
537 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
540 if (enable_basic_printing || enable_print_preview) {
541 # Some form of printing support.
542 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
545 deps += [ "//printing" ]
547 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
551 if (enable_print_preview) {
552 # Full printing on top of the above.
553 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
557 # Partial-only printing support.
559 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
564 if (enable_captive_portal_detection) {
565 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
569 if (enable_session_service) {
570 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
575 if (!is_android && !is_ios && !is_chromeos) {
577 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
580 if (is_android || is_ios) {
583 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
586 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
590 "//components/feedback",
598 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
601 "//components/cdm/browser",
602 "//components/enhanced_bookmarks",
603 "//components/resources:components_resources",
604 "//components/web_contents_delegate_android",
605 "//third_party/android_opengl/etc1",
606 "//third_party/libaddressinput:util",
609 "//third_party/libaddressinput",
610 "//components/storage_monitor",
611 "//components/web_modal",
613 defines += [ "ENABLE_DATA_REDUCTION_PROXY_DEBUGGING" ]
615 if (use_seccomp_bpf) {
616 defines += [ "USE_SECCOMP_BPF" ]
622 "//third_party/google_toolbox_for_mac",
623 "//third_party/mozilla",
626 "Accelerate.framework",
627 "AddressBook.framework",
628 "AudioUnit.framework",
629 "DiskArbitration.framework",
631 "ImageCaptureCore.framework",
633 "QuartzCore.framework",
634 "SecurityInterface.framework",
640 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
641 deps += [ "//rlz:rlz_lib" ]
645 # Temporary fix to break the browser target into smaller chunks so it
646 # will link with goma builds.
647 #["OS=="win" and chromium_win_pch==0", {
653 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
654 if (!is_chrome_branded) {
656 "google/did_run_updater_win.cc",
657 "google/did_run_updater_win.h",
662 "//ui/views/controls/webview",
665 ":chrome_process_finder",
666 "//chrome:version_header",
667 "//chrome/installer/util:strings",
669 "//chrome_elf:constants",
670 "//chrome_elf:dll_hash",
671 "//components/browser_watcher",
672 "//components/browser_watcher:browser_watcher_client",
674 "//third_party/iaccessible2",
675 "//third_party/isimpledom",
678 "//win8:metro_viewer",
680 libs += [ "credui.lib" ]
684 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
688 "//ui/views/controls/webview",
695 rebase_path(gypi_values.chrome_browser_linux_sources, ".", "//chrome")
698 "//build/config/linux:dbus",
699 "//build/config/linux:fontconfig",
704 configs += [ "//build/config/linux:x11" ]
705 deps += [ "//ui/gfx/x" ]
709 if (is_desktop_linux) {
710 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
714 if (enable_plugin_installation) {
716 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
720 if (enable_app_list) {
721 deps += [ "//ui/app_list" ]
723 if (enable_supervised_users) {
724 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
728 if (enable_supervised_users && enable_themes) {
729 sources += rebase_path(
730 gypi_values.chrome_browser_supervised_user_and_themes_sources,
736 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
738 if (enable_service_discovery) {
739 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
745 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
747 if (!enable_autofill_dialog || is_android || is_ios) {
749 "autofill/validation_rules_storage_factory.cc",
750 "autofill/validation_rules_storage_factory.h",
753 if (enable_wifi_bootstrapping) {
755 rebase_path(gypi_values.chrome_browser_wifi_bootstrapping_sources,
758 if (is_win || is_mac) {
759 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows
760 # and Mac, so this test is meaningless. Can we merge these lists?
761 sources += rebase_path(
762 gypi_values.chrome_browser_wifi_bootstrapping_win_mac_sources,
770 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
771 generate_jni("jni_headers") {
773 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
774 jni_package = "chrome"
779 source_set("chrome_process_finder") {
781 "chrome_process_finder_win.cc",
782 "chrome_process_finder_win.h",
786 "//chrome/browser/metro_utils",
787 "//chrome/common:constants",
789 if (enable_configuration_policy) {
790 deps += [ "//chrome/browser/policy:path_parser" ]
795 # GYP version: chrome/chrome_resources.gyp:chrome_resources
796 # (generate_browser_resources action)
798 source = "browser_resources.grd"
799 output_dir = "$root_gen_dir/chrome"
801 "grit/browser_resources.h",
802 "browser_resources.pak",
806 "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mojom.js"
810 "about_credits_file=" + rebase_path(about_credits_file, root_build_dir),
812 "additional_modules_list_file=" +
813 rebase_path(additional_modules_list_file, root_build_dir),
815 "omnibox_mojom_file=" + rebase_path(omnibox_mojom_file, root_build_dir),
820 ":chrome_internal_resources_gen",
827 # GYP version: chrome/chrome_resource.gyp:about_credits
828 action("about_credits") {
829 script = "//tools/licenses.py"
832 # This is not a complete list. TODO(phajdan.jr, dbeam): licenses.py needs to
833 # generate a .d file with all the licenses/credits that about:credits uses.
834 # Then about:credits will automatically rebuild when one of them changes.
835 # See: depfile in gn's documentation (gn help depfile).
836 "resources/about_credits.tmpl",
837 "resources/about_credits_entry.tmpl",
846 rebase_path(about_credits_file, root_build_dir),
850 # GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
851 if (is_chrome_branded) {
852 action("chrome_internal_resources_gen") {
853 script = "internal/transform_additional_modules_list.py"
855 "internal/resources/additional_modules_list.input",
858 additional_modules_list_file,
860 args = rebase_path(sources, root_build_dir) +
861 rebase_path(outputs, root_build_dir)
864 group("chrome_internal_resources_gen") {
869 # In GYP this is part of test_support_common.
870 source_set("test_support") {
873 # Always include this via the main test support target.
874 visibility = [ "//chrome/test:test_support" ]
877 "browsing_data/mock_browsing_data_appcache_helper.cc",
878 "browsing_data/mock_browsing_data_appcache_helper.h",
879 "browsing_data/mock_browsing_data_channel_id_helper.cc",
880 "browsing_data/mock_browsing_data_channel_id_helper.h",
881 "browsing_data/mock_browsing_data_cookie_helper.cc",
882 "browsing_data/mock_browsing_data_cookie_helper.h",
883 "browsing_data/mock_browsing_data_database_helper.cc",
884 "browsing_data/mock_browsing_data_database_helper.h",
885 "browsing_data/mock_browsing_data_file_system_helper.cc",
886 "browsing_data/mock_browsing_data_file_system_helper.h",
887 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
888 "browsing_data/mock_browsing_data_flash_lso_helper.h",
889 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
890 "browsing_data/mock_browsing_data_indexed_db_helper.h",
891 "browsing_data/mock_browsing_data_local_storage_helper.cc",
892 "browsing_data/mock_browsing_data_local_storage_helper.h",
893 "browsing_data/mock_browsing_data_quota_helper.cc",
894 "browsing_data/mock_browsing_data_quota_helper.h",
895 "browsing_data/mock_browsing_data_service_worker_helper.cc",
896 "browsing_data/mock_browsing_data_service_worker_helper.h",
897 "download/download_test_file_activity_observer.cc",
898 "download/download_test_file_activity_observer.h",
899 "download/test_download_shelf.cc",
900 "download/test_download_shelf.h",
901 "invalidation/fake_invalidation_service.cc",
902 "invalidation/fake_invalidation_service.h",
903 "media/fake_desktop_media_list.cc",
904 "media/fake_desktop_media_list.h",
905 "net/dns_probe_test_util.cc",
906 "net/dns_probe_test_util.h",
907 "net/url_request_mock_util.cc",
908 "net/url_request_mock_util.h",
909 "notifications/notification_test_util.cc",
910 "notifications/notification_test_util.h",
911 "password_manager/mock_password_store_service.cc",
912 "password_manager/mock_password_store_service.h",
913 "password_manager/null_password_store_service.cc",
914 "password_manager/null_password_store_service.h",
915 "password_manager/test_password_store_service.cc",
916 "password_manager/test_password_store_service.h",
917 "prefs/pref_service_mock_factory.cc",
918 "prefs/pref_service_mock_factory.h",
919 "profile_resetter/profile_resetter_test_base.cc",
920 "profile_resetter/profile_resetter_test_base.h",
921 "search_engines/template_url_service_factory_test_util.cc",
922 "search_engines/template_url_service_factory_test_util.h",
923 "search_engines/template_url_service_test_util.cc",
924 "search_engines/template_url_service_test_util.h",
925 "sessions/session_restore_test_helper.cc",
926 "sessions/session_restore_test_helper.h",
927 "sessions/session_service_test_helper.cc",
928 "sessions/session_service_test_helper.h",
929 "signin/fake_account_reconcilor.cc",
930 "signin/fake_account_reconcilor.h",
931 "signin/fake_account_tracker_service.cc",
932 "signin/fake_account_tracker_service.h",
933 "signin/fake_profile_oauth2_token_service.cc",
934 "signin/fake_profile_oauth2_token_service.h",
935 "signin/fake_profile_oauth2_token_service_builder.cc",
936 "signin/fake_profile_oauth2_token_service_builder.h",
937 "signin/fake_signin_manager.cc",
938 "signin/fake_signin_manager.h",
939 "ssl/ssl_client_auth_requestor_mock.cc",
940 "ssl/ssl_client_auth_requestor_mock.h",
941 "sync/profile_sync_components_factory_mock.cc",
942 "sync/profile_sync_components_factory_mock.h",
943 "sync/profile_sync_service_mock.cc",
944 "sync/profile_sync_service_mock.h",
945 "ui/webui/signin/login_ui_test_utils.cc",
946 "ui/webui/signin/login_ui_test_utils.h",
951 "//chrome/browser/ui:test_support",
954 "//base:prefs_test_support",
957 "//chrome/common/safe_browsing:proto",
958 "//components/invalidation",
959 "//components/invalidation:test_support",
960 "//components/password_manager/core/browser:test_support",
961 "//components/search_engines:test_support",
962 "//content/test:test_support",
963 "//chrome/app/theme:theme_resources",
964 "//net:test_support",
973 "//components/sessions:test_support",
974 "//google_apis:test_support",
978 if (enable_extensions) {
980 "extensions/extension_action_test_util.cc",
981 "extensions/extension_action_test_util.h",
983 deps += [ "//extensions:test_support" ]
988 "chromeos/app_mode/fake_cws.cc",
989 "chromeos/app_mode/fake_cws.h",
990 "chromeos/file_manager/fake_disk_mount_manager.cc",
991 "chromeos/file_manager/fake_disk_mount_manager.h",
992 "chromeos/input_method/mock_candidate_window_controller.cc",
993 "chromeos/input_method/mock_candidate_window_controller.h",
994 "chromeos/input_method/mock_input_method_engine.cc",
995 "chromeos/input_method/mock_input_method_engine.h",
996 "chromeos/input_method/mock_input_method_manager.cc",
997 "chromeos/input_method/mock_input_method_manager.h",
998 "chromeos/login/screens/mock_device_disabled_screen_actor.cc",
999 "chromeos/login/screens/mock_device_disabled_screen_actor.h",
1000 "chromeos/login/session/user_session_manager_test_api.cc",
1001 "chromeos/login/session/user_session_manager_test_api.h",
1002 "chromeos/login/test/js_checker.cc",
1003 "chromeos/login/test/js_checker.h",
1004 "chromeos/login/test/oobe_screen_waiter.cc",
1005 "chromeos/login/test/oobe_screen_waiter.h",
1006 "chromeos/login/ui/mock_login_display.cc",
1007 "chromeos/login/ui/mock_login_display.h",
1008 "chromeos/login/ui/mock_login_display_host.cc",
1009 "chromeos/login/ui/mock_login_display_host.h",
1010 "chromeos/login/users/avatar/mock_user_image_manager.cc",
1011 "chromeos/login/users/avatar/mock_user_image_manager.h",
1012 "chromeos/login/users/fake_chrome_user_manager.cc",
1013 "chromeos/login/users/fake_chrome_user_manager.h",
1014 "chromeos/login/users/fake_supervised_user_manager.cc",
1015 "chromeos/login/users/fake_supervised_user_manager.h",
1016 "chromeos/login/users/mock_user_manager.cc",
1017 "chromeos/login/users/mock_user_manager.h",
1018 "chromeos/net/network_portal_detector_test_utils.cc",
1019 "chromeos/net/network_portal_detector_test_utils.h",
1020 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
1021 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
1022 "chromeos/policy/device_policy_builder.cc",
1023 "chromeos/policy/device_policy_builder.h",
1024 "chromeos/policy/fake_consumer_management_service.cc",
1025 "chromeos/policy/fake_consumer_management_service.h",
1026 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
1027 "chromeos/policy/fake_device_cloud_policy_initializer.h",
1028 "chromeos/policy/fake_device_cloud_policy_manager.cc",
1029 "chromeos/policy/fake_device_cloud_policy_manager.h",
1030 "chromeos/policy/stub_enterprise_install_attributes.cc",
1031 "chromeos/policy/stub_enterprise_install_attributes.h",
1032 "chromeos/settings/device_settings_test_helper.cc",
1033 "chromeos/settings/device_settings_test_helper.h",
1034 "chromeos/system/fake_input_device_settings.cc",
1035 "chromeos/system/fake_input_device_settings.h",
1037 configs += [ "//build/config/linux:dbus" ]
1038 deps += [ "//chromeos:test_support" ]
1041 if (enable_configuration_policy) {
1043 "policy/test/local_policy_test_server.cc",
1044 "policy/test/local_policy_test_server.h",
1047 "//components/policy:policy_component_test_support",
1048 "//components/policy:test_support",
1052 if (safe_browsing_mode == 1) {
1054 "extensions/fake_safe_browsing_database_manager.cc",
1055 "extensions/fake_safe_browsing_database_manager.h",
1059 if (enable_extensions) {
1061 "drive/dummy_drive_service.cc",
1062 "drive/dummy_drive_service.h",
1063 "drive/fake_drive_service.cc",
1064 "drive/fake_drive_service.h",
1065 "drive/test_util.cc",
1066 "drive/test_util.h",
1067 "extensions/api/messaging/native_messaging_test_util.cc",
1068 "extensions/api/messaging/native_messaging_test_util.h",
1069 "extensions/extension_notification_observer.cc",
1070 "extensions/extension_notification_observer.h",
1071 "extensions/mock_extension_special_storage_policy.cc",
1072 "extensions/mock_extension_special_storage_policy.h",
1073 "extensions/test_blacklist.cc",
1074 "extensions/test_blacklist.h",
1075 "extensions/test_blacklist_state_fetcher.cc",
1076 "extensions/test_blacklist_state_fetcher.h",
1077 "extensions/test_extension_dir.cc",
1078 "extensions/test_extension_dir.h",
1079 "extensions/test_extension_environment.cc",
1080 "extensions/test_extension_environment.h",
1081 "extensions/test_extension_prefs.cc",
1082 "extensions/test_extension_prefs.h",
1083 "extensions/test_extension_service.cc",
1084 "extensions/test_extension_service.h",
1085 "extensions/test_extension_system.cc",
1086 "extensions/test_extension_system.h",
1087 "media_galleries/media_galleries_test_util.cc",
1088 "media_galleries/media_galleries_test_util.h",
1090 deps += [ "//components/storage_monitor:test_support" ]
1095 "local_discovery/test_service_discovery_client.cc",
1096 "local_discovery/test_service_discovery_client.h",
1100 if (enable_app_list) {
1102 "ui/app_list/test/chrome_app_list_test_support.cc",
1103 "ui/app_list/test/chrome_app_list_test_support.h",
1104 "ui/app_list/test/test_app_list_controller_delegate.cc",
1105 "ui/app_list/test/test_app_list_controller_delegate.h",
1109 if (enable_wifi_bootstrapping) {
1111 "local_discovery/wifi/mock_wifi_manager.cc",
1112 "local_discovery/wifi/mock_wifi_manager.h",