# 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("trusted_vault") {
sources = [
"trusted_vault_backend_ash.cc",
"trusted_vault_backend_ash.h",
"trusted_vault_backend_service_ash.cc",
"trusted_vault_backend_service_ash.h",
"trusted_vault_backend_service_factory_ash.cc",
"trusted_vault_backend_service_factory_ash.h",
]
public_deps = [
"//base",
"//chrome/browser:browser_public_dependencies",
"//chrome/browser/profiles:profile",
"//chromeos/crosapi/mojom",
"//components/keyed_service/core",
"//components/trusted_vault",
"//mojo/public/cpp/bindings",
]
deps = [
"//components/account_manager_core",
"//components/signin/public/base",
"//components/signin/public/identity_manager",
"//device/fido",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"trusted_vault_backend_ash_unittest.cc",
"trusted_vault_backend_service_ash_unittest.cc",
]
deps = [
":trusted_vault",
"//base/test:test_support",
"//chromeos/crosapi/mojom",
"//components/signin/public/identity_manager",
"//components/signin/public/identity_manager:test_support",
"//components/trusted_vault:test_support",
"//device/fido",
"//testing/gmock",
"//testing/gtest",
]
}