# 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("nssdb_migration") {
sources = [
"kcer_rollback_helper.cc",
"kcer_rollback_helper.h",
"pkcs12_migrator.cc",
"pkcs12_migrator.h",
]
public_deps = [ "//chrome/browser:browser_public_dependencies" ]
deps = [
"//ash/constants",
"//base",
"//chrome/browser/ash/profiles",
"//chrome/browser/profiles:profile",
"//chrome/common",
"//chromeos/ash/components/network",
"//chromeos/ash/components/tpm",
"//chromeos/components/kcer",
"//chromeos/constants",
"//components/keyed_service/core",
"//components/prefs",
"//components/user_manager",
"//content/public/browser",
"//crypto",
"//net",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"kcer_rollback_helper_unittest.cc",
"pkcs12_migrator_unittest.cc",
]
deps = [
":nssdb_migration",
"//ash/constants",
"//base",
"//base/test:test_support",
"//chrome/browser/ash/kcer",
"//chrome/browser/ash/login/users:test_support",
"//chrome/test:test_support",
"//chromeos/ash/components/browser_context_helper",
"//chromeos/components/kcer",
"//chromeos/components/kcer:test_support",
"//chromeos/constants",
"//components/prefs",
"//components/sync_preferences",
"//testing/gmock",
"//testing/gtest",
]
}