# 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("parent_access_code") {
sources = [
"authenticator.cc",
"authenticator.h",
"config_source.cc",
"config_source.h",
"parent_access_service.cc",
"parent_access_service.h",
]
public_deps = [
"//base",
"//chrome/browser:browser_public_dependencies",
"//components/account_id",
"//crypto",
]
deps = [
"//ash/public/cpp",
"//chrome/browser:browser_process",
"//chrome/common:constants",
"//components/prefs",
"//components/user_manager",
]
}
static_library("test_support") {
testonly = true
sources = [
"parent_access_test_utils.cc",
"parent_access_test_utils.h",
]
public_deps = [
":parent_access_code",
"//base",
"//testing/gtest",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "authenticator_unittest.cc" ]
deps = [
":parent_access_code",
":test_support",
"//base",
"//testing/gtest",
]
}
source_set("browser_tests") {
testonly = true
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
sources = [ "parent_access_service_browsertest.cc" ]
deps = [
"//ash/public/cpp",
"//base",
"//chrome/browser/ash/child_accounts/parent_access_code",
"//chrome/browser/ash/child_accounts/parent_access_code:test_support",
"//chrome/browser/ash/login/test:test_support",
"//chrome/browser/ash/login/users:test_support",
"//chrome/browser/ash/policy/core:test_support",
"//chrome/browser/ash/profiles",
"//chrome/browser/profiles:profile",
"//chrome/test:test_support_ui",
"//components/account_id",
"//components/prefs",
"//components/user_manager",
"//content/test:test_support",
"//testing/gtest",
]
}