| # Copyright 2024 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) |
| |
| static_library("bluetooth") { |
| sources = [ |
| "bluetooth_handler.cc", |
| "bluetooth_handler.h", |
| "bluetooth_section.cc", |
| "bluetooth_section.h", |
| "fast_pair_saved_devices_handler.cc", |
| "fast_pair_saved_devices_handler.h", |
| "fast_pair_software_scanning_handler.cc", |
| "fast_pair_software_scanning_handler.h", |
| ] |
| |
| public_deps = [ |
| "//ash/quick_pair/feature_status_tracker", |
| "//ash/quick_pair/proto:fastpair_proto", |
| "//base", |
| "//chrome/browser/ui/webui/settings", |
| "//device/bluetooth", |
| "//ui/gfx", |
| ] |
| |
| deps = [ |
| "//ash/constants", |
| "//ash/public/cpp", |
| "//ash/quick_pair/common", |
| "//ash/quick_pair/repository", |
| "//ash/webui/settings/public/constants:mojom", |
| "//chrome/app:generated_resources", |
| "//chrome/browser:browser_public_dependencies", |
| "//chrome/browser/ui/webui/ash/bluetooth", |
| "//chrome/browser/ui/webui/ash/settings/search", |
| "//chrome/browser/ui/webui/ash/settings/search/mojom", |
| "//chrome/common", |
| "//chrome/common:chrome_features", |
| "//chromeos/ash/components/network", |
| "//chromeos/strings", |
| "//components/cross_device/logging", |
| "//components/prefs", |
| "//content/public/browser", |
| "//device/bluetooth/strings", |
| "//ui/base", |
| "//ui/webui", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| |
| sources = [ |
| "bluetooth_handler_unittest.cc", |
| "fast_pair_saved_devices_handler_unittest.cc", |
| ] |
| |
| deps = [ |
| ":bluetooth", |
| "//ash:test_support", |
| "//ash/public/cpp", |
| "//ash/quick_pair/common", |
| "//ash/quick_pair/common:test_support", |
| "//ash/quick_pair/proto:fastpair_proto", |
| "//ash/quick_pair/repository", |
| "//ash/quick_pair/repository:test_support", |
| "//base", |
| "//base/test:test_support", |
| "//content/test:test_support", |
| "//device/bluetooth", |
| "//device/bluetooth:mocks", |
| "//testing/gmock", |
| "//testing/gtest", |
| "//ui/gfx:test_support", |
| ] |
| |
| # 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" ] |
| } |