1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
|
# Copyright 2020 The Chromium Authors
# 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.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",
]
public_deps = [
"//third_party/nearby:encrypted_metadata_proto",
"//third_party/nearby:rpc_resources_proto",
]
deps = [
"//base",
"//chrome/browser/nearby_sharing/client",
"//chrome/browser/nearby_sharing/common",
"//chrome/browser/nearby_sharing/contacts",
"//chrome/browser/nearby_sharing/local_device_data",
"//chromeos/ash/components/nearby/common/client",
"//chromeos/ash/components/nearby/common/proto",
"//chromeos/ash/components/nearby/common/scheduling",
"//chromeos/ash/services/nearby/public/mojom",
"//components/cross_device/logging:logging",
"//components/leveldb_proto",
"//components/prefs",
"//crypto",
"//device/bluetooth",
"//third_party/nearby:certificate_rpc_proto",
]
}
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",
"//chromeos/ash/components/nearby/common/proto",
"//chromeos/ash/services/nearby/public/mojom",
"//components/leveldb_proto",
"//components/prefs",
"//crypto",
"//device/bluetooth/public/cpp",
"//third_party/nearby:encrypted_metadata_proto",
"//third_party/nearby:rpc_resources_proto",
"//third_party/nearby:timestamp_proto",
]
}
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",
"//chromeos/ash/components/nearby/common/client",
"//chromeos/ash/components/nearby/common/proto",
"//chromeos/ash/components/nearby/common/scheduling:test_support",
"//chromeos/ash/services/nearby/public/mojom",
"//components/leveldb_proto:test_support",
"//components/prefs:test_support",
"//crypto",
"//device/bluetooth",
"//device/bluetooth:mocks",
"//testing/gtest",
"//third_party/nearby:rpc_resources_proto",
]
}
|