# Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chromeos/ui_mode.gni")
import("//build/config/ui.gni")
import("//media/media_options.gni")
import("//printing/buildflags/buildflags.gni")
assert(is_chromeos_ash)
assert(use_ozone)
static_library("browser_util") {
sources = [
"browser_util.cc",
"browser_util.h",
"crosapi_id.h",
]
deps = [
"//ash/constants",
"//base",
"//chrome/browser:browser_process",
"//chrome/common",
"//chromeos/ash/components/channel",
"//chromeos/ash/components/standalone_browser",
"//chromeos/crosapi/cpp",
"//chromeos/crosapi/cpp:crosapi_constants",
"//chromeos/crosapi/mojom",
"//components/account_id",
"//components/exo",
"//components/prefs",
"//components/user_manager",
"//components/version_info",
"//google_apis",
]
}
static_library("crosapi") {
sources = [
"arc_ash.cc",
"arc_ash.h",
"audio_service_ash.cc",
"audio_service_ash.h",
"automation_ash.cc",
"automation_ash.h",
"browser_action.cc",
"browser_action.h",
"browser_action_queue.cc",
"browser_action_queue.h",
"browser_data_back_migrator.cc",
"browser_data_back_migrator.h",
"browser_data_back_migrator_metrics.cc",
"browser_data_back_migrator_metrics.h",
"browser_data_migrator.cc",
"browser_data_migrator.h",
"browser_data_migrator_util.cc",
"browser_data_migrator_util.h",
"browser_launcher.cc",
"browser_launcher.h",
"browser_loader.cc",
"browser_loader.h",
"browser_manager.cc",
"browser_manager.h",
"browser_manager_feature.h",
"browser_manager_observer.h",
"browser_manager_scoped_keep_alive.cc",
"browser_manager_scoped_keep_alive.h",
"browser_service_host_ash.cc",
"browser_service_host_ash.h",
"browser_service_host_observer.h",
"browser_version_service_ash.cc",
"browser_version_service_ash.h",
"cec_private_ash.cc",
"cec_private_ash.h",
"cert_database_ash.cc",
"cert_database_ash.h",
"cert_provisioning_ash.cc",
"cert_provisioning_ash.h",
"chaps_service_ash.cc",
"chaps_service_ash.h",
"chrome_app_kiosk_service_ash.cc",
"chrome_app_kiosk_service_ash.h",
"chrome_app_window_tracker_ash.cc",
"chrome_app_window_tracker_ash.h",
"clipboard_ash.cc",
"clipboard_ash.h",
"clipboard_history_ash.cc",
"clipboard_history_ash.h",
"content_protection_ash.cc",
"content_protection_ash.h",
"crosapi_ash.cc",
"crosapi_ash.h",
"crosapi_dependency_registry.cc",
"crosapi_dependency_registry.h",
"crosapi_manager.cc",
"crosapi_manager.h",
"crosapi_util.cc",
"crosapi_util.h",
"debug_interface_registerer_ash.cc",
"debug_interface_registerer_ash.h",
"desk_ash.cc",
"desk_ash.h",
"desk_profiles_ash.cc",
"desk_profiles_ash.h",
"desk_template_ash.cc",
"desk_template_ash.h",
"device_attributes_ash.cc",
"device_attributes_ash.h",
"device_local_account_extension_service_ash.cc",
"device_local_account_extension_service_ash.h",
"device_oauth2_token_service_ash.cc",
"device_oauth2_token_service_ash.h",
"device_settings_ash.cc",
"device_settings_ash.h",
"dlp_ash.cc",
"dlp_ash.h",
"document_scan_ash.cc",
"document_scan_ash.h",
"document_scan_ash_type_converters.cc",
"document_scan_ash_type_converters.h",
"download_controller_ash.cc",
"download_controller_ash.h",
"download_status_updater_ash.cc",
"download_status_updater_ash.h",
"drive_integration_service_ash.cc",
"drive_integration_service_ash.h",
"echo_private_ash.cc",
"echo_private_ash.h",
"embedded_accessibility_helper_client_ash.cc",
"embedded_accessibility_helper_client_ash.h",
"emoji_picker_ash.cc",
"emoji_picker_ash.h",
"environment_provider.cc",
"environment_provider.h",
"extension_info_private_ash.cc",
"extension_info_private_ash.h",
"extension_printer_service_ash.cc",
"extension_printer_service_ash.h",
"eye_dropper_ash.cc",
"eye_dropper_ash.h",
"feedback_ash.cc",
"feedback_ash.h",
"field_trial_service_ash.cc",
"field_trial_service_ash.h",
"file_change_service_bridge_ash.cc",
"file_change_service_bridge_ash.h",
"file_manager_ash.cc",
"file_manager_ash.h",
"file_system_access_cloud_identifier_provider_ash.cc",
"file_system_access_cloud_identifier_provider_ash.h",
"file_system_provider_service_ash.cc",
"file_system_provider_service_ash.h",
"files_app_launcher.cc",
"files_app_launcher.h",
"force_installed_tracker_ash.cc",
"force_installed_tracker_ash.h",
"full_restore_ash.cc",
"full_restore_ash.h",
"fullscreen_controller_ash.cc",
"fullscreen_controller_ash.h",
"geolocation_service_ash.cc",
"geolocation_service_ash.h",
"guest_os_sk_forwarder_factory_ash.cc",
"guest_os_sk_forwarder_factory_ash.h",
"hosted_app_util.cc",
"hosted_app_util.h",
"identity_manager_ash.cc",
"identity_manager_ash.h",
"idle_service_ash.cc",
"idle_service_ash.h",
"image_writer_ash.cc",
"image_writer_ash.h",
"input_methods_ash.cc",
"input_methods_ash.h",
"kerberos_in_browser_ash.cc",
"kerberos_in_browser_ash.h",
"keystore_service_ash.cc",
"keystore_service_ash.h",
"keystore_service_factory_ash.cc",
"keystore_service_factory_ash.h",
"kiosk_session_service_ash.cc",
"kiosk_session_service_ash.h",
"lacros_availability_policy_observer.cc",
"lacros_availability_policy_observer.h",
"lacros_data_backward_migration_mode_policy_observer.cc",
"lacros_data_backward_migration_mode_policy_observer.h",
"lacros_selection_loader.h",
"lacros_selection_loader_factory.h",
"lacros_shelf_item_tracker.cc",
"lacros_shelf_item_tracker.h",
"local_printer_ash.cc",
"local_printer_ash.h",
"login_ash.cc",
"login_ash.h",
"login_screen_storage_ash.cc",
"login_screen_storage_ash.h",
"login_state_ash.cc",
"login_state_ash.h",
"media_app_ash.cc",
"media_app_ash.h",
"media_ui_ash.cc",
"media_ui_ash.h",
"message_center_ash.cc",
"message_center_ash.h",
"metrics_ash.cc",
"metrics_ash.h",
"metrics_reporting_ash.cc",
"metrics_reporting_ash.h",
"move_migrator.cc",
"move_migrator.h",
"multi_capture_service_ash.cc",
"multi_capture_service_ash.h",
"native_theme_service_ash.cc",
"native_theme_service_ash.h",
"network_change_ash.cc",
"network_change_ash.h",
"network_settings_service_ash.cc",
"network_settings_service_ash.h",
"network_settings_translation.h",
"networking_attributes_ash.cc",
"networking_attributes_ash.h",
"networking_private_ash.cc",
"networking_private_ash.h",
"nonclosable_app_toast_service_ash.cc",
"nonclosable_app_toast_service_ash.h",
"one_drive_integration_service_ash.cc",
"one_drive_integration_service_ash.h",
"one_drive_notification_service_ash.cc",
"one_drive_notification_service_ash.h",
"parent_access_ash.cc",
"parent_access_ash.h",
"payment_app_instance_ash.cc",
"payment_app_instance_ash.h",
"persistent_forced_extension_keep_alive.cc",
"persistent_forced_extension_keep_alive.h",
"policy_service_ash.cc",
"policy_service_ash.h",
"power_ash.cc",
"power_ash.h",
"prefs_ash.cc",
"prefs_ash.h",
"primary_profile_creation_waiter.cc",
"primary_profile_creation_waiter.h",
"remoting_ash.cc",
"remoting_ash.h",
"resource_manager_ash.cc",
"resource_manager_ash.h",
"rootfs_lacros_loader.cc",
"rootfs_lacros_loader.h",
"screen_ai_downloader_ash.cc",
"screen_ai_downloader_ash.h",
"screen_manager_ash.cc",
"screen_manager_ash.h",
"search_controller_ash.cc",
"search_controller_ash.h",
"search_controller_factory_ash.cc",
"search_controller_factory_ash.h",
"search_provider_ash.cc",
"search_provider_ash.h",
"select_file_ash.cc",
"select_file_ash.h",
"sharesheet_ash.cc",
"sharesheet_ash.h",
"speech_recognition_ash.cc",
"speech_recognition_ash.h",
"stateful_lacros_loader.cc",
"stateful_lacros_loader.h",
"structured_metrics_service_ash.cc",
"structured_metrics_service_ash.h",
"suggestion_service_ash.cc",
"suggestion_service_ash.h",
"task_manager_ash.cc",
"task_manager_ash.h",
"test_mojo_connection_manager.cc",
"test_mojo_connection_manager.h",
"time_zone_service_ash.cc",
"time_zone_service_ash.h",
"translate_crosapi_to_proxy_config.cc",
"translate_proxy_config_to_crosapi.cc",
"url_handler_ash.cc",
"url_handler_ash.h",
"virtual_keyboard_ash.cc",
"virtual_keyboard_ash.h",
"volume_manager_ash.cc",
"volume_manager_ash.h",
"vpn_extension_observer_ash.cc",
"vpn_extension_observer_ash.h",
"vpn_service_ash.cc",
"vpn_service_ash.h",
"wallpaper_ash.cc",
"wallpaper_ash.h",
"web_app_service_ash.cc",
"web_app_service_ash.h",
"web_kiosk_service_ash.cc",
"web_kiosk_service_ash.h",
"web_page_info_ash.cc",
"web_page_info_ash.h",
"window_util.cc",
"window_util.h",
]
if (use_cups) {
sources += [
"print_job_info_idl_conversions.cc",
"print_job_info_idl_conversions.h",
"printing_metrics_ash.cc",
"printing_metrics_ash.h",
]
}
deps = [
"//ash",
"//ash/components/arc",
"//ash/components/arc:arc_base_utils",
"//ash/components/arc/mojom",
"//ash/components/arc/session",
"//ash/constants",
"//ash/public/cpp/external_arc",
"//ash/webui/camera_app_ui",
"//ash/webui/connectivity_diagnostics",
"//ash/webui/diagnostics_ui",
"//ash/webui/firmware_update_ui",
"//ash/webui/help_app_ui",
"//ash/webui/print_management",
"//ash/webui/scanning",
"//ash/webui/settings/public/constants:mojom",
"//ash/webui/system_apps/public:system_web_app_type",
"//base",
"//build/config/chromebox_for_meetings:buildflags",
"//chrome/browser:browser_process",
"//chrome/browser:primitives",
"//chrome/browser/apps/app_preload_service",
"//chrome/browser/apps/app_service",
"//chrome/browser/apps/app_service/app_icon",
"//chrome/browser/apps/app_service/app_install:implementation",
"//chrome/browser/apps/browser_instance",
"//chrome/browser/apps/platform_apps/api",
"//chrome/browser/ash",
"//chrome/browser/ash/accessibility",
"//chrome/browser/ash/app_list",
"//chrome/browser/ash/app_list/app_service",
"//chrome/browser/ash/app_list/arc",
"//chrome/browser/ash/app_list/search",
"//chrome/browser/ash/app_list/search/omnibox",
"//chrome/browser/ash/app_mode",
"//chrome/browser/ash/app_mode/web_app",
"//chrome/browser/ash/app_restore",
"//chrome/browser/ash/apps",
"//chrome/browser/ash/arc",
"//chrome/browser/ash/attestation",
"//chrome/browser/ash/cert_provisioning",
"//chrome/browser/ash/drive",
"//chrome/browser/ash/exo",
"//chrome/browser/ash/extensions/autotest_private",
"//chrome/browser/ash/file_manager",
"//chrome/browser/ash/file_manager/virtual_tasks",
"//chrome/browser/ash/file_system_provider",
"//chrome/browser/ash/fileapi",
"//chrome/browser/ash/floating_workspace",
"//chrome/browser/ash/guest_os",
"//chrome/browser/ash/guest_os/public",
"//chrome/browser/ash/input_method",
"//chrome/browser/ash/kcer",
"//chrome/browser/ash/login",
"//chrome/browser/ash/login/app_mode",
"//chrome/browser/ash/login/quick_unlock",
"//chrome/browser/ash/login/screens",
"//chrome/browser/ash/login/session",
"//chrome/browser/ash/login/ui",
"//chrome/browser/ash/magic_boost",
"//chrome/browser/ash/mahi",
"//chrome/browser/ash/mahi/media_app",
"//chrome/browser/ash/net",
"//chrome/browser/ash/network_change_manager",
"//chrome/browser/ash/notifications",
"//chrome/browser/ash/platform_keys",
"//chrome/browser/ash/platform_keys/key_permissions",
"//chrome/browser/ash/plugin_vm",
"//chrome/browser/ash/policy/core",
"//chrome/browser/ash/policy/dlp",
"//chrome/browser/ash/policy/handlers",
"//chrome/browser/ash/policy/multi_screen_capture",
"//chrome/browser/ash/power/ml",
"//chrome/browser/ash/printing",
"//chrome/browser/ash/printing/history",
"//chrome/browser/ash/printing/history:print_job_info_proto",
"//chrome/browser/ash/printing/oauth2",
"//chrome/browser/ash/printing/print_management",
"//chrome/browser/ash/printing/print_preview",
"//chrome/browser/ash/privacy_hub",
"//chrome/browser/ash/profiles",
"//chrome/browser/ash/remote_apps",
"//chrome/browser/ash/scalable_iph",
"//chrome/browser/ash/scanning",
"//chrome/browser/ash/settings",
"//chrome/browser/ash/smart_reader",
"//chrome/browser/ash/sparky",
"//chrome/browser/ash/sync",
"//chrome/browser/ash/system",
"//chrome/browser/ash/system_logs",
"//chrome/browser/ash/system_web_apps",
"//chrome/browser/ash/system_web_apps/apps",
"//chrome/browser/ash/system_web_apps/apps/help_app",
"//chrome/browser/ash/system_web_apps/apps/media_app",
"//chrome/browser/ash/system_web_apps/types",
"//chrome/browser/ash/trusted_vault",
"//chrome/browser/ash/url_handler",
"//chrome/browser/ash/video_conference",
"//chrome/browser/chromeos",
"//chrome/browser/chromeos/extensions/echo_private",
"//chrome/browser/chromeos/extensions/file_system_provider",
"//chrome/browser/chromeos/extensions/login_screen/login/cleanup",
"//chrome/browser/chromeos/extensions/login_screen/login/external_logout_request",
"//chrome/browser/chromeos/extensions/login_screen/login_state",
"//chrome/browser/chromeos/extensions/vpn_provider",
"//chrome/browser/chromeos/mahi",
"//chrome/browser/chromeos/platform_keys",
"//chrome/browser/chromeos/policy/dlp",
"//chrome/browser/chromeos/printing/print_preview",
"//chrome/browser/chromeos/video_conference",
"//chrome/browser/extensions",
"//chrome/browser/feedback",
"//chrome/browser/feedback:feedback_impl",
"//chrome/browser/image_decoder:image_decoder",
"//chrome/browser/media/router/discovery/access_code:access_code_cast_feature",
"//chrome/browser/media/webrtc",
"//chrome/browser/profiles:profile",
"//chrome/browser/screen_ai:screen_ai_install_state",
"//chrome/browser/task_manager:impl",
"//chrome/browser/ui",
"//chrome/browser/ui:browser_navigator_params_headers",
"//chrome/browser/ui/ash",
"//chrome/browser/ui/ash/arc",
"//chrome/browser/ui/ash/assistant",
"//chrome/browser/ui/ash/birch",
"//chrome/browser/ui/ash/capture_mode",
"//chrome/browser/ui/ash/desks",
"//chrome/browser/ui/ash/download_status",
"//chrome/browser/ui/ash/global_media_controls",
"//chrome/browser/ui/ash/holding_space",
"//chrome/browser/ui/ash/keyboard",
"//chrome/browser/ui/ash/picker",
"//chrome/browser/ui/ash/session",
"//chrome/browser/ui/ash/shelf",
"//chrome/browser/ui/ash/shelf/app_service",
"//chrome/browser/ui/ash/shell_delegate",
"//chrome/browser/ui/ash/system",
"//chrome/browser/ui/ash/system_web_apps",
"//chrome/browser/ui/ash/wallpaper",
"//chrome/browser/ui/aura/accessibility:impl",
"//chrome/browser/ui/chromeos/magic_boost",
"//chrome/browser/ui/webui/ash/cloud_upload",
"//chrome/browser/ui/webui/ash/kerberos",
"//chrome/browser/ui/webui/ash/parent_access:mojo_bindings",
"//chrome/browser/web_applications",
"//chrome/browser/web_applications/app_service",
"//chrome/common",
"//chrome/common:constants",
"//chromeos/ash/components/account_manager",
"//chromeos/ash/components/browser_context_helper",
"//chromeos/ash/components/channel",
"//chromeos/ash/components/cryptohome",
"//chromeos/ash/components/dbus",
"//chromeos/ash/components/dbus/attestation:attestation_proto",
"//chromeos/ash/components/dbus/cec_service",
"//chromeos/ash/components/dbus/chaps",
"//chromeos/ash/components/dbus/cros_disks",
"//chromeos/ash/components/dbus/lorgnette_manager:lorgnette_proto",
"//chromeos/ash/components/dbus/resourced",
"//chromeos/ash/components/dbus/session_manager",
"//chromeos/ash/components/dbus/shill",
"//chromeos/ash/components/dbus/update_engine",
"//chromeos/ash/components/dbus/upstart",
"//chromeos/ash/components/dbus/userdataauth:userdataauth_proto",
"//chromeos/ash/components/install_attributes",
"//chromeos/ash/components/login/auth",
"//chromeos/ash/components/login/login_state",
"//chromeos/ash/components/nearby/common/connections_manager",
"//chromeos/ash/components/network",
"//chromeos/ash/components/network/portal_detector",
"//chromeos/ash/components/nonclosable_app_ui",
"//chromeos/ash/components/osauth/public",
"//chromeos/ash/components/report:utils",
"//chromeos/ash/components/settings",
"//chromeos/ash/components/standalone_browser",
"//chromeos/ash/components/system",
"//chromeos/ash/components/telemetry_extension/diagnostics",
"//chromeos/ash/components/telemetry_extension/events",
"//chromeos/ash/components/telemetry_extension/management",
"//chromeos/ash/components/telemetry_extension/routines",
"//chromeos/ash/components/telemetry_extension/telemetry",
"//chromeos/ash/components/tpm",
"//chromeos/components/cdm_factory_daemon:cdm_factory_daemon_browser",
"//chromeos/components/certificate_provider:certificate_provider",
"//chromeos/components/firewall_hole",
"//chromeos/components/in_session_auth",
"//chromeos/components/kiosk",
"//chromeos/components/mahi/public/cpp",
"//chromeos/components/mgs",
"//chromeos/components/quick_answers/public/cpp:prefs",
"//chromeos/components/remote_apps/mojom",
"//chromeos/components/sensors",
"//chromeos/crosapi/cpp",
"//chromeos/crosapi/cpp:crosapi_constants",
"//chromeos/crosapi/mojom",
"//chromeos/dbus/power",
"//chromeos/printing",
"//chromeos/services/chromebox_for_meetings/public/cpp",
"//chromeos/services/machine_learning/public/cpp",
"//chromeos/services/network_config/public/cpp",
"//chromeos/startup",
"//chromeos/startup:constants",
"//chromeos/ui/clipboard_history",
"//chromeos/ui/wm",
"//chromeos/version",
"//components/app_restore",
"//components/arc",
"//components/component_updater/ash",
"//components/crash/core/app",
"//components/exo",
"//components/eye_dropper",
"//components/feature_engagement",
"//components/flags_ui",
"//components/global_media_controls",
"//components/keyed_service/content",
"//components/language/core/browser",
"//components/live_caption:utils",
"//components/metrics",
"//components/metrics/structured",
"//components/metrics_services_manager:metrics_services_manager",
"//components/payments/core:error_strings",
"//components/policy/core/common:common_constants",
"//components/prefs",
"//components/printing/browser",
"//components/search_engines",
"//components/services/app_service/public/cpp:instance_update",
"//components/session_manager/core",
"//components/ukm:ukm",
"//components/user_prefs",
"//components/variations",
"//components/variations/service",
"//components/version_info:channel",
"//content/public/common",
"//extensions/browser/api",
"//extensions/browser/api/audio",
"//extensions/browser/api/automation_internal",
"//extensions/browser/api/networking_private",
"//extensions/browser/api/power",
"//extensions/common",
"//headless:headless_non_renderer",
"//media/mojo/mojom/stable:stable_video_decoder",
"//printing/backend",
"//remoting/host/chromeos:remoting_service",
"//services/data_decoder/public/cpp",
"//services/device/wake_lock/power_save_blocker",
"//services/video_capture:lib",
"//services/video_capture/public/cpp",
"//services/video_capture/public/mojom",
"//ui/base",
"//ui/message_center",
"//ui/message_center/public/cpp",
"//ui/ozone",
"//ui/shell_dialogs",
"//ui/snapshot",
"//ui/views",
]
# local_printer_ash.cc includes
# chrome/browser/ash/printing/print_management/printing_manager.h, which in
# turn requires //chromeos/components/print_management/mojom to generate the
# Mojo headers referenced by printing_manager.h.
# Ideally, //chrome/browser/ash can just make
# //chromeos/components/print_management/mojom a public_deps entry, and this
# target can depend on //chrome/browser/ash. However, that creates a circular
# dependency, so add this indirect dependency to make it work as intended.
deps += [ "//chromeos/components/print_management/mojom" ]
public_deps = [
":browser_util",
"//chrome/browser:browser_public_dependencies",
"//chrome/browser/task_manager",
"//chrome/browser/ui/webui/ash/parent_access",
"//media/gpu:buildflags",
"//printing",
]
allow_circular_includes_from = [
"//chrome/browser/apps/app_service",
"//chrome/browser/apps/app_service/app_install:implementation",
"//chrome/browser/apps/app_preload_service",
"//chrome/browser/apps/platform_apps/api",
"//chrome/browser/ash",
"//chrome/browser/ash/app_list",
"//chrome/browser/ash/app_list/app_service",
"//chrome/browser/ash/app_list/search",
"//chrome/browser/ash/app_list/search/omnibox",
"//chrome/browser/ash/app_mode",
"//chrome/browser/ash/app_mode/web_app",
"//chrome/browser/ash/app_restore",
"//chrome/browser/ash/apps",
"//chrome/browser/ash/drive",
"//chrome/browser/ash/extensions/autotest_private",
"//chrome/browser/ash/file_manager/virtual_tasks",
"//chrome/browser/ash/file_system_provider",
"//chrome/browser/ash/input_method",
"//chrome/browser/ash/kcer",
"//chrome/browser/ash/login",
"//chrome/browser/ash/login/app_mode",
"//chrome/browser/ash/login/screens",
"//chrome/browser/ash/login/session",
"//chrome/browser/ash/mahi",
"//chrome/browser/ash/mahi/media_app",
"//chrome/browser/ash/net",
"//chrome/browser/ash/policy/core",
"//chrome/browser/ash/policy/dlp",
"//chrome/browser/ash/power/ml",
"//chrome/browser/ash/scalable_iph",
"//chrome/browser/ash/sparky",
"//chrome/browser/ash/system_logs",
"//chrome/browser/ash/system_web_apps/apps/help_app",
"//chrome/browser/ash/system_web_apps/apps/media_app",
"//chrome/browser/ash/url_handler",
"//chrome/browser/ash/video_conference",
"//chrome/browser/chromeos",
"//chrome/browser/chromeos/extensions/echo_private",
"//chrome/browser/chromeos/extensions/file_system_provider",
"//chrome/browser/chromeos/extensions/login_screen/login/cleanup",
"//chrome/browser/chromeos/extensions/login_screen/login/external_logout_request",
"//chrome/browser/chromeos/extensions/login_screen/login_state",
"//chrome/browser/chromeos/extensions/vpn_provider",
"//chrome/browser/chromeos/mahi",
"//chrome/browser/chromeos/platform_keys",
"//chrome/browser/chromeos/printing/print_preview",
"//chrome/browser/chromeos/video_conference",
"//chrome/browser/extensions",
"//chrome/browser/feedback:feedback_impl",
"//chrome/browser/media/webrtc",
"//chrome/browser/task_manager:impl",
"//chrome/browser/ui",
"//chrome/browser/ui/ash",
"//chrome/browser/ui/ash/arc",
"//chrome/browser/ui/ash/assistant",
"//chrome/browser/ui/ash/birch",
"//chrome/browser/ui/ash/capture_mode",
"//chrome/browser/ui/ash/desks",
"//chrome/browser/ui/ash/download_status",
"//chrome/browser/ui/ash/global_media_controls",
"//chrome/browser/ui/ash/picker",
"//chrome/browser/ui/ash/session",
"//chrome/browser/ui/ash/shelf",
"//chrome/browser/ui/ash/shelf/app_service",
"//chrome/browser/ui/ash/shell_delegate",
"//chrome/browser/ui/ash/system",
"//chrome/browser/ui/aura/accessibility:impl",
"//chrome/browser/ui/chromeos/magic_boost",
"//chrome/browser/ui/webui/ash/cloud_upload",
"//chrome/browser/web_applications/app_service",
]
if (use_cups) {
deps += [ "//chrome/browser/chromeos/extensions/printing_metrics" ]
allow_circular_includes_from +=
[ "//chrome/browser/chromeos/extensions/printing_metrics" ]
}
}
static_library("test_support") {
testonly = true
sources = [
"ash_requires_lacros_browsertestbase.cc",
"ash_requires_lacros_browsertestbase.h",
"ash_requires_lacros_extension_apitest.cc",
"ash_requires_lacros_extension_apitest.h",
"fake_browser_manager.cc",
"fake_browser_manager.h",
"input_method_test_interface_ash.cc",
"input_method_test_interface_ash.h",
"metrics_reporting_ash_test_helper.cc",
"metrics_reporting_ash_test_helper.h",
"mock_download_status_updater_client.cc",
"mock_download_status_updater_client.h",
"test_controller_ash.cc",
"test_controller_ash.h",
"test_crosapi_dependency_registry.cc",
"test_crosapi_dependency_registry.h",
"test_crosapi_environment.cc",
"test_crosapi_environment.h",
]
allow_circular_includes_from = [ "//chrome/test:test_support" ]
public_deps = [ "//chromeos/ash/components/system" ]
deps = [
":crosapi",
"//ash",
"//ash:test_support",
"//ash/app_list",
"//ash/components/arc:arc_test_support",
"//base",
"//chrome/browser/apps/app_service",
"//chrome/browser/ash/accessibility",
"//chrome/browser/ash/app_list",
"//chrome/browser/ash/printing",
"//chrome/browser/ash/printing:test_support",
"//chrome/browser/ash/printing/history",
"//chrome/browser/ash/printing/history:test_support",
"//chrome/browser/ui/ash/desks",
"//chrome/browser/ui/webui/ash/app_install",
"//chrome/test:test_support",
"//chromeos/ash/components/dbus/shill",
"//chromeos/ash/components/standalone_browser:test_support",
"//chromeos/crosapi/cpp:test_support",
"//chromeos/crosapi/mojom",
"//components/component_updater/ash",
"//printing",
"//testing/gmock",
"//ui/events:gesture_detection",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"audio_service_ash_unittest.cc",
"browser_data_back_migrator_metrics_unittest.cc",
"browser_data_back_migrator_unittest.cc",
"browser_data_migrator_unittest.cc",
"browser_data_migrator_util_unittest.cc",
"browser_launcher_unittest.cc",
"browser_loader_unittest.cc",
"browser_manager_unittest.cc",
"browser_util_unittest.cc",
"browser_version_service_ash_unittest.cc",
"cec_private_ash_unittest.cc",
"cert_provisioning_ash_unittest.cc",
"chaps_service_ash_unittest.cc",
"chrome_app_window_tracker_ash_unittest.cc",
"clipboard_history_ash_unittest.cc",
"crosapi_util_unittest.cc",
"desk_ash_unittest.cc",
"desk_profiles_ash_unittest.cc",
"device_attributes_ash_unittest.cc",
"device_oauth2_token_service_ash_unittest.cc",
"device_settings_ash_unittest.cc",
"dlp_ash_unittest.cc",
"document_scan_ash_type_converters_unittest.cc",
"document_scan_ash_unittest.cc",
"download_controller_ash_unittest.cc",
"download_status_updater_ash_unittest.cc",
"drive_integration_service_ash_unittest.cc",
"field_trial_service_ash_unittest.cc",
"fullscreen_controller_ash_unittest.cc",
"geolocation_service_ash_unittest.cc",
"input_methods_ash_unittest.cc",
"keystore_service_ash_unittest.cc",
"lacros_availability_policy_observer_unittest.cc",
"lacros_data_backward_migration_mode_policy_observer_unittest.cc",
"lacros_shelf_item_tracker_unittest.cc",
"local_printer_ash_unittest.cc",
"login_screen_storage_ash_unittest.cc",
"login_state_ash_unittest.cc",
"message_center_ash_unittest.cc",
"metrics_reporting_ash_unittest.cc",
"move_migrator_unittest.cc",
"network_settings_translation_unittest.cc",
"networking_attributes_ash_unittest.cc",
"one_drive_integration_service_ash_unittest.cc",
"parent_access_ash_unittest.cc",
"payment_app_instance_ash_unittest.cc",
"persistent_forced_extension_keep_alive_unittest.cc",
"prefs_ash_unittest.cc",
"primary_profile_creation_waiter_unittest.cc",
"rootfs_lacros_loader_unittest.cc",
"screen_ai_downloader_ash_unittest.cc",
"search_controller_ash_unittest.cc",
"search_controller_factory_ash_unittest.cc",
"stateful_lacros_loader_unittest.cc",
"test_local_printer_ash.cc",
"test_local_printer_ash.h",
"test_mojo_connection_manager_unittest.cc",
"wallpaper_ash_unittest.cc",
]
if (use_cups) {
sources += [ "print_job_info_idl_conversions_unittest.cc" ]
}
deps = [
":crosapi",
":test_support",
"//ash",
"//ash:test_support",
"//ash/components/arc:arc_test_support",
"//ash/public/cpp/external_arc:test_support",
"//base",
"//base/test:test_config",
"//base/test:test_support",
"//chrome/browser/ash/attestation",
"//chrome/browser/ash/attestation:test_support",
"//chrome/browser/ash/cert_provisioning:test_support",
"//chrome/browser/ash/file_manager",
"//chrome/browser/ash/file_manager:test_support",
"//chrome/browser/ash/login/users:test_support",
"//chrome/browser/ash/platform_keys:test_support",
"//chrome/browser/ash/platform_keys/key_permissions:test_support",
"//chrome/browser/ash/policy/core",
"//chrome/browser/ash/policy/core:test_support",
"//chrome/browser/ash/policy/dlp",
"//chrome/browser/ash/policy/dlp/test:test_support",
"//chrome/browser/ash/printing",
"//chrome/browser/ash/printing:test_support",
"//chrome/browser/ash/printing/oauth2",
"//chrome/browser/ash/printing/oauth2:test_support",
"//chrome/browser/ash/scanning",
"//chrome/browser/ash/scanning:test_support",
"//chrome/browser/ash/settings",
"//chrome/browser/ash/settings:test_support",
"//chrome/browser/ash/wallpaper_handlers:test_support",
"//chrome/browser/chromeos/launcher_search:search_util",
"//chrome/browser/chromeos/platform_keys",
"//chrome/browser/chromeos/policy/dlp",
"//chrome/browser/chromeos/policy/dlp/test:test_support",
"//chrome/browser/ui/ash/desks",
"//chrome/browser/ui/ash/picker",
"//chrome/browser/ui/ash/shelf",
"//chrome/browser/ui/ash/wallpaper",
"//chrome/browser/ui/ash/wallpaper:test_support",
"//chrome/browser/ui/webui/ash/parent_access",
"//chrome/common/printing",
"//chrome/test:test_support",
"//chromeos/ash/components/browser_context_helper",
"//chromeos/ash/components/channel",
"//chromeos/ash/components/cryptohome",
"//chromeos/ash/components/dbus/audio",
"//chromeos/ash/components/dbus/cec_service:unit_tests",
"//chromeos/ash/components/dbus/chaps:test_support",
"//chromeos/ash/components/dbus/shill",
"//chromeos/ash/components/dbus/upstart",
"//chromeos/ash/components/disks:test_support",
"//chromeos/ash/components/login/login_state",
"//chromeos/ash/components/standalone_browser",
"//chromeos/ash/components/standalone_browser:test_support",
"//chromeos/ash/components/system",
"//chromeos/crosapi/cpp:cpp",
"//chromeos/crosapi/cpp:crosapi_constants",
"//chromeos/printing",
"//chromeos/startup:constants",
"//chromeos/ui/clipboard_history",
"//components/component_updater:test_support",
"//components/component_updater/ash",
"//components/component_updater/ash:test_support",
"//components/session_manager/core",
"//printing/backend",
"//printing/backend:test_support",
"//testing/gtest:gtest",
"//ui/display:test_support",
]
}
source_set("browser_tests") {
testonly = true
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
sources = [
"browser_data_back_migrator_browsertest.cc",
"browser_data_migrator_browsertest.cc",
"file_change_service_bridge_ash_browsertest.cc",
"magic_boost_ash_browsertest.cc",
"mahi_ash_browsertest.cc",
"media_ui_ash_browsertest.cc",
"network_settings_service_ash_browsertest.cc",
"power_ash_apitest.cc",
"print_preview_ash_browsertest.cc",
"screen_manager_ash_browsertest.cc",
"suggestion_service_ash_browsertest.cc",
"task_manager_ash_browsertest.cc",
"video_conference_ash_browsertest.cc",
"vpn_extension_observer_ash_browsertest.cc",
"web_app_provider_bridge_browsertest.cc",
]
if (!is_official_build) {
sources += [ "sharesheet_ash_browsertest.cc" ]
}
if (enable_print_preview) {
sources += [ "extension_printer_service_ash_browsertest.cc" ]
}
deps = [
":crosapi",
":test_support",
"//ash/constants",
"//ash/public/cpp",
"//base",
"//base/test:test_support",
"//chrome/browser",
"//chrome/browser:browser_process",
"//chrome/browser/apps/app_service",
"//chrome/browser/apps/app_service:app_registry_cache_waiter",
"//chrome/browser/ash/fileapi",
"//chrome/browser/ash/login",
"//chrome/browser/ash/login:test_support",
"//chrome/browser/ash/login/app_mode/test:test_support",
"//chrome/browser/ash/login/test:test_support",
"//chrome/browser/ash/magic_boost",
"//chrome/browser/ash/mahi",
"//chrome/browser/ash/net",
"//chrome/browser/ash/printing/print_preview",
"//chrome/browser/ash/system_web_apps/test_support:test_support_ui",
"//chrome/browser/ash/video_conference",
"//chrome/browser/ui",
"//chrome/browser/ui/ash",
"//chrome/browser/ui/ash:test_support",
"//chrome/common",
"//chrome/test:test_support",
"//chrome/test/base/ash/util:test_support",
"//chromeos/ash/components/dbus/session_manager",
"//chromeos/ash/components/dbus/shill",
"//chromeos/ash/components/standalone_browser",
"//chromeos/crosapi/mojom",
"//chromeos/printing:test_support",
"//chromeos/services/network_config/public/mojom",
"//components/account_id",
"//components/exo",
"//components/global_media_controls:test_support",
"//components/user_manager",
"//components/webapps/common",
"//content/test:test_support",
"//mojo/public/cpp/bindings",
"//testing/gtest",
"//ui/aura",
"//ui/base/idle:test_support",
]
}