Index: device/BUILD.gn |
diff --git a/device/BUILD.gn b/device/BUILD.gn |
index 4961292c55c9fca030f0cd129ed5c294fe44783c..c81e8dc39a72d9a8cb2a0d3d5ea75fa7516c14f8 100644 |
--- a/device/BUILD.gn |
+++ b/device/BUILD.gn |
@@ -30,20 +30,14 @@ 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", |
@@ -141,16 +135,28 @@ 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" ] |
} |