# 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("people") {
sources = [
"account_manager_ui_handler.cc",
"account_manager_ui_handler.h",
"fingerprint_handler.cc",
"fingerprint_handler.h",
"os_sync_handler.cc",
"os_sync_handler.h",
"parental_controls_handler.cc",
"parental_controls_handler.h",
"people_section.cc",
"people_section.h",
"quick_unlock_handler.cc",
"quick_unlock_handler.h",
]
public_deps = [
"//base",
"//chrome/browser:browser_public_dependencies",
"//chrome/browser/ash/account_manager",
"//chrome/browser/ash/auth",
"//chrome/browser/ui/webui/ash/settings/pages/privacy",
"//chromeos/ash/components/login/auth",
"//components/account_id",
"//components/account_manager_core",
"//components/prefs",
"//components/session_manager/core",
"//components/signin/public/identity_manager",
"//components/sync/service",
"//content/public/browser",
"//mojo/public/cpp/bindings",
"//services/device/public/mojom",
]
deps = [
"//ash/constants",
"//ash/public/cpp",
"//base:i18n",
"//chrome/app:branded_strings",
"//chrome/app:generated_resources",
"//chrome/browser:browser_process",
"//chrome/browser:resources",
"//chrome/browser/apps/app_service",
"//chrome/browser/ash/app_list/arc",
"//chrome/browser/ash/child_accounts",
"//chrome/browser/ash/crosapi:browser_util",
"//chrome/browser/ash/login/quick_unlock",
"//chrome/browser/ash/profiles",
"//chrome/browser/profiles:profile",
"//chrome/browser/sync",
"//chrome/browser/ui:ui_features",
"//chrome/browser/ui/webui",
"//chrome/browser/ui/webui/ash/account_manager",
"//chrome/browser/ui/webui/ash/add_supervision",
"//chrome/browser/ui/webui/ash/settings/search",
"//chrome/common",
"//chromeos/ash/components/account_manager",
"//chromeos/ash/components/dbus/userdataauth",
"//chromeos/ash/components/osauth/public",
"//components/omnibox/common",
"//components/services/app_service",
"//components/signin/public/base",
"//components/strings:components_strings",
"//components/sync/base",
"//components/user_manager",
"//google_apis",
"//services/network/public/mojom:url_loader_base",
"//skia:skia_core_public_headers",
"//ui/base",
"//ui/chromeos",
"//ui/chromeos/resources",
"//ui/display/types",
"//ui/events:event_constants",
"//ui/gfx",
"//url",
]
allow_circular_includes_from =
[ "//chrome/browser/ui/webui/ash/settings/pages/privacy" ]
}
source_set("browser_tests") {
testonly = true
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
sources = [ "account_manager_ui_handler_browsertest.cc" ]
deps = [
":people",
"//ash/constants",
"//base",
"//base/test:test_support",
"//chrome/browser",
"//chrome/browser:browser_process",
"//chrome/browser/ash/account_manager",
"//chrome/browser/ash/login/users:test_support",
"//chrome/browser/ash/profiles",
"//chrome/test:test_support",
"//chrome/test:test_support_ui",
"//chromeos/ash/components/account_manager",
"//chromeos/ash/components/standalone_browser",
"//components/account_manager_core",
"//components/signin/public/identity_manager",
"//components/signin/public/identity_manager:test_support",
"//components/supervised_user/core/common",
"//components/user_manager",
"//components/user_manager:common",
"//content/test:test_support",
"//testing/gmock",
"//testing/gtest",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "os_sync_handler_unittest.cc" ]
deps = [
":people",
"//ash/public/cpp:test_support",
"//base",
"//chrome/browser/sync",
"//chrome/browser/ui/webui/ash/settings",
"//chrome/common",
"//chrome/test:test_support",
"//chrome/test:test_support_ui",
"//components/keyed_service/core",
"//components/signin/public/identity_manager:test_support",
"//components/sync:test_support",
"//components/sync/base",
"//content/public/browser",
"//content/test:test_support",
"//testing/gmock",
"//testing/gtest",
]
}