OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 if (is_android) { | 8 if (is_android) { |
9 import("//build/config/android/rules.gni") # For generate_jni(). | 9 import("//build/config/android/rules.gni") # For generate_jni(). |
10 } | 10 } |
11 | 11 |
12 if (is_mac) { | 12 if (is_mac) { |
13 import("//build/config/mac/mac_sdk.gni") | 13 import("//build/config/mac/mac_sdk.gni") |
14 } | 14 } |
15 | 15 |
16 is_linux_without_udev = is_linux && !use_udev | 16 is_linux_without_udev = is_linux && !use_udev |
17 is_linux_without_dbus = is_linux && !use_dbus | |
18 | 17 |
19 test("device_unittests") { | 18 test("device_unittests") { |
20 sources = [ | 19 sources = [ |
21 "battery/battery_status_manager_win_unittest.cc", | 20 "battery/battery_status_manager_win_unittest.cc", |
22 "battery/battery_status_service_unittest.cc", | 21 "battery/battery_status_service_unittest.cc", |
23 "bluetooth/bluetooth_adapter_mac_unittest.mm", | 22 "bluetooth/bluetooth_adapter_mac_unittest.mm", |
24 "bluetooth/bluetooth_adapter_unittest.cc", | 23 "bluetooth/bluetooth_adapter_unittest.cc", |
25 "bluetooth/bluetooth_adapter_win_unittest.cc", | 24 "bluetooth/bluetooth_adapter_win_unittest.cc", |
26 "bluetooth/bluetooth_advertisement_unittest.cc", | 25 "bluetooth/bluetooth_advertisement_unittest.cc", |
27 "bluetooth/bluetooth_device_unittest.cc", | 26 "bluetooth/bluetooth_device_unittest.cc", |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 "//mojo/common", | 75 "//mojo/common", |
77 "//mojo/edk/system", | 76 "//mojo/edk/system", |
78 "//mojo/public/cpp/bindings", | 77 "//mojo/public/cpp/bindings", |
79 "//net", | 78 "//net", |
80 "//testing/gmock", | 79 "//testing/gmock", |
81 "//testing/gtest", | 80 "//testing/gtest", |
82 "//tools/usb_gadget", | 81 "//tools/usb_gadget", |
83 "//url", | 82 "//url", |
84 ] | 83 ] |
85 | 84 |
86 if (!is_linux_without_dbus && !is_chromeos) { | 85 if (is_linux && !is_chromeos && use_dbus) { |
87 sources += [ "battery/battery_status_manager_linux_unittest.cc" ] | 86 sources += [ "battery/battery_status_manager_linux_unittest.cc" ] |
| 87 deps += [ "//dbus:test_support" ] |
88 } | 88 } |
89 | 89 |
90 # HID and Serial: | 90 # HID and Serial: |
91 # Android doesn't compile. | 91 # Android doesn't compile. |
92 # Linux, requires udev. | 92 # Linux, requires udev. |
93 if (!is_linux_without_udev && !is_android) { | 93 if (!is_linux_without_udev && !is_android) { |
94 sources += [ | 94 sources += [ |
95 "hid/hid_connection_unittest.cc", | 95 "hid/hid_connection_unittest.cc", |
96 "hid/hid_device_filter_unittest.cc", | 96 "hid/hid_device_filter_unittest.cc", |
97 "hid/hid_report_descriptor_unittest.cc", | 97 "hid/hid_report_descriptor_unittest.cc", |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 } | 224 } |
225 | 225 |
226 android_library("bluetooth_test_java") { | 226 android_library("bluetooth_test_java") { |
227 java_files = bluetooth_java_sources_needing_jni | 227 java_files = bluetooth_java_sources_needing_jni |
228 deps = [ | 228 deps = [ |
229 "//base:base_java", | 229 "//base:base_java", |
230 "//device/bluetooth:java", | 230 "//device/bluetooth:java", |
231 ] | 231 ] |
232 } | 232 } |
233 } | 233 } |
OLD | NEW |