# 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("credential_storage") {
sources = [
"credential_storage_initializer.cc",
"credential_storage_initializer.h",
"nearby_presence_credential_storage.cc",
"nearby_presence_credential_storage.h",
]
deps = [
"//base",
"//chrome/browser/ash/nearby/presence/credential_storage/metrics",
"//chrome/browser/profiles:profile",
"//chromeos/ash/components/nearby/presence/conversions",
"//chromeos/ash/services/nearby/public/mojom",
"//components/cross_device/logging",
"//components/leveldb_proto",
"//content/public/browser",
"//mojo/public/cpp/bindings",
"//third_party/nearby:connections_credential_proto",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"credential_storage_initializer_unittest.cc",
"nearby_presence_credential_storage_unittest.cc",
]
deps = [
":credential_storage",
"//base",
"//base/test:test_support",
"//chromeos/ash/components/nearby/presence/conversions",
"//chromeos/ash/services/nearby/public/mojom",
"//components/leveldb_proto:test_support",
"//mojo/public/cpp/bindings",
"//testing/gtest",
"//third_party/nearby:connections_credential_proto",
]
}