blob: 9f33e7c4b3fc63da8ef32b45c16ef025df67ad3f [file] [log] [blame]
# 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.
import("//build/config/chromeos/ui_mode.gni")
assert(is_chromeos)
static_library("bluetooth") {
sources = [
"arc_bluetooth_bridge.cc",
"arc_bluetooth_bridge.h",
"arc_bluetooth_task_queue.cc",
"arc_bluetooth_task_queue.h",
"arc_bluez_bridge.cc",
"arc_bluez_bridge.h",
"arc_floss_bridge.cc",
"arc_floss_bridge.h",
]
public_deps = [ "//chrome/browser:browser_public_dependencies" ]
deps = [
"//ash/constants",
"//base",
"//chrome/browser/ash/profiles",
"//chrome/browser/profiles:profile",
"//chrome/browser/ui/webui/ash/bluetooth",
"//chromeos/ash/experiences/arc",
"//chromeos/ash/experiences/arc/intent_helper",
"//chromeos/ash/experiences/arc/intent_helper:arc_intent_helper_constants",
"//components/device_event_log",
"//components/prefs",
"//components/user_manager",
"//device/bluetooth",
"//mojo/public/cpp/bindings",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"arc_bluetooth_bridge_unittest.cc",
"arc_bluetooth_task_queue_unittest.cc",
"arc_floss_bridge_unittest.cc",
]
deps = [
":bluetooth",
"//base",
"//base/test:test_support",
"//chromeos/ash/experiences/arc",
"//chromeos/ash/experiences/arc:arc_test_support",
"//chromeos/ash/experiences/arc/mojom",
"//device/bluetooth",
"//device/bluetooth:fake_bluetooth",
"//testing/gmock",
"//testing/gtest",
]
# 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" ]
}