blob: 8dc6f0a87b1538552e6ef8afa7dbfa108a275cb8 [file] [log] [blame]
# Copyright (c) 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
assert(is_chromeos, "Nearby Share is CrOS only")
source_set("certificates") {
sources = [
"common.cc",
"common.h",
"constants.cc",
"constants.h",
"nearby_share_certificate_manager.cc",
"nearby_share_certificate_manager.h",
"nearby_share_certificate_manager_impl.cc",
"nearby_share_certificate_manager_impl.h",
"nearby_share_certificate_storage.cc",
"nearby_share_certificate_storage.h",
"nearby_share_certificate_storage_impl.cc",
"nearby_share_certificate_storage_impl.h",
"nearby_share_decrypted_public_certificate.cc",
"nearby_share_decrypted_public_certificate.h",
"nearby_share_encrypted_metadata_key.cc",
"nearby_share_encrypted_metadata_key.h",
"nearby_share_private_certificate.cc",
"nearby_share_private_certificate.h",
]
deps = [
"//base",
"//chrome/browser/nearby_sharing/client",
"//chrome/browser/nearby_sharing/common",
"//chrome/browser/nearby_sharing/contacts",
"//chrome/browser/nearby_sharing/local_device_data",
"//chrome/browser/nearby_sharing/logging",
"//chrome/browser/nearby_sharing/proto",
"//chrome/browser/nearby_sharing/scheduling",
"//chrome/browser/ui/webui/nearby_share/public/mojom",
"//components/leveldb_proto",
"//components/prefs",
"//crypto",
"//device/bluetooth",
]
}
source_set("test_support") {
testonly = true
sources = [
"fake_nearby_share_certificate_manager.cc",
"fake_nearby_share_certificate_manager.h",
"fake_nearby_share_certificate_storage.cc",
"fake_nearby_share_certificate_storage.h",
"test_util.cc",
"test_util.h",
]
deps = [
":certificates",
"//base",
"//chrome/browser/nearby_sharing/proto",
"//chrome/browser/ui/webui/nearby_share/public/mojom",
"//components/leveldb_proto",
"//components/prefs",
"//crypto",
"//device/bluetooth/public/cpp",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"common_unittest.cc",
"nearby_share_certificate_manager_impl_unittest.cc",
"nearby_share_certificate_storage_impl_unittest.cc",
"nearby_share_decrypted_public_certificate_unittest.cc",
"nearby_share_private_certificate_unittest.cc",
]
deps = [
":certificates",
":test_support",
"//base",
"//base/test:test_support",
"//chrome/browser/nearby_sharing/client:test_support",
"//chrome/browser/nearby_sharing/common",
"//chrome/browser/nearby_sharing/contacts:test_support",
"//chrome/browser/nearby_sharing/local_device_data:test_support",
"//chrome/browser/nearby_sharing/proto",
"//chrome/browser/nearby_sharing/scheduling:test_support",
"//chrome/browser/ui/webui/nearby_share/public/mojom",
"//components/leveldb_proto:test_support",
"//components/prefs:test_support",
"//crypto",
"//device/bluetooth",
"//device/bluetooth:mocks",
"//testing/gtest",
]
}