# 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("user_added_removed") {
sources = [
"user_added_removed_reporter.cc",
"user_added_removed_reporter.h",
]
public_deps = [ "//chrome/browser:browser_public_dependencies" ]
deps = [
"//base",
"//chrome/browser:browser_process",
"//chrome/browser/ash/policy/core",
"//chrome/browser/ash/policy/reporting",
"//chrome/browser/ash/policy/status_collector",
"//chrome/browser/ash/profiles",
"//chrome/browser/policy/messaging_layer/proto:add_remove_user_event_proto",
"//chrome/browser/profiles:profile",
"//chromeos/ash/components/settings",
"//components/reporting/client:report_queue_provider",
"//components/reporting/proto:record_constants",
"//components/user_manager",
]
allow_circular_includes_from = [ "//chrome/browser/ash/policy/core" ]
}
source_set("unit_tests") {
testonly = true
sources = [ "user_added_removed_reporter_unittest.cc" ]
deps = [
":user_added_removed",
"//base",
"//base/test:test_support",
"//chrome/browser/ash/login/users:test_support",
"//chrome/browser/ash/policy/status_collector",
"//chrome/browser/ash/profiles",
"//chrome/browser/policy/messaging_layer/proto:add_remove_user_event_proto",
"//chrome/test:test_support",
"//chromeos/dbus/power",
"//components/reporting/client:test_support",
"//components/reporting/proto:record_constants",
"//components/user_manager",
"//content/test:test_support",
"//testing/gtest",
]
}
source_set("browser_tests") {
testonly = true
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
sources = [ "user_added_removed_reporter_browsertest.cc" ]
deps = [
"//ash",
"//ash/constants",
"//ash/public/cpp",
"//base",
"//chrome/browser/ash/app_mode:test_support",
"//chrome/browser/ash/login/app_mode/test:test_support",
"//chrome/browser/ash/login/test:test_support",
"//chrome/browser/ash/policy/core",
"//chrome/browser/ash/policy/core:test_support",
"//chrome/browser/ash/settings",
"//chrome/browser/ash/settings:test_support",
"//chrome/browser/policy/messaging_layer/proto:add_remove_user_event_proto",
"//chrome/test:test_support",
"//chrome/test:test_support_ui",
"//chromeos/ash/components/dbus/session_manager",
"//chromeos/ash/components/login/auth/public:authpublic",
"//chromeos/ash/components/login/login_state",
"//chromeos/ash/components/settings",
"//chromeos/dbus/missive",
"//chromeos/dbus/missive:test_support",
"//components/account_id",
"//components/policy/core/common",
"//components/policy/core/common:test_support",
"//components/policy/proto",
"//components/reporting/proto:record_constants",
"//components/reporting/proto:record_proto",
"//components/signin/public/identity_manager:test_support",
"//components/user_manager",
"//content/test:test_support",
"//net:test_support",
"//testing/gmock",
"//testing/gtest",
]
}