# 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/config/chromeos/ui_mode.gni")
assert(is_chromeos_ash)
static_library("multi_user") {
sources = [
"multi_profile_support.cc",
"multi_profile_support.h",
"multi_user_context_menu.h",
"multi_user_context_menu_chromeos.cc",
"multi_user_util.cc",
"multi_user_util.h",
"multi_user_window_manager_helper.cc",
"multi_user_window_manager_helper.h",
"multi_user_window_manager_stub.cc",
"multi_user_window_manager_stub.h",
]
public_deps = [ "//chrome/browser:browser_public_dependencies" ]
deps = [
"//ash",
"//ash/public/cpp",
"//base",
"//chrome/app:command_ids",
"//chrome/browser:browser_process",
"//chrome/browser/ash/accessibility",
"//chrome/browser/ash/app_restore",
"//chrome/browser/ash/arc",
"//chrome/browser/ash/arc/auth",
"//chrome/browser/ash/arc/boot_phase_monitor",
"//chrome/browser/ash/arc/notification",
"//chrome/browser/ash/arc/session",
"//chrome/browser/ash/floating_workspace",
"//chrome/browser/ash/profiles",
"//chrome/browser/ash/system_web_apps/apps",
"//chrome/browser/profiles:profile",
"//chrome/common",
"//components/account_id",
"//components/prefs",
"//components/user_manager",
"//extensions/browser",
]
allow_circular_includes_from = [
"//chrome/browser/ash/accessibility",
"//chrome/browser/ash/arc",
"//chrome/browser/ash/arc/auth",
"//chrome/browser/ash/arc/boot_phase_monitor",
"//chrome/browser/ash/arc/notification",
"//chrome/browser/ash/arc/session",
"//chrome/browser/ash/floating_workspace",
"//chrome/browser/ash/system_web_apps/apps",
]
}
static_library("test_support") {
testonly = true
sources = [
"test_multi_user_window_manager.cc",
"test_multi_user_window_manager.h",
]
deps = [
":multi_user",
"//ash/public/cpp",
"//base",
"//chrome/browser/ui",
"//components/account_id",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"multi_profile_support_unittest.cc",
"multi_user_context_menu_chromeos_unittest.cc",
"multi_user_util_chromeos_unittest.cc",
]
deps = [
":multi_user",
"//ash",
"//ash:test_support",
"//ash/public/cpp",
"//base",
"//chrome/browser/ash/login/users:test_support",
"//chrome/browser/ash/profiles",
"//chrome/browser/ash/settings",
"//chrome/browser/ui",
"//chrome/browser/ui/ash/new_window",
"//chrome/browser/ui/ash/session",
"//chrome/test:test_support",
"//chrome/test:test_support_unit",
"//components/account_id",
"//components/user_manager",
]
}