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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 "//mojo/common", | 78 "//mojo/common", |
80 "//mojo/edk/system", | 79 "//mojo/edk/system", |
81 "//mojo/public/cpp/bindings", | 80 "//mojo/public/cpp/bindings", |
82 "//net", | 81 "//net", |
83 "//testing/gmock", | 82 "//testing/gmock", |
84 "//testing/gtest", | 83 "//testing/gtest", |
85 "//tools/usb_gadget", | 84 "//tools/usb_gadget", |
86 "//url", | 85 "//url", |
87 ] | 86 ] |
88 | 87 |
89 if (!is_linux_without_dbus && !is_chromeos) { | 88 if (is_linux && !is_chromeos && use_dbus) { |
90 sources += [ "battery/battery_status_manager_linux_unittest.cc" ] | 89 sources += [ "battery/battery_status_manager_linux_unittest.cc" ] |
| 90 deps += [ "//dbus:test_support" ] |
91 } | 91 } |
92 | 92 |
93 # HID and Serial: | 93 # HID and Serial: |
94 # Android doesn't compile. | 94 # Android doesn't compile. |
95 # Linux, requires udev. | 95 # Linux, requires udev. |
96 if (!is_linux_without_udev && !is_android) { | 96 if (!is_linux_without_udev && !is_android) { |
97 sources += [ | 97 sources += [ |
98 "hid/hid_connection_unittest.cc", | 98 "hid/hid_connection_unittest.cc", |
99 "hid/hid_device_filter_unittest.cc", | 99 "hid/hid_device_filter_unittest.cc", |
100 "hid/hid_report_descriptor_unittest.cc", | 100 "hid/hid_report_descriptor_unittest.cc", |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 java_files = [ "gamepad/android/junit/src/org/chromium/device/gamepad/Gamepa
dMappingsTest.java" ] | 256 java_files = [ "gamepad/android/junit/src/org/chromium/device/gamepad/Gamepa
dMappingsTest.java" ] |
257 deps = [ | 257 deps = [ |
258 "//base:base_java", | 258 "//base:base_java", |
259 "//base:base_java_test_support", | 259 "//base:base_java_test_support", |
260 "//device/gamepad:java", | 260 "//device/gamepad:java", |
261 "//third_party/android_tools:android_support_annotations_java", | 261 "//third_party/android_tools:android_support_annotations_java", |
262 ] | 262 ] |
263 srcjar_deps = [ "//device/gamepad:java_enums_srcjar" ] | 263 srcjar_deps = [ "//device/gamepad:java_enums_srcjar" ] |
264 } | 264 } |
265 } | 265 } |
OLD | NEW |