| # 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", |
| "//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", |
| ] |
| |
| # TODO(crbug.com/40031409): Fix code that adds exit-time destructors and |
| # enable the diagnostic by removing this line. |
| configs += [ "//build/config/compiler:no_exit_time_destructors" ] |
| } |