summaryrefslogtreecommitdiffstats
path: root/device/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'device/BUILD.gn')
-rw-r--r--device/BUILD.gn24
1 files changed, 9 insertions, 15 deletions
diff --git a/device/BUILD.gn b/device/BUILD.gn
index c81e8dc3..4961292 100644
--- a/device/BUILD.gn
+++ b/device/BUILD.gn
@@ -30,14 +30,20 @@ test("device_unittests") {
"battery/battery_status_manager_win_unittest.cc",
"battery/battery_status_service_unittest.cc",
"bluetooth/bluetooth_adapter_mac_unittest.mm",
+ "bluetooth/bluetooth_adapter_profile_chromeos_unittest.cc",
"bluetooth/bluetooth_adapter_unittest.cc",
"bluetooth/bluetooth_adapter_win_unittest.cc",
+ "bluetooth/bluetooth_advertisement_chromeos_unittest.cc",
"bluetooth/bluetooth_advertisement_unittest.cc",
+ "bluetooth/bluetooth_audio_sink_chromeos_unittest.cc",
+ "bluetooth/bluetooth_chromeos_unittest.cc",
"bluetooth/bluetooth_device_unittest.cc",
"bluetooth/bluetooth_device_win_unittest.cc",
"bluetooth/bluetooth_discovery_filter_unittest.cc",
+ "bluetooth/bluetooth_gatt_chromeos_unittest.cc",
"bluetooth/bluetooth_low_energy_win_unittest.cc",
"bluetooth/bluetooth_service_record_win_unittest.cc",
+ "bluetooth/bluetooth_socket_chromeos_unittest.cc",
"bluetooth/bluetooth_task_manager_win_unittest.cc",
"bluetooth/bluetooth_uuid_unittest.cc",
"bluetooth/test/bluetooth_test.cc",
@@ -135,28 +141,16 @@ test("device_unittests") {
}
if (is_chromeos) {
+ configs += [ "//build/config/linux:dbus" ]
+
deps += [
"//chromeos",
"//chromeos:test_support",
"//chromeos:test_support_without_gmock",
+ "//dbus",
]
}
- if (is_chromeos || is_linux) {
- configs += [ "//build/config/linux:dbus" ]
-
- sources += [
- "bluetooth/bluetooth_adapter_profile_bluez_unittest.cc",
- "bluetooth/bluetooth_advertisement_bluez_unittest.cc",
- "bluetooth/bluetooth_audio_sink_bluez_unittest.cc",
- "bluetooth/bluetooth_bluez_unittest.cc",
- "bluetooth/bluetooth_gatt_bluez_unittest.cc",
- "bluetooth/bluetooth_socket_bluez_unittest.cc",
- ]
-
- deps += [ "//dbus" ]
- }
-
if (is_posix && !is_android && !is_mac) {
libs = [ "rt" ]
}