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
|
# 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("contacts") {
sources = [
"nearby_share_contact_downloader.cc",
"nearby_share_contact_downloader.h",
"nearby_share_contact_downloader_impl.cc",
"nearby_share_contact_downloader_impl.h",
"nearby_share_contact_manager.cc",
"nearby_share_contact_manager.h",
"nearby_share_contact_manager_impl.cc",
"nearby_share_contact_manager_impl.h",
"nearby_share_contacts_sorter.cc",
"nearby_share_contacts_sorter.h",
]
public_deps = [
"//third_party/nearby:contact_rpc_proto",
"//third_party/nearby:rpc_resources_proto",
]
deps = [
"//base",
"//chrome/browser/nearby_sharing/client",
"//chrome/browser/nearby_sharing/common",
"//chrome/browser/nearby_sharing/local_device_data",
"//chromeos/ash/components/nearby/common/client",
"//chromeos/ash/components/nearby/common/scheduling",
"//chromeos/ash/services/nearby/public/mojom",
"//components/cross_device/logging:logging",
"//components/prefs",
"//crypto",
"//third_party/nearby:device_rpc_proto",
]
}
source_set("test_support") {
testonly = true
sources = [
"fake_nearby_share_contact_downloader.cc",
"fake_nearby_share_contact_downloader.h",
"fake_nearby_share_contact_manager.cc",
"fake_nearby_share_contact_manager.h",
]
deps = [
":contacts",
"//base",
"//third_party/nearby:rpc_resources_proto",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"nearby_share_contact_downloader_impl_unittest.cc",
"nearby_share_contact_manager_impl_unittest.cc",
"nearby_share_contacts_sorter_unittest.cc",
]
deps = [
":contacts",
":test_support",
"//base",
"//base/test:test_support",
"//chrome/browser/nearby_sharing/client",
"//chrome/browser/nearby_sharing/client:test_support",
"//chrome/browser/nearby_sharing/common",
"//chrome/browser/nearby_sharing/local_device_data:test_support",
"//chromeos/ash/components/nearby/common/client",
"//chromeos/ash/components/nearby/common/scheduling",
"//chromeos/ash/components/nearby/common/scheduling:test_support",
"//chromeos/ash/services/nearby/public/mojom",
"//components/sync_preferences:test_support",
"//content/test:test_support",
"//testing/gtest",
"//third_party/nearby:contact_rpc_proto",
"//third_party/nearby:rpc_resources_proto",
]
}
|