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 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
|
# 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/chromeos/crosier_tests.gni")
import("//build/config/chromeos/ui_mode.gni")
assert(is_chromeos)
static_library("bluetooth") {
sources = [
"bluetooth_log_controller.cc",
"bluetooth_log_controller.h",
"debug_logs_manager.cc",
"debug_logs_manager.h",
"debug_logs_manager_factory.cc",
"debug_logs_manager_factory.h",
"hats_bluetooth_revamp_trigger_impl.cc",
"hats_bluetooth_revamp_trigger_impl.h",
]
deps = [
"//chrome/browser/ash/profiles",
"//chromeos/ash/components/dbus/upstart",
"//components/device_event_log",
"//components/session_manager/core",
]
public_deps = [
"//ash",
"//base",
"//chrome/browser:browser_public_dependencies",
"//chrome/browser/ash/hats",
"//chrome/browser/profiles",
"//chrome/browser/ui/webui/bluetooth_internals:mojo_bindings",
"//device/bluetooth",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"bluetooth_log_controller_unittest.cc",
"debug_logs_manager_unittest.cc",
]
deps = [
":bluetooth",
"//ash/constants",
"//base/test:test_support",
"//chromeos/ash/components/dbus/upstart",
"//components/account_id",
"//components/prefs:test_support",
"//components/user_manager:test_support",
"//dbus",
"//device/bluetooth",
]
}
source_set("browser_tests") {
testonly = true
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
sources = [ "hats_bluetooth_revamp_trigger_impl_browsertest.cc" ]
deps = [
":bluetooth",
"//ash/constants",
"//ash/public/cpp",
"//base/test:test_support",
"//chrome/browser/ash/hats",
"//chrome/browser/profiles:profile",
"//chrome/browser/ui",
"//chrome/common",
"//chrome/test:test_support",
"//chromeos/ash/components/network",
"//components/prefs",
"//components/session_manager/core",
"//content/test:test_support",
]
}
if (is_chromeos_device) {
crosier_tests("integration_tests") {
sources = [ "bluetooth_integration_test.cc" ]
sources_metadata = [ "bluetooth_integration_test.yaml" ]
deps = [
"//ash",
"//base",
"//base/test:test_support",
"//chrome/browser/ui",
"//chrome/test:ash_integration_test_support",
"//chrome/test:test_support",
"//chrome/test/base/ash/interactive/bluetooth:test_support",
"//dbus",
"//device/bluetooth",
"//testing/gtest",
"//ui/base:test_support",
"//ui/views",
]
}
}
|