| # Copyright 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. |
| |
| 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", |
| ] |
| |
| deps = [ |
| "//base", |
| "//chrome/browser/nearby_sharing/client", |
| "//chrome/browser/nearby_sharing/common", |
| "//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/prefs", |
| ] |
| } |
| |
| 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", |
| "//chrome/browser/nearby_sharing/proto", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| |
| sources = [ |
| "nearby_share_contact_downloader_impl_unittest.cc", |
| "nearby_share_contact_manager_impl_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", |
| "//chrome/browser/nearby_sharing/proto", |
| "//chrome/browser/nearby_sharing/scheduling", |
| "//chrome/browser/nearby_sharing/scheduling:test_support", |
| "//chrome/browser/ui/webui/nearby_share/public/mojom", |
| "//components/sync_preferences:test_support", |
| "//content/test:test_support", |
| "//testing/gtest", |
| ] |
| } |