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")
10 # //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which
11 # produces a conflict for the "grit" template so we have to only include one.
13 import("//build/config/android/rules.gni")
15 import("//tools/grit/grit_rule.gni")
17 if (is_desktop_linux) {
18 import("//build/config/linux/pkg_config.gni")
21 about_credits_file = "$target_gen_dir/about_credits.html"
22 additional_modules_list_file =
23 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt"
25 gypi_values = exec_script("//build/gypi_to_gn.py",
26 [ rebase_path("../chrome_browser.gypi") ],
28 [ "../chrome_browser.gypi" ])
30 if (is_desktop_linux) {
31 # Gnome-keyring is normally dynamically loaded. The gnome_keyring config
33 pkg_config("gnome_keyring") {
34 packages = [ "gnome-keyring-1" ]
37 "DLOPEN_GNOME_KEYRING",
42 # If you want to link gnome-keyring directly (use only for unit tests)
43 # ADDITIONALLY add this config on top of ":gnome_keyring". pkg-config is a
44 # bit slow, so prefer not to run it again. In practice, gnome-keyring's libs
45 # are just itself and common gnome ones we link already, so we can get away
46 # with additionally just coding the library name here.
47 config("gnome_keyring_direct") {
48 libs = [ "gnome-keyring" ]
52 source_set("browser") {
54 "//build/config/compiler:wexit_time_destructors",
55 "//third_party/WebKit/public:debug_devtools",
62 # iOS/non-iOS shared deps. New dependencies should generally be added in the
65 "//components/autofill/core/browser",
66 "//content/public/browser",
72 "//chrome:extra_resources",
75 "//chrome/app:generated_resources_map",
76 "//chrome/app/resources:platform_locale_settings",
77 "//chrome/app/theme:theme_resources",
78 "//chrome/browser/autocomplete:in_memory_url_index_cache_proto",
79 "//chrome/browser/net:encrypted_cert_logger_proto",
80 "//chrome/browser/net:probe_message_proto",
81 "//chrome/browser/ssl:cert_logger_proto",
82 "//chrome/browser/ui",
84 "//chrome/common/net",
85 "//components/autofill/core/browser",
86 "//components/bookmarks/browser",
87 "//components/bookmarks/managed",
88 "//components/captive_portal",
89 "//components/cloud_devices/common",
90 "//components/component_updater",
91 "//components/content_settings/content/common",
92 "//components/content_settings/core/browser",
93 "//components/content_settings/core/common",
94 "//components/crx_file",
95 "//components/data_reduction_proxy/core/browser",
96 "//components/device_event_log",
97 "//components/domain_reliability",
98 "//components/enhanced_bookmarks",
99 "//components/favicon/core",
100 "//components/favicon_base",
101 "//components/gcm_driver",
102 "//components/gcm_driver/instance_id",
103 "//components/google/core/browser",
104 "//components/guest_view:guest_view",
105 "//components/handoff",
106 "//components/history/core/browser",
107 "//components/history/core/common",
108 "//components/infobars/core",
109 "//components/invalidation",
110 "//components/metrics:gpu",
111 "//components/metrics:net",
112 "//components/metrics:profiler",
113 "//components/metrics/proto:proto",
114 "//components/mime_util",
115 "//components/navigation_metrics",
116 "//components/network_time",
117 "//components/omnibox",
118 "//components/os_crypt",
119 "//components/packed_ct_ev_whitelist",
120 "//components/password_manager/core/browser",
121 "//components/password_manager/core/common",
122 "//components/policy:policy_component",
123 "//components/precache/core",
124 "//components/query_parser",
125 "//components/rappor",
126 "//components/renderer_context_menu",
127 "//components/search",
128 "//components/search_engines",
129 "//components/search_provider_logos",
130 "//components/signin/core/browser",
131 "//components/startup_metric_utils",
132 "//components/strings",
133 "//components/suggestions",
134 "//components/sync_driver",
135 "//components/translate/core/browser",
136 "//components/translate/core/common",
137 "//components/ui/zoom:ui_zoom",
139 "//components/update_client",
140 "//components/url_fixer",
141 "//components/user_prefs",
142 "//components/variations",
143 "//components/variations/net",
144 "//components/webdata/common",
145 "//components/webdata_services",
146 "//components/web_resource",
147 "//content/public/browser",
148 "//content/public/common",
149 "//courgette:courgette_lib",
157 "//third_party/cacheinvalidation",
159 "//third_party/libxml",
160 "//third_party/libjingle",
161 "//third_party/widevine/cdm:version_h",
162 "//third_party/zlib",
163 "//third_party/zlib:minizip",
164 "//third_party/zlib:zip",
166 "//ui/events:events_base",
169 "//ui/message_center",
170 "//ui/shell_dialogs",
176 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
180 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
181 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
184 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
187 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
190 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
193 sources += rebase_path(gypi_values.chrome_browser_engagement_sources,
197 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
199 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
201 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
203 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
205 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
206 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
209 sources += rebase_path(gypi_values.chrome_browser_permissions_sources,
212 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
216 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
217 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
220 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
223 sources += rebase_path(gypi_values.chrome_browser_services_sources,
227 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
229 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
231 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
233 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
234 sources += rebase_path(gypi_values.chrome_browser_web_resource_sources,
241 "//chrome/app:generated_resources_map",
242 "//chrome/app/theme:theme_resources",
243 "//chrome/browser/devtools",
244 "//chrome/browser/resources:component_extension_resources",
245 "//chrome/installer/util",
246 "//components/app_modal",
247 "//components/autofill/content/browser",
248 "//components/browsing_data",
249 "//components/data_reduction_proxy/content/browser",
250 "//components/devtools_discovery",
251 "//components/devtools_http_handler",
252 "//components/dom_distiller/content",
253 "//components/favicon/content",
254 "//components/history/content/browser",
255 "//components/keyed_service/content",
256 "//components/navigation_interception",
257 "//components/password_manager/content/browser",
258 "//components/plugins/common",
259 "//components/precache/content",
260 "//components/sessions",
261 "//components/storage_monitor",
262 "//components/translate/content/browser",
263 "//components/url_matcher",
264 "//components/visitedlink/browser",
265 "//components/visitedlink/common",
266 "//components/web_cache/browser",
267 "//components/web_modal",
268 "//content/app/resources",
271 "//mojo/environment:chromium",
276 "//third_party/WebKit/public:image_resources",
277 "//third_party/WebKit/public:resources",
278 "//third_party/expat",
279 "//third_party/leveldatabase",
280 "//third_party/libaddressinput",
281 "//third_party/libyuv",
282 "//third_party/mojo/src/mojo/edk/system",
283 "//third_party/mojo/src/mojo/public/cpp/bindings",
284 "//third_party/mojo/src/mojo/public/js",
285 "//third_party/npapi",
287 "//third_party/smhasher:cityhash",
288 "//third_party/webrtc/modules/desktop_capture",
298 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
300 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
303 "CoreTelephony.framework",
304 "CoreText.framework",
305 "MobileCoreServices.framework",
306 "QuartzCore.framework",
314 if (is_win || is_mac) {
316 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
318 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) {
320 "net/disk_cache_dir_policy_handler.cc",
321 "net/disk_cache_dir_policy_handler.h",
324 if (!is_android && !is_ios && enable_configuration_policy) {
326 "download/download_dir_policy_handler.cc",
327 "download/download_dir_policy_handler.h",
332 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
334 #"app_shim" TODO(GYP)
335 #"browser_app_shim" TODO(GYP)
338 if (enable_extensions) {
339 public_deps += [ "//chrome/browser/extensions" ]
341 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
342 "//chrome/common/extensions/api",
343 "//chrome/common/extensions/api:api_registration",
344 "//components/proximity_auth/ble",
345 "//components/proximity_auth/cryptauth",
346 "//extensions/components/javascript_dialog_extensions_client",
349 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
353 if (enable_background) {
354 sources += rebase_path(gypi_values.chrome_browser_background_sources,
357 if (!use_aura || is_win || is_chromeos) {
358 sources -= [ "background/background_mode_manager_aura.cc" ]
361 if (enable_task_manager) {
362 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
366 if (enable_spellcheck) {
367 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
370 deps += [ "//third_party/hunspell" ]
374 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
375 deps += [ "//components/nacl:nacl_browser" ]
378 if (enable_configuration_policy) {
380 rebase_path(gypi_values.chrome_browser_policy_shared_with_ios_sources,
384 "//components/policy",
385 "//components/policy/proto",
388 sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources,
393 sources += rebase_path(
394 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources,
398 if (is_win || is_mac || is_desktop_linux) {
399 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources,
403 if (enable_plugins) {
404 sources += rebase_path(gypi_values.chrome_browser_policy_plugin_sources,
408 if (is_android || is_ios) {
409 sources += rebase_path(gypi_values.chrome_browser_policy_mobile_sources,
414 "//chrome/browser/policy:path_parser",
415 "//net:net_browser_services",
419 # Configuration policy disabled.
420 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources,
425 if (enable_plugins) {
427 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
429 "//components/pdf/browser",
431 "//third_party/adobe/flash:flapper_version_h",
434 if (safe_browsing_mode != 0) {
436 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
440 "//chrome/browser/safe_browsing:chunk_proto",
441 "//chrome/browser/safe_browsing:metadata_proto",
442 "//chrome/browser/safe_browsing:report_proto",
444 if (safe_browsing_mode == 1) {
446 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
449 deps += [ "//chrome/common/safe_browsing:proto" ]
450 } else if (safe_browsing_mode == 3) {
451 sources += rebase_path(
452 gypi_values.chrome_browser_safe_browsing_mobile_extended_sources,
460 "//device/media_transfer_protocol",
461 "//device/udev_linux",
464 if (is_linux && !is_chromeos) {
465 deps += [ "//third_party/speech-dispatcher" ]
469 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
472 deps += [ "//chrome/browser/chromeos" ]
475 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
482 "metrics/signin_status_metrics_provider_base.cc",
483 "metrics/signin_status_metrics_provider_base.h",
487 if (is_chromeos || is_ios) {
489 "metrics/signin_status_metrics_provider.cc",
490 "metrics/signin_status_metrics_provider.h",
495 configs += [ "//printing:cups" ]
497 if (is_desktop_linux) {
498 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
501 configs += [ ":gnome_keyring" ]
503 if (is_desktop_linux) {
504 sources += rebase_path(gypi_values.chrome_browser_libsecret_sources,
507 defines += [ "USE_LIBSECRET" ]
511 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
518 if (ui_compositor_image_transport) {
519 deps += [ "//ui/gl" ]
524 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
529 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
531 sources -= [ "password_manager/password_store_x.cc" ]
533 if (is_posix && !is_mac && !is_ios) {
535 "//chrome/app/chrome_crash_reporter_client.cc",
536 "//chrome/app/chrome_crash_reporter_client.h",
539 "//components/crash/app",
540 "//components/crash/browser",
545 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
547 sources -= [ "net/nss_context_linux.cc" ]
550 if (enable_notifications) {
551 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
555 sources += rebase_path(
556 gypi_values.chrome_browser_notifications_non_android_sources,
563 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
566 if (enable_basic_printing || enable_print_preview) {
567 # Some form of printing support.
568 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
571 deps += [ "//printing" ]
573 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
577 if (enable_print_preview) {
578 # Full printing on top of the above.
579 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
583 # Partial-only printing support.
585 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
590 if (enable_captive_portal_detection) {
591 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
595 if (enable_session_service) {
596 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
601 if (!is_android && !is_ios && !is_chromeos) {
603 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
606 if (is_android || is_ios) {
609 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
612 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
616 "//components/feedback",
624 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
627 "//components/cdm/browser",
628 "//components/enhanced_bookmarks",
629 "//components/resources:components_resources",
630 "//components/service_tab_launcher",
631 "//components/web_contents_delegate_android",
632 "//third_party/android_opengl/etc1",
633 "//third_party/libaddressinput:util",
636 "//third_party/libaddressinput",
637 "//components/storage_monitor",
638 "//components/web_modal",
640 defines += [ "ENABLE_DATA_REDUCTION_PROXY_DEBUGGING" ]
642 if (use_seccomp_bpf) {
643 defines += [ "USE_SECCOMP_BPF" ]
649 "//third_party/google_toolbox_for_mac",
650 "//third_party/mozilla",
653 "Accelerate.framework",
654 "AddressBook.framework",
655 "AudioUnit.framework",
656 "DiskArbitration.framework",
658 "ImageCaptureCore.framework",
660 "QuartzCore.framework",
661 "SecurityInterface.framework",
667 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
668 deps += [ "//rlz:rlz_lib" ]
672 # Temporary fix to break the browser target into smaller chunks so it
673 # will link with goma builds.
674 #["OS=="win" and chromium_win_pch==0", {
680 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
681 if (!is_chrome_branded) {
683 "google/did_run_updater_win.cc",
684 "google/did_run_updater_win.h",
689 "//ui/views/controls/webview",
692 ":chrome_process_finder",
693 "//chrome:version_header",
694 "//chrome/installer/util:strings",
696 "//chrome_elf:constants",
697 "//chrome_elf:dll_hash",
698 "//components/browser_watcher",
699 "//components/browser_watcher:browser_watcher_client",
701 "//third_party/iaccessible2",
702 "//third_party/isimpledom",
705 "//win8:metro_viewer",
714 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
718 "//ui/views/controls/webview",
725 rebase_path(gypi_values.chrome_browser_linux_sources, ".", "//chrome")
728 "//build/config/linux:dbus",
729 "//build/config/linux:fontconfig",
734 configs += [ "//build/config/linux:x11" ]
735 deps += [ "//ui/gfx/x" ]
739 if (is_desktop_linux) {
740 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
744 if (enable_plugin_installation) {
746 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
750 if (enable_app_list) {
751 deps += [ "//ui/app_list" ]
753 if (enable_supervised_users) {
754 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
758 if (enable_supervised_users && enable_themes) {
759 sources += rebase_path(
760 gypi_values.chrome_browser_supervised_user_and_themes_sources,
766 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
768 if (enable_service_discovery) {
769 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
775 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
777 if (!enable_autofill_dialog || is_android || is_ios) {
779 "autofill/validation_rules_storage_factory.cc",
780 "autofill/validation_rules_storage_factory.h",
783 if (enable_wifi_bootstrapping) {
785 rebase_path(gypi_values.chrome_browser_wifi_bootstrapping_sources,
788 if (is_win || is_mac) {
789 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows
790 # and Mac, so this test is meaningless. Can we merge these lists?
791 sources += rebase_path(
792 gypi_values.chrome_browser_wifi_bootstrapping_win_mac_sources,
797 if (enable_media_router) {
798 deps += [ "//chrome/browser/media/router" ]
803 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
804 generate_jni("jni_headers") {
806 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
807 jni_package = "chrome"
812 source_set("chrome_process_finder") {
814 "chrome_process_finder_win.cc",
815 "chrome_process_finder_win.h",
819 "//chrome/browser/metro_utils",
820 "//chrome/common:constants",
822 if (enable_configuration_policy) {
823 deps += [ "//chrome/browser/policy:path_parser" ]
828 # GYP version: chrome/chrome_resources.gyp:chrome_resources
829 # (generate_browser_resources action)
831 source = "browser_resources.grd"
832 output_dir = "$root_gen_dir/chrome"
834 "grit/browser_resources.h",
835 "browser_resources.pak",
839 "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mojom.js"
843 "about_credits_file=" + rebase_path(about_credits_file, root_build_dir),
845 "additional_modules_list_file=" +
846 rebase_path(additional_modules_list_file, root_build_dir),
848 "omnibox_mojom_file=" + rebase_path(omnibox_mojom_file, root_build_dir),
853 ":chrome_internal_resources_gen",
860 # GYP version: chrome/chrome_resource.gyp:about_credits
861 action("about_credits") {
862 script = "//tools/licenses.py"
865 # This is not a complete list. TODO(phajdan.jr, dbeam): licenses.py needs to
866 # generate a .d file with all the licenses/credits that about:credits uses.
867 # Then about:credits will automatically rebuild when one of them changes.
868 # See: depfile in gn's documentation (gn help depfile).
869 "resources/about_credits.tmpl",
870 "resources/about_credits_entry.tmpl",
879 rebase_path(about_credits_file, root_build_dir),
883 # GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
884 if (is_chrome_branded) {
885 action("chrome_internal_resources_gen") {
886 script = "internal/transform_additional_modules_list.py"
888 "internal/resources/additional_modules_list.input",
891 additional_modules_list_file,
893 args = rebase_path(sources, root_build_dir) +
894 rebase_path(outputs, root_build_dir)
897 group("chrome_internal_resources_gen") {
902 # In GYP this is part of test_support_common.
903 source_set("test_support") {
906 # Always include this via the main test support target.
907 visibility = [ "//chrome/test:test_support" ]
910 "browsing_data/mock_browsing_data_appcache_helper.cc",
911 "browsing_data/mock_browsing_data_appcache_helper.h",
912 "browsing_data/mock_browsing_data_channel_id_helper.cc",
913 "browsing_data/mock_browsing_data_channel_id_helper.h",
914 "browsing_data/mock_browsing_data_cookie_helper.cc",
915 "browsing_data/mock_browsing_data_cookie_helper.h",
916 "browsing_data/mock_browsing_data_database_helper.cc",
917 "browsing_data/mock_browsing_data_database_helper.h",
918 "browsing_data/mock_browsing_data_file_system_helper.cc",
919 "browsing_data/mock_browsing_data_file_system_helper.h",
920 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
921 "browsing_data/mock_browsing_data_flash_lso_helper.h",
922 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
923 "browsing_data/mock_browsing_data_indexed_db_helper.h",
924 "browsing_data/mock_browsing_data_local_storage_helper.cc",
925 "browsing_data/mock_browsing_data_local_storage_helper.h",
926 "browsing_data/mock_browsing_data_quota_helper.cc",
927 "browsing_data/mock_browsing_data_quota_helper.h",
928 "browsing_data/mock_browsing_data_service_worker_helper.cc",
929 "browsing_data/mock_browsing_data_service_worker_helper.h",
930 "download/download_test_file_activity_observer.cc",
931 "download/download_test_file_activity_observer.h",
932 "download/test_download_shelf.cc",
933 "download/test_download_shelf.h",
934 "invalidation/fake_invalidation_service.cc",
935 "invalidation/fake_invalidation_service.h",
936 "media/fake_desktop_media_list.cc",
937 "media/fake_desktop_media_list.h",
938 "net/dns_probe_test_util.cc",
939 "net/dns_probe_test_util.h",
940 "net/url_request_mock_util.cc",
941 "net/url_request_mock_util.h",
942 "notifications/notification_test_util.cc",
943 "notifications/notification_test_util.h",
944 "password_manager/mock_password_store_service.cc",
945 "password_manager/mock_password_store_service.h",
946 "password_manager/null_password_store_service.cc",
947 "password_manager/null_password_store_service.h",
948 "password_manager/test_password_store_service.cc",
949 "password_manager/test_password_store_service.h",
950 "prefs/pref_service_mock_factory.cc",
951 "prefs/pref_service_mock_factory.h",
952 "profile_resetter/profile_resetter_test_base.cc",
953 "profile_resetter/profile_resetter_test_base.h",
954 "search_engines/template_url_service_factory_test_util.cc",
955 "search_engines/template_url_service_factory_test_util.h",
956 "search_engines/template_url_service_test_util.cc",
957 "search_engines/template_url_service_test_util.h",
958 "sessions/session_restore_test_helper.cc",
959 "sessions/session_restore_test_helper.h",
960 "sessions/session_service_test_helper.cc",
961 "sessions/session_service_test_helper.h",
962 "signin/fake_account_tracker_service.cc",
963 "signin/fake_account_tracker_service.h",
964 "signin/fake_gaia_cookie_manager_service.cc",
965 "signin/fake_gaia_cookie_manager_service.h",
966 "signin/fake_profile_oauth2_token_service.cc",
967 "signin/fake_profile_oauth2_token_service.h",
968 "signin/fake_profile_oauth2_token_service_builder.cc",
969 "signin/fake_profile_oauth2_token_service_builder.h",
970 "signin/fake_signin_manager.cc",
971 "signin/fake_signin_manager.h",
972 "ssl/ssl_client_auth_requestor_mock.cc",
973 "ssl/ssl_client_auth_requestor_mock.h",
974 "sync/profile_sync_components_factory_mock.cc",
975 "sync/profile_sync_components_factory_mock.h",
976 "sync/profile_sync_service_mock.cc",
977 "sync/profile_sync_service_mock.h",
978 "ui/webui/signin/login_ui_test_utils.cc",
979 "ui/webui/signin/login_ui_test_utils.h",
984 "//chrome/browser/ui:test_support",
987 "//base:prefs_test_support",
990 "//chrome/common/safe_browsing:proto",
991 "//components/invalidation",
992 "//components/invalidation:test_support",
993 "//components/password_manager/core/browser:test_support",
994 "//components/search_engines:test_support",
995 "//content/test:test_support",
996 "//chrome/app/theme:theme_resources",
997 "//net:test_support",
1006 "//components/sessions:test_support",
1007 "//google_apis:test_support",
1011 if (enable_extensions) {
1013 "extensions/extension_action_test_util.cc",
1014 "extensions/extension_action_test_util.h",
1016 deps += [ "//extensions:test_support" ]
1021 "chromeos/app_mode/fake_cws.cc",
1022 "chromeos/app_mode/fake_cws.h",
1023 "chromeos/file_manager/fake_disk_mount_manager.cc",
1024 "chromeos/file_manager/fake_disk_mount_manager.h",
1025 "chromeos/input_method/mock_candidate_window_controller.cc",
1026 "chromeos/input_method/mock_candidate_window_controller.h",
1027 "chromeos/input_method/mock_input_method_engine.cc",
1028 "chromeos/input_method/mock_input_method_engine.h",
1029 "chromeos/input_method/mock_input_method_manager.cc",
1030 "chromeos/input_method/mock_input_method_manager.h",
1031 "chromeos/login/screens/mock_device_disabled_screen_actor.cc",
1032 "chromeos/login/screens/mock_device_disabled_screen_actor.h",
1033 "chromeos/login/session/user_session_manager_test_api.cc",
1034 "chromeos/login/session/user_session_manager_test_api.h",
1035 "chromeos/login/test/js_checker.cc",
1036 "chromeos/login/test/js_checker.h",
1037 "chromeos/login/test/oobe_screen_waiter.cc",
1038 "chromeos/login/test/oobe_screen_waiter.h",
1039 "chromeos/login/ui/mock_login_display.cc",
1040 "chromeos/login/ui/mock_login_display.h",
1041 "chromeos/login/ui/mock_login_display_host.cc",
1042 "chromeos/login/ui/mock_login_display_host.h",
1043 "chromeos/login/users/avatar/mock_user_image_manager.cc",
1044 "chromeos/login/users/avatar/mock_user_image_manager.h",
1045 "chromeos/login/users/fake_chrome_user_manager.cc",
1046 "chromeos/login/users/fake_chrome_user_manager.h",
1047 "chromeos/login/users/fake_supervised_user_manager.cc",
1048 "chromeos/login/users/fake_supervised_user_manager.h",
1049 "chromeos/login/users/mock_user_manager.cc",
1050 "chromeos/login/users/mock_user_manager.h",
1051 "chromeos/net/network_portal_detector_test_utils.cc",
1052 "chromeos/net/network_portal_detector_test_utils.h",
1053 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
1054 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
1055 "chromeos/policy/device_policy_builder.cc",
1056 "chromeos/policy/device_policy_builder.h",
1057 "chromeos/policy/fake_consumer_management_service.cc",
1058 "chromeos/policy/fake_consumer_management_service.h",
1059 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
1060 "chromeos/policy/fake_device_cloud_policy_initializer.h",
1061 "chromeos/policy/fake_device_cloud_policy_manager.cc",
1062 "chromeos/policy/fake_device_cloud_policy_manager.h",
1063 "chromeos/policy/stub_enterprise_install_attributes.cc",
1064 "chromeos/policy/stub_enterprise_install_attributes.h",
1065 "chromeos/settings/device_settings_test_helper.cc",
1066 "chromeos/settings/device_settings_test_helper.h",
1067 "chromeos/system/fake_input_device_settings.cc",
1068 "chromeos/system/fake_input_device_settings.h",
1070 configs += [ "//build/config/linux:dbus" ]
1071 deps += [ "//chromeos:test_support" ]
1074 if (enable_configuration_policy) {
1076 "policy/test/local_policy_test_server.cc",
1077 "policy/test/local_policy_test_server.h",
1080 "//components/policy:policy_component_test_support",
1081 "//components/policy:test_support",
1085 if (safe_browsing_mode == 1) {
1087 "extensions/fake_safe_browsing_database_manager.cc",
1088 "extensions/fake_safe_browsing_database_manager.h",
1092 if (enable_extensions) {
1094 "drive/dummy_drive_service.cc",
1095 "drive/dummy_drive_service.h",
1096 "drive/fake_drive_service.cc",
1097 "drive/fake_drive_service.h",
1098 "drive/test_util.cc",
1099 "drive/test_util.h",
1100 "extensions/api/messaging/native_messaging_test_util.cc",
1101 "extensions/api/messaging/native_messaging_test_util.h",
1102 "extensions/extension_notification_observer.cc",
1103 "extensions/extension_notification_observer.h",
1104 "extensions/mock_extension_special_storage_policy.cc",
1105 "extensions/mock_extension_special_storage_policy.h",
1106 "extensions/test_blacklist.cc",
1107 "extensions/test_blacklist.h",
1108 "extensions/test_blacklist_state_fetcher.cc",
1109 "extensions/test_blacklist_state_fetcher.h",
1110 "extensions/test_extension_dir.cc",
1111 "extensions/test_extension_dir.h",
1112 "extensions/test_extension_environment.cc",
1113 "extensions/test_extension_environment.h",
1114 "extensions/test_extension_prefs.cc",
1115 "extensions/test_extension_prefs.h",
1116 "extensions/test_extension_service.cc",
1117 "extensions/test_extension_service.h",
1118 "extensions/test_extension_system.cc",
1119 "extensions/test_extension_system.h",
1120 "media_galleries/media_galleries_test_util.cc",
1121 "media_galleries/media_galleries_test_util.h",
1123 deps += [ "//components/storage_monitor:test_support" ]
1128 "local_discovery/test_service_discovery_client.cc",
1129 "local_discovery/test_service_discovery_client.h",
1133 if (enable_app_list) {
1135 "ui/app_list/test/chrome_app_list_test_support.cc",
1136 "ui/app_list/test/chrome_app_list_test_support.h",
1137 "ui/app_list/test/test_app_list_controller_delegate.cc",
1138 "ui/app_list/test/test_app_list_controller_delegate.h",
1142 if (enable_wifi_bootstrapping) {
1144 "local_discovery/wifi/mock_wifi_manager.cc",
1145 "local_discovery/wifi/mock_wifi_manager.h",