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/net:cert_logger_proto",
78 "//chrome/browser/net:probe_message_proto",
79 "//chrome/browser/ui",
81 "//chrome/common/net",
82 "//components/autofill/core/browser",
83 "//components/bookmarks/browser",
84 "//components/captive_portal",
85 "//components/cloud_devices/common",
86 "//components/component_updater",
87 "//components/content_settings/core/browser",
88 "//components/content_settings/core/common",
89 "//components/crx_file",
90 "//components/data_reduction_proxy/core/browser",
91 "//components/device_event_log",
92 "//components/domain_reliability",
93 "//components/enhanced_bookmarks",
94 "//components/favicon_base",
95 "//components/favicon/core",
96 "//components/feedback",
97 "//components/gcm_driver",
98 "//components/google/core/browser",
99 "//components/handoff",
100 "//components/history/core/browser",
101 "//components/history/core/browser:proto",
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/history/content/browser",
238 "//components/keyed_service/content",
239 "//components/navigation_interception",
240 "//components/password_manager/content/browser",
241 "//components/precache/content",
242 "//components/sessions:sessions_content",
243 "//components/storage_monitor",
244 "//components/translate/content/browser",
245 "//components/url_matcher",
246 "//components/visitedlink/browser",
247 "//components/visitedlink/common",
248 "//components/web_cache/browser",
249 "//components/web_modal",
250 "//content/app/resources",
253 "//mojo/environment:chromium",
258 "//third_party/WebKit/public:resources",
259 "//third_party/expat",
260 "//third_party/leveldatabase",
261 "//third_party/libaddressinput",
262 "//third_party/libyuv",
263 "//third_party/mojo/src/mojo/edk/system",
264 "//third_party/mojo/src/mojo/public/cpp/bindings",
265 "//third_party/mojo/src/mojo/public/js",
266 "//third_party/npapi",
268 "//third_party/smhasher:cityhash",
269 "//third_party/webrtc/modules/desktop_capture",
279 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
281 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
284 "CoreTelephony.framework",
285 "CoreText.framework",
286 "MobileCoreServices.framework",
287 "QuartzCore.framework",
295 if (is_win || is_mac) {
297 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
299 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) {
301 "net/disk_cache_dir_policy_handler.cc",
302 "net/disk_cache_dir_policy_handler.h",
305 if (!is_android && !is_ios && enable_configuration_policy) {
307 "download/download_dir_policy_handler.cc",
308 "download/download_dir_policy_handler.h",
313 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
315 #"app_shim" TODO(GYP)
316 #"browser_app_shim" TODO(GYP)
319 if (enable_extensions) {
320 public_deps += [ "//chrome/browser/extensions" ]
322 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
323 "//chrome/common/extensions/api",
324 "//chrome/common/extensions/api:api_registration",
325 "//components/proximity_auth/cryptauth",
326 "//extensions/components/javascript_dialog_extensions_client",
329 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
333 if (enable_background) {
334 sources += rebase_path(gypi_values.chrome_browser_background_sources,
337 if (!use_aura || is_win || is_chromeos) {
338 sources -= [ "background/background_mode_manager_aura.cc" ]
340 defines += [ "ENABLE_BACKGROUND=1" ]
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,
389 deps += [ "//chrome/browser/policy:path_parser" ]
392 # Configuration policy disabled.
393 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources,
398 if (enable_plugins) {
400 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
402 "//components/pdf/browser",
404 "//third_party/adobe/flash:flapper_version_h",
407 if (safe_browsing_mode != 0) {
409 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
413 "//chrome/browser/safe_browsing:chunk_proto",
414 "//chrome/browser/safe_browsing:metadata_proto",
415 "//chrome/browser/safe_browsing:report_proto",
417 if (safe_browsing_mode == 1) {
419 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
422 defines += [ "FULL_SAFE_BROWSING" ]
423 deps += [ "//chrome/common/safe_browsing:proto" ]
424 } else if (safe_browsing_mode == 2) {
425 defines += [ "MOBILE_SAFE_BROWSING" ]
431 "//device/media_transfer_protocol",
432 "//device/udev_linux",
435 if (is_linux && !is_chromeos) {
436 deps += [ "//third_party/speech-dispatcher" ]
440 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
443 deps += [ "//chrome/browser/chromeos" ]
446 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
453 "metrics/signin_status_metrics_provider_base.cc",
454 "metrics/signin_status_metrics_provider_base.h",
458 if (is_chromeos || is_ios) {
460 "metrics/signin_status_metrics_provider.cc",
461 "metrics/signin_status_metrics_provider.h",
466 configs += [ "//printing:cups" ]
468 if (is_desktop_linux) {
469 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
472 configs += [ ":gnome_keyring" ]
474 if (is_desktop_linux) {
475 sources += rebase_path(gypi_values.chrome_browser_libsecret_sources,
478 defines += [ "USE_LIBSECRET" ]
482 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
489 if (ui_compositor_image_transport) {
490 deps += [ "//ui/gl" ]
495 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
500 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
502 sources -= [ "password_manager/password_store_x.cc" ]
504 if (is_posix && !is_mac && !is_ios) {
506 "//chrome/app/chrome_crash_reporter_client.cc",
507 "//chrome/app/chrome_crash_reporter_client.h",
510 "//components/crash/app",
511 "//components/crash/browser",
516 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
518 sources -= [ "net/nss_context_linux.cc" ]
521 if (enable_notifications) {
522 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
526 sources += rebase_path(
527 gypi_values.chrome_browser_notifications_non_android_sources,
534 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
537 if (enable_basic_printing || enable_print_preview) {
538 # Some form of printing support.
539 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
542 deps += [ "//printing" ]
544 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
548 if (enable_print_preview) {
549 # Full printing on top of the above.
550 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
554 # Partial-only printing support.
556 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
561 if (enable_captive_portal_detection) {
562 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
566 if (enable_session_service) {
567 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
572 if (!is_android && !is_ios && !is_chromeos) {
574 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
577 if (is_android || is_ios) {
580 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
583 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
594 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
597 "//components/cdm/browser",
598 "//components/enhanced_bookmarks",
599 "//components/resources:components_resources",
600 "//components/web_contents_delegate_android",
601 "//third_party/android_opengl/etc1",
602 "//third_party/libaddressinput:util",
605 "//third_party/libaddressinput",
606 "//components/feedback",
607 "//components/storage_monitor",
608 "//components/web_modal",
610 defines += [ "ENABLE_DATA_REDUCTION_PROXY_DEBUGGING" ]
615 "//third_party/google_toolbox_for_mac",
616 "//third_party/mozilla",
619 "Accelerate.framework",
620 "AddressBook.framework",
621 "AudioUnit.framework",
622 "DiskArbitration.framework",
624 "ImageCaptureCore.framework",
626 "QuartzCore.framework",
627 "SecurityInterface.framework",
633 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
634 deps += [ "//rlz:rlz_lib" ]
638 # Temporary fix to break the browser target into smaller chunks so it
639 # will link with goma builds.
640 #["OS=="win" and chromium_win_pch==0", {
646 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
647 if (!is_chrome_branded) {
649 "google/did_run_updater_win.cc",
650 "google/did_run_updater_win.h",
655 "//ui/views/controls/webview",
658 ":chrome_process_finder",
659 "//chrome:version_header",
660 "//chrome/installer/util:strings",
662 "//chrome_elf:constants",
663 "//chrome_elf:dll_hash",
664 "//components/browser_watcher",
665 "//components/browser_watcher:browser_watcher_client",
667 "//third_party/iaccessible2",
668 "//third_party/isimpledom",
671 "//win8:metro_viewer",
673 libs += [ "credui.lib" ]
677 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
681 "//ui/views/controls/webview",
688 rebase_path(gypi_values.chrome_browser_linux_sources, ".", "//chrome")
691 "//build/config/linux:dbus",
692 "//build/config/linux:fontconfig",
697 configs += [ "//build/config/linux:x11" ]
698 deps += [ "//ui/gfx/x" ]
702 if (is_desktop_linux) {
703 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
707 if (enable_plugin_installation) {
709 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
713 if (enable_app_list) {
714 deps += [ "//ui/app_list" ]
716 if (enable_supervised_users) {
717 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
721 if (enable_supervised_users && enable_themes) {
722 sources += rebase_path(
723 gypi_values.chrome_browser_supervised_user_and_themes_sources,
729 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
731 if (enable_service_discovery) {
732 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
738 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
740 if (!enable_autofill_dialog || is_android || is_ios) {
742 "autofill/validation_rules_storage_factory.cc",
743 "autofill/validation_rules_storage_factory.h",
746 if (enable_wifi_bootstrapping) {
748 rebase_path(gypi_values.chrome_browser_wifi_bootstrapping_sources,
751 if (is_win || is_mac) {
752 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows
753 # and Mac, so this test is meaningless. Can we merge these lists?
754 sources += rebase_path(
755 gypi_values.chrome_browser_wifi_bootstrapping_win_mac_sources,
763 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
764 generate_jni("jni_headers") {
766 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
767 jni_package = "chrome"
772 source_set("chrome_process_finder") {
774 "chrome_process_finder_win.cc",
775 "chrome_process_finder_win.h",
779 "//chrome/browser/metro_utils",
780 "//chrome/common:constants",
782 if (enable_configuration_policy) {
783 deps += [ "//chrome/browser/policy:path_parser" ]
788 # GYP version: chrome/chrome_resources.gyp:chrome_resources
789 # (generate_browser_resources action)
791 source = "browser_resources.grd"
792 output_dir = "$root_gen_dir/chrome"
794 "grit/browser_resources.h",
795 "browser_resources.pak",
799 "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mojom.js"
803 "about_credits_file=" + rebase_path(about_credits_file, root_build_dir),
805 "additional_modules_list_file=" +
806 rebase_path(additional_modules_list_file, root_build_dir),
808 "omnibox_mojom_file=" + rebase_path(omnibox_mojom_file, root_build_dir),
813 ":chrome_internal_resources_gen",
820 # GYP version: chrome/chrome_resource.gyp:about_credits
821 action("about_credits") {
822 script = "//tools/licenses.py"
825 # This is not a complete list. TODO(phajdan.jr, dbeam): licenses.py needs to
826 # generate a .d file with all the licenses/credits that about:credits uses.
827 # Then about:credits will automatically rebuild when one of them changes.
828 # See: depfile in gn's documentation (gn help depfile).
829 "resources/about_credits.tmpl",
830 "resources/about_credits_entry.tmpl",
839 rebase_path(about_credits_file, root_build_dir),
843 # GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
844 if (is_chrome_branded) {
845 action("chrome_internal_resources_gen") {
846 script = "internal/transform_additional_modules_list.py"
848 "internal/resources/additional_modules_list.input",
851 additional_modules_list_file,
853 args = rebase_path(sources, root_build_dir) +
854 rebase_path(outputs, root_build_dir)
857 group("chrome_internal_resources_gen") {
862 # In GYP this is part of test_support_common.
863 source_set("test_support") {
866 # Always include this via the main test support target.
867 visibility = [ "//chrome/test:test_support" ]
870 "browsing_data/mock_browsing_data_appcache_helper.cc",
871 "browsing_data/mock_browsing_data_appcache_helper.h",
872 "browsing_data/mock_browsing_data_channel_id_helper.cc",
873 "browsing_data/mock_browsing_data_channel_id_helper.h",
874 "browsing_data/mock_browsing_data_cookie_helper.cc",
875 "browsing_data/mock_browsing_data_cookie_helper.h",
876 "browsing_data/mock_browsing_data_database_helper.cc",
877 "browsing_data/mock_browsing_data_database_helper.h",
878 "browsing_data/mock_browsing_data_file_system_helper.cc",
879 "browsing_data/mock_browsing_data_file_system_helper.h",
880 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
881 "browsing_data/mock_browsing_data_flash_lso_helper.h",
882 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
883 "browsing_data/mock_browsing_data_indexed_db_helper.h",
884 "browsing_data/mock_browsing_data_local_storage_helper.cc",
885 "browsing_data/mock_browsing_data_local_storage_helper.h",
886 "browsing_data/mock_browsing_data_quota_helper.cc",
887 "browsing_data/mock_browsing_data_quota_helper.h",
888 "browsing_data/mock_browsing_data_service_worker_helper.cc",
889 "browsing_data/mock_browsing_data_service_worker_helper.h",
890 "download/download_test_file_activity_observer.cc",
891 "download/download_test_file_activity_observer.h",
892 "download/test_download_shelf.cc",
893 "download/test_download_shelf.h",
894 "invalidation/fake_invalidation_service.cc",
895 "invalidation/fake_invalidation_service.h",
896 "media/fake_desktop_media_list.cc",
897 "media/fake_desktop_media_list.h",
898 "net/dns_probe_test_util.cc",
899 "net/dns_probe_test_util.h",
900 "net/url_request_mock_util.cc",
901 "net/url_request_mock_util.h",
902 "notifications/notification_test_util.cc",
903 "notifications/notification_test_util.h",
904 "password_manager/mock_password_store_service.cc",
905 "password_manager/mock_password_store_service.h",
906 "password_manager/null_password_store_service.cc",
907 "password_manager/null_password_store_service.h",
908 "password_manager/test_password_store_service.cc",
909 "password_manager/test_password_store_service.h",
910 "prefs/pref_service_mock_factory.cc",
911 "prefs/pref_service_mock_factory.h",
912 "profile_resetter/profile_resetter_test_base.cc",
913 "profile_resetter/profile_resetter_test_base.h",
914 "search_engines/template_url_service_factory_test_util.cc",
915 "search_engines/template_url_service_factory_test_util.h",
916 "search_engines/template_url_service_test_util.cc",
917 "search_engines/template_url_service_test_util.h",
918 "sessions/session_restore_test_helper.cc",
919 "sessions/session_restore_test_helper.h",
920 "sessions/session_service_test_helper.cc",
921 "sessions/session_service_test_helper.h",
922 "signin/fake_account_reconcilor.cc",
923 "signin/fake_account_reconcilor.h",
924 "signin/fake_account_tracker_service.cc",
925 "signin/fake_account_tracker_service.h",
926 "signin/fake_profile_oauth2_token_service.cc",
927 "signin/fake_profile_oauth2_token_service.h",
928 "signin/fake_profile_oauth2_token_service_builder.cc",
929 "signin/fake_profile_oauth2_token_service_builder.h",
930 "signin/fake_signin_manager.cc",
931 "signin/fake_signin_manager.h",
932 "ssl/ssl_client_auth_requestor_mock.cc",
933 "ssl/ssl_client_auth_requestor_mock.h",
934 "sync/profile_sync_components_factory_mock.cc",
935 "sync/profile_sync_components_factory_mock.h",
936 "sync/profile_sync_service_mock.cc",
937 "sync/profile_sync_service_mock.h",
938 "ui/webui/signin/login_ui_test_utils.cc",
939 "ui/webui/signin/login_ui_test_utils.h",
944 "//chrome/browser/ui:test_support",
947 "//base:prefs_test_support",
950 "//chrome/common/safe_browsing:proto",
951 "//components/invalidation",
952 "//components/invalidation:test_support",
953 "//components/password_manager/core/browser:test_support",
954 "//components/search_engines:test_support",
955 "//content/test:test_support",
956 "//chrome/app/theme:theme_resources",
957 "//net:test_support",
966 "//components/sessions:test_support",
967 "//google_apis:test_support",
971 if (enable_extensions) {
973 "extensions/extension_action_test_util.cc",
974 "extensions/extension_action_test_util.h",
976 deps += [ "//extensions:test_support" ]
981 "chromeos/app_mode/fake_cws.cc",
982 "chromeos/app_mode/fake_cws.h",
983 "chromeos/file_manager/fake_disk_mount_manager.cc",
984 "chromeos/file_manager/fake_disk_mount_manager.h",
985 "chromeos/input_method/mock_candidate_window_controller.cc",
986 "chromeos/input_method/mock_candidate_window_controller.h",
987 "chromeos/input_method/mock_input_method_engine.cc",
988 "chromeos/input_method/mock_input_method_engine.h",
989 "chromeos/input_method/mock_input_method_manager.cc",
990 "chromeos/input_method/mock_input_method_manager.h",
991 "chromeos/login/screens/mock_device_disabled_screen_actor.cc",
992 "chromeos/login/screens/mock_device_disabled_screen_actor.h",
993 "chromeos/login/session/user_session_manager_test_api.cc",
994 "chromeos/login/session/user_session_manager_test_api.h",
995 "chromeos/login/test/js_checker.cc",
996 "chromeos/login/test/js_checker.h",
997 "chromeos/login/test/oobe_screen_waiter.cc",
998 "chromeos/login/test/oobe_screen_waiter.h",
999 "chromeos/login/ui/mock_login_display.cc",
1000 "chromeos/login/ui/mock_login_display.h",
1001 "chromeos/login/ui/mock_login_display_host.cc",
1002 "chromeos/login/ui/mock_login_display_host.h",
1003 "chromeos/login/users/avatar/mock_user_image_manager.cc",
1004 "chromeos/login/users/avatar/mock_user_image_manager.h",
1005 "chromeos/login/users/fake_chrome_user_manager.cc",
1006 "chromeos/login/users/fake_chrome_user_manager.h",
1007 "chromeos/login/users/fake_supervised_user_manager.cc",
1008 "chromeos/login/users/fake_supervised_user_manager.h",
1009 "chromeos/login/users/mock_user_manager.cc",
1010 "chromeos/login/users/mock_user_manager.h",
1011 "chromeos/net/network_portal_detector_test_utils.cc",
1012 "chromeos/net/network_portal_detector_test_utils.h",
1013 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
1014 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
1015 "chromeos/policy/device_policy_builder.cc",
1016 "chromeos/policy/device_policy_builder.h",
1017 "chromeos/policy/fake_consumer_management_service.cc",
1018 "chromeos/policy/fake_consumer_management_service.h",
1019 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
1020 "chromeos/policy/fake_device_cloud_policy_initializer.h",
1021 "chromeos/policy/fake_device_cloud_policy_manager.cc",
1022 "chromeos/policy/fake_device_cloud_policy_manager.h",
1023 "chromeos/policy/stub_enterprise_install_attributes.cc",
1024 "chromeos/policy/stub_enterprise_install_attributes.h",
1025 "chromeos/settings/device_settings_test_helper.cc",
1026 "chromeos/settings/device_settings_test_helper.h",
1027 "chromeos/system/fake_input_device_settings.cc",
1028 "chromeos/system/fake_input_device_settings.h",
1030 configs += [ "//build/config/linux:dbus" ]
1031 deps += [ "//chromeos:test_support" ]
1034 if (enable_configuration_policy) {
1036 "policy/test/local_policy_test_server.cc",
1037 "policy/test/local_policy_test_server.h",
1040 "//components/policy:policy_component_test_support",
1041 "//components/policy:test_support",
1045 if (safe_browsing_mode == 1) {
1047 "extensions/fake_safe_browsing_database_manager.cc",
1048 "extensions/fake_safe_browsing_database_manager.h",
1052 if (enable_extensions) {
1054 "drive/dummy_drive_service.cc",
1055 "drive/dummy_drive_service.h",
1056 "drive/fake_drive_service.cc",
1057 "drive/fake_drive_service.h",
1058 "drive/test_util.cc",
1059 "drive/test_util.h",
1060 "extensions/api/messaging/native_messaging_test_util.cc",
1061 "extensions/api/messaging/native_messaging_test_util.h",
1062 "extensions/extension_notification_observer.cc",
1063 "extensions/extension_notification_observer.h",
1064 "extensions/mock_extension_special_storage_policy.cc",
1065 "extensions/mock_extension_special_storage_policy.h",
1066 "extensions/test_blacklist.cc",
1067 "extensions/test_blacklist.h",
1068 "extensions/test_blacklist_state_fetcher.cc",
1069 "extensions/test_blacklist_state_fetcher.h",
1070 "extensions/test_extension_dir.cc",
1071 "extensions/test_extension_dir.h",
1072 "extensions/test_extension_environment.cc",
1073 "extensions/test_extension_environment.h",
1074 "extensions/test_extension_prefs.cc",
1075 "extensions/test_extension_prefs.h",
1076 "extensions/test_extension_service.cc",
1077 "extensions/test_extension_service.h",
1078 "extensions/test_extension_system.cc",
1079 "extensions/test_extension_system.h",
1080 "media_galleries/media_galleries_test_util.cc",
1081 "media_galleries/media_galleries_test_util.h",
1083 deps += [ "//components/storage_monitor:test_support" ]
1088 "local_discovery/test_service_discovery_client.cc",
1089 "local_discovery/test_service_discovery_client.h",
1093 if (enable_app_list) {
1095 "ui/app_list/test/chrome_app_list_test_support.cc",
1096 "ui/app_list/test/chrome_app_list_test_support.h",
1097 "ui/app_list/test/test_app_list_controller_delegate.cc",
1098 "ui/app_list/test/test_app_list_controller_delegate.h",
1102 if (enable_wifi_bootstrapping) {
1104 "local_discovery/wifi/mock_wifi_manager.cc",
1105 "local_discovery/wifi/mock_wifi_manager.h",