# Copyright 2024 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/chromeos/crosier_tests.gni")
import("//build/config/chromeos/ui_mode.gni")
import("//chromeos/ash/components/assistant/assistant.gni")
assert(is_chromeos_ash)
static_library("ash") {
sources = [
"crosapi_new_window_delegate.cc",
"crosapi_new_window_delegate.h",
"login_screen_shown_observer.h",
"management_disclosure_client_impl.cc",
"management_disclosure_client_impl.h",
"screen_orientation_delegate_chromeos.cc",
"screen_orientation_delegate_chromeos.h",
"screenshot_area.cc",
"screenshot_area.h",
"system_sounds_delegate_impl.cc",
"system_sounds_delegate_impl.h",
"window_pin_util_ash.cc",
]
public_deps = [ "//chrome/browser:browser_public_dependencies" ]
deps = [
"//apps",
"//ash",
"//ash/components/arc:arc_features",
"//ash/components/arc/vector_icons",
"//ash/in_session_auth",
"//ash/quick_pair/keyed_service",
"//ash/style",
"//ash/webui/personalization_app",
"//ash/webui/settings/public/constants:mojom",
"//ash/webui/system_apps/public:system_web_app_type",
"//base",
"//chrome/browser:browser_process",
"//chrome/browser:main_extra_parts",
"//chrome/browser:primitives",
"//chrome/browser/apps/app_service",
"//chrome/browser/ash",
"//chrome/browser/ash/accessibility",
"//chrome/browser/ash/api/tasks",
"//chrome/browser/ash/app_list",
"//chrome/browser/ash/app_list/search/files",
"//chrome/browser/ash/app_list/search/local_image_search",
"//chrome/browser/ash/apps",
"//chrome/browser/ash/arc",
"//chrome/browser/ash/arc/fileapi",
"//chrome/browser/ash/arc/intent_helper",
"//chrome/browser/ash/arc/notification",
"//chrome/browser/ash/arc/print_spooler",
"//chrome/browser/ash/arc/session",
"//chrome/browser/ash/arc/util",
"//chrome/browser/ash/arc/wallpaper",
"//chrome/browser/ash/assistant",
"//chrome/browser/ash/boca",
"//chrome/browser/ash/child_accounts/parent_access_code",
"//chrome/browser/ash/crosapi:browser_util",
"//chrome/browser/ash/customization",
"//chrome/browser/ash/drive",
"//chrome/browser/ash/eol",
"//chrome/browser/ash/extensions",
"//chrome/browser/ash/extensions/autotest_private",
"//chrome/browser/ash/file_manager",
"//chrome/browser/ash/floating_workspace",
"//chrome/browser/ash/geolocation",
"//chrome/browser/ash/growth",
"//chrome/browser/ash/input_device_settings",
"//chrome/browser/ash/input_method",
"//chrome/browser/ash/lock_screen_apps",
"//chrome/browser/ash/login",
"//chrome/browser/ash/login/demo_mode",
"//chrome/browser/ash/login/lock",
"//chrome/browser/ash/login/quick_unlock",
"//chrome/browser/ash/login/screens",
"//chrome/browser/ash/login/session",
"//chrome/browser/ash/login/signin",
"//chrome/browser/ash/login/ui",
"//chrome/browser/ash/login/ui/login_screen_extension_ui",
"//chrome/browser/ash/login/users/avatar",
"//chrome/browser/ash/magic_boost",
"//chrome/browser/ash/mahi",
"//chrome/browser/ash/mahi/media_app",
"//chrome/browser/ash/multidevice_setup",
"//chrome/browser/ash/net",
"//chrome/browser/ash/notifications",
"//chrome/browser/ash/policy/core",
"//chrome/browser/ash/policy/display",
"//chrome/browser/ash/policy/dlp",
"//chrome/browser/ash/policy/external_data/handlers",
"//chrome/browser/ash/policy/handlers",
"//chrome/browser/ash/policy/off_hours",
"//chrome/browser/ash/privacy_hub",
"//chrome/browser/ash/profiles",
"//chrome/browser/ash/settings",
"//chrome/browser/ash/sync",
"//chrome/browser/ash/system",
"//chrome/browser/ash/system_web_apps",
"//chrome/browser/ash/system_web_apps/apps/calculator_app",
"//chrome/browser/ash/system_web_apps/apps/camera_app",
"//chrome/browser/ash/system_web_apps/apps/personalization_app",
"//chrome/browser/ash/wallpaper",
"//chrome/browser/ash/wallpaper_handlers",
"//chrome/browser/bitmap_fetcher",
"//chrome/browser/chromeos",
"//chrome/browser/chromeos/arc",
"//chrome/browser/chromeos/extensions/vpn_provider",
"//chrome/browser/chromeos/network",
"//chrome/browser/chromeos/tablet_mode",
"//chrome/browser/enterprise/connectors/device_trust/attestation/ash",
"//chrome/browser/extensions",
"//chrome/browser/media/router:media_router_feature",
"//chrome/browser/media/router/discovery/access_code:access_code_cast_feature",
"//chrome/browser/profiles",
"//chrome/browser/profiles:profile",
"//chrome/browser/scalable_iph:scalable_iph_factory",
"//chrome/browser/sync",
"//chrome/browser/ui:ui_features",
"//chrome/browser/ui/ash/accelerator",
"//chrome/browser/ui/ash/accessibility",
"//chrome/browser/ui/ash/annotator",
"//chrome/browser/ui/ash/app_access",
"//chrome/browser/ui/ash/arc",
"//chrome/browser/ui/ash/back_gesture",
"//chrome/browser/ui/ash/boca",
"//chrome/browser/ui/ash/capture_mode",
"//chrome/browser/ui/ash/cast_config",
"//chrome/browser/ui/ash/clipboard",
"//chrome/browser/ui/ash/desks",
"//chrome/browser/ui/ash/download_status",
"//chrome/browser/ui/ash/focus_mode",
"//chrome/browser/ui/ash/game_dashboard",
"//chrome/browser/ui/ash/global_media_controls",
"//chrome/browser/ui/ash/holding_space",
"//chrome/browser/ui/ash/in_session_auth",
"//chrome/browser/ui/ash/input_method",
"//chrome/browser/ui/ash/keyboard",
"//chrome/browser/ui/ash/login",
"//chrome/browser/ui/ash/main_extra_parts",
"//chrome/browser/ui/ash/media_client",
"//chrome/browser/ui/ash/multi_user",
"//chrome/browser/ui/ash/network",
"//chrome/browser/ui/ash/new_window",
"//chrome/browser/ui/ash/picker",
"//chrome/browser/ui/ash/projector",
"//chrome/browser/ui/ash/session",
"//chrome/browser/ui/ash/sharesheet",
"//chrome/browser/ui/ash/shelf",
"//chrome/browser/ui/ash/shelf/app_service",
"//chrome/browser/ui/ash/shell_delegate",
"//chrome/browser/ui/ash/shell_init",
"//chrome/browser/ui/ash/system",
"//chrome/browser/ui/ash/system_web_apps",
"//chrome/browser/ui/ash/user_education",
"//chrome/browser/ui/ash/wallpaper",
"//chrome/browser/ui/ash/web_view",
"//chrome/browser/ui/ash/wm",
"//chrome/browser/ui/chromeos",
"//chrome/browser/ui/chromeos/read_write_cards:read_write_cards_manager",
"//chrome/browser/ui/quick_answers",
"//chrome/browser/ui/webui/ash",
"//chrome/browser/ui/webui/ash/assistant_optin",
"//chrome/browser/ui/webui/ash/lock_screen_reauth",
"//chrome/browser/ui/webui/ash/login",
"//chrome/browser/ui/webui/ash/login/testapi",
"//chrome/browser/ui/webui/ash/multidevice_setup",
"//chrome/browser/ui/webui/ash/set_time_dialog",
"//chrome/browser/ui/webui/ash/settings",
"//chrome/browser/ui/webui/ash/settings/pages/multidevice",
"//chrome/browser/web_applications",
"//chrome/browser/webshare:storage",
"//chrome/common",
"//chrome/common:channel_info",
"//chromeos/ash/components/assistant:buildflags",
"//chromeos/ash/components/boca",
"//chromeos/ash/components/browser_context_helper",
"//chromeos/ash/components/cryptohome",
"//chromeos/ash/components/dbus",
"//chromeos/ash/components/dbus/resourced",
"//chromeos/ash/components/dbus/session_manager",
"//chromeos/ash/components/game_mode",
"//chromeos/ash/components/geolocation",
"//chromeos/ash/components/heatmap",
"//chromeos/ash/components/login/session",
"//chromeos/ash/components/network",
"//chromeos/ash/components/network/portal_detector",
"//chromeos/ash/components/phonehub",
"//chromeos/ash/components/settings",
"//chromeos/ash/components/standalone_browser",
"//chromeos/ash/services/bluetooth_config",
"//chromeos/ash/services/bluetooth_config:in_process_bluetooth_config",
"//chromeos/ash/services/multidevice_setup",
"//chromeos/components/mahi/public/cpp",
"//components/access_code_cast/common:metrics",
"//components/arc",
"//components/feature_engagement/public",
"//components/media_router/browser",
"//components/media_router/common",
"//components/policy/core/common",
"//components/session_manager/core",
"//components/startup_metric_utils",
"//components/supervised_user/core/browser",
"//components/ui_devtools",
"//components/url_formatter",
"//components/user_manager",
"//components/version_info",
"//components/webapps/common",
"//content/public/browser",
"//extensions/browser",
"//extensions/common",
"//services/audio/public/cpp",
"//services/device/public/cpp/geolocation",
"//services/preferences/public/cpp",
"//ui/chromeos",
"//ui/display",
"//ui/events/ozone/evdev",
"//ui/touch_selection",
"//url",
]
allow_circular_includes_from = [
"//chrome/browser/apps/app_service",
"//chrome/browser/ui/ash/login",
"//chrome/browser/ash",
"//chrome/browser/ash/accessibility",
"//chrome/browser/ash/app_list",
"//chrome/browser/ash/app_list/search/files",
"//chrome/browser/ash/app_list/search/local_image_search",
"//chrome/browser/ash/arc/notification",
"//chrome/browser/ash/arc/print_spooler",
"//chrome/browser/ash/eol",
"//chrome/browser/ash/extensions/autotest_private",
"//chrome/browser/ash/input_method",
"//chrome/browser/ash/lock_screen_apps",
"//chrome/browser/ash/login",
"//chrome/browser/ash/login/demo_mode",
"//chrome/browser/ash/login/lock",
"//chrome/browser/ash/login/screens",
"//chrome/browser/ash/login/session",
"//chrome/browser/ash/login/ui",
"//chrome/browser/ash/login/ui/login_screen_extension_ui",
"//chrome/browser/ash/login/users/avatar",
"//chrome/browser/ash/notifications",
"//chrome/browser/ash/policy/dlp",
"//chrome/browser/ash/policy/external_data/handlers",
"//chrome/browser/ash/policy/handlers",
"//chrome/browser/ash/privacy_hub",
"//chrome/browser/ash/system_web_apps/apps/personalization_app",
"//chrome/browser/ash/arc/wallpaper",
"//chrome/browser/chromeos",
"//chrome/browser/extensions",
"//chrome/browser/ui/ash/main_extra_parts",
"//chrome/browser/ui/ash/capture_mode",
"//chrome/browser/ui/ash/desks",
"//chrome/browser/ui/ash/download_status",
"//chrome/browser/ui/ash/game_dashboard",
"//chrome/browser/ui/ash/holding_space",
"//chrome/browser/ui/ash/multi_user",
"//chrome/browser/ui/ash/network",
"//chrome/browser/ui/ash/sharesheet",
"//chrome/browser/ui/ash/picker",
"//chrome/browser/ui/ash/shelf",
"//chrome/browser/ui/ash/shell_delegate",
"//chrome/browser/ui/ash/shell_init",
"//chrome/browser/ui/webui/ash",
"//chrome/browser/ui/webui/ash/assistant_optin",
"//chrome/browser/ui/webui/ash/login",
"//chrome/browser/ui/webui/ash/login/testapi",
"//chrome/browser/ui/webui/ash/settings/pages/multidevice",
]
}
static_library("test_support") {
testonly = true
deps = [
":ash",
"//ash/public/cpp",
"//ash/webui/common/mojom:sea_pen",
"//base",
"//components/user_manager",
"//testing/gmock",
"//testing/gtest",
"//ui/wm/public",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "window_pin_util_ash_unittest.cc" ]
deps = [
":ash",
":test_support",
"//ash:test_support",
"//ash/constants",
"//base/test:test_support",
"//chrome/browser/apps/app_service",
"//chrome/browser/apps/app_service:test_support",
"//chrome/browser/ash/crosapi:test_support",
"//chrome/browser/ash/extensions",
"//chrome/browser/ash/login/users:test_support",
"//chrome/browser/ash/profiles",
"//chrome/browser/ash/settings:test_support",
"//chrome/browser/ash/wallpaper_handlers",
"//chrome/browser/ash/wallpaper_handlers:test_support",
"//chrome/browser/policy:onc",
"//chrome/browser/ui/ash/assistant",
"//chrome/browser/ui/chromeos",
"//chrome/common",
"//chrome/test:test_support",
"//chromeos/ash/components/cryptohome",
"//chromeos/ash/components/login/login_state",
"//chromeos/ash/components/login/session",
"//chromeos/ash/components/standalone_browser",
"//chromeos/ui/frame",
"//components/account_id",
"//components/prefs",
"//components/session_manager/core",
"//components/user_manager",
"//components/value_store:test_support",
"//content/test:test_support",
"//net",
"//net:test_support",
"//testing/gtest",
# Gather unit tests from subdirectories.
"//chrome/browser/ui/ash/accessibility:unit_tests",
"//chrome/browser/ui/ash/annotator:unit_tests",
"//chrome/browser/ui/ash/app_access:unit_tests",
"//chrome/browser/ui/ash/app_icon_color_cache:unit_tests",
"//chrome/browser/ui/ash/arc:unit_tests",
"//chrome/browser/ui/ash/assistant:unit_tests",
"//chrome/browser/ui/ash/birch:unit_tests",
"//chrome/browser/ui/ash/boca:unit_tests",
"//chrome/browser/ui/ash/clipboard:unit_tests",
"//chrome/browser/ui/ash/desks:unit_tests",
"//chrome/browser/ui/ash/device_scheduled_reboot:unit_tests",
"//chrome/browser/ui/ash/glanceables:unit_tests",
"//chrome/browser/ui/ash/global_media_controls:unit_tests",
"//chrome/browser/ui/ash/holding_space:unit_tests",
"//chrome/browser/ui/ash/in_session_auth:unit_tests",
"//chrome/browser/ui/ash/input_method:unit_tests",
"//chrome/browser/ui/ash/keyboard:unit_tests",
"//chrome/browser/ui/ash/media_client:unit_tests",
"//chrome/browser/ui/ash/multi_user:unit_tests",
"//chrome/browser/ui/ash/network:unit_tests",
"//chrome/browser/ui/ash/picker:unit_tests",
"//chrome/browser/ui/ash/projector:unit_tests",
"//chrome/browser/ui/ash/session:unit_tests",
"//chrome/browser/ui/ash/sharesheet:unit_tests",
"//chrome/browser/ui/ash/shelf:unit_tests",
"//chrome/browser/ui/ash/system:unit_tests",
"//chrome/browser/ui/ash/test:unit_tests",
"//chrome/browser/ui/ash/user_education:unit_tests",
"//chrome/browser/ui/ash/wallpaper:unit_tests",
]
}
source_set("browser_tests") {
testonly = true
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
sources = [ "screen_orientation_delegate_chromeos_browsertest.cc" ]
deps = [
":ash",
"//ash",
"//ash/constants",
"//ash/public/cpp",
"//base/test:test_support",
"//chrome/browser:browser_process",
"//chrome/browser/apps/app_service",
"//chrome/browser/ash/login",
"//chrome/browser/ash/login:test_support",
"//chrome/browser/ash/login/lock",
"//chrome/browser/ash/login/lock:test_support",
"//chrome/browser/ash/login/session:test_support",
"//chrome/browser/ash/login/test:test_support",
"//chrome/browser/ash/login/ui",
"//chrome/browser/ash/policy/core",
"//chrome/browser/ash/policy/core:test_support",
"//chrome/browser/ash/profiles",
"//chrome/browser/ash/scalable_iph:test_support",
"//chrome/browser/ash/settings",
"//chrome/browser/ash/settings:test_support",
"//chrome/browser/ash/wallpaper_handlers:test_support",
"//chrome/browser/chromeos/arc",
"//chrome/browser/media/router/discovery/access_code:access_code_cast_feature",
"//chrome/browser/profiles:profile",
"//chrome/browser/ui",
"//chrome/browser/ui/ash:test_support",
"//chrome/browser/ui/ash/new_window",
"//chrome/browser/ui/ash/system_web_apps",
"//chrome/browser/web_applications",
"//chrome/browser/web_applications:web_applications_test_support",
"//chrome/common",
"//chrome/test:test_support",
"//chrome/test/base/ash/util:test_support",
"//chrome/test/media_router/access_code_cast:access_code_cast_integration_base",
"//chromeos/ash/components/settings",
"//components/account_id",
"//components/feature_engagement/test:test_support",
"//components/media_router/browser",
"//components/media_router/browser:test_support",
"//components/media_router/common",
"//components/media_router/common:test_support",
"//components/policy/core/common",
"//components/prefs",
"//components/user_manager",
"//components/value_store:test_support",
"//content/public/browser",
"//content/test:test_support",
"//services/audio/public/cpp",
"//testing/gtest",
"//ui/base",
"//ui/chromeos",
"//ui/events:test_support",
# Gather browser tests from subdirectories.
"//chrome/browser/ui/ash/annotator:browser_tests",
"//chrome/browser/ui/ash/app_list:browser_tests",
"//chrome/browser/ui/ash/arc:browser_tests",
"//chrome/browser/ui/ash/back_gesture:browser_tests",
"//chrome/browser/ui/ash/birch:browser_tests",
"//chrome/browser/ui/ash/boca:browser_tests",
"//chrome/browser/ui/ash/capture_mode:browser_tests",
"//chrome/browser/ui/ash/clipboard:browser_tests",
"//chrome/browser/ui/ash/desks:browser_tests",
"//chrome/browser/ui/ash/device_scheduled_reboot:browser_tests",
"//chrome/browser/ui/ash/download_status:browser_tests",
"//chrome/browser/ui/ash/focus_mode:browser_tests",
"//chrome/browser/ui/ash/glanceables:browser_tests",
"//chrome/browser/ui/ash/global_media_controls:browser_tests",
"//chrome/browser/ui/ash/google_one:browser_tests",
"//chrome/browser/ui/ash/holding_space:browser_tests",
"//chrome/browser/ui/ash/keyboard:browser_tests",
"//chrome/browser/ui/ash/network:browser_tests",
"//chrome/browser/ui/ash/new_window:browser_tests",
"//chrome/browser/ui/ash/picker:browser_tests",
"//chrome/browser/ui/ash/projector:browser_tests",
"//chrome/browser/ui/ash/sharesheet:browser_tests",
"//chrome/browser/ui/ash/shelf:browser_tests",
"//chrome/browser/ui/ash/shelf/app_service:browser_tests",
"//chrome/browser/ui/ash/system:browser_tests",
"//chrome/browser/ui/ash/test:browser_tests",
"//chrome/browser/ui/ash/thumbnail_loader:browser_tests",
"//chrome/browser/ui/ash/user_education:browser_tests",
"//chrome/browser/ui/ash/user_education/views:browser_tests",
"//chrome/browser/ui/ash/web_view:browser_tests",
"//chrome/browser/ui/ash/wm:browser_tests",
]
if (enable_assistant_integration_tests) {
deps += [ "//chrome/browser/ui/ash/assistant:browser_tests" ]
}
}
if (is_chromeos_device) {
group("integration_tests") {
testonly = true
deps = [
"//chrome/browser/ui/ash/shelf:integration_tests",
"//chrome/browser/ui/ash/test:integration_tests",
]
}
} else {
group("interactive_ui_tests") {
testonly = true
deps = [
"//chrome/browser/ui/ash/app_list:interactive_ui_tests",
"//chrome/browser/ui/ash/clipboard:interactive_ui_tests",
"//chrome/browser/ui/ash/desks:interactive_ui_tests",
"//chrome/browser/ui/ash/picker:interactive_ui_tests",
"//chrome/browser/ui/ash/user_education/welcome_tour:interactive_ui_tests",
]
}
}