Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(865)

Side by Side Diff: device/BUILD.gn

Issue 2818673003: [DeviceService] Expose battery monitoring solely via the Device Service (Closed)
Patch Set: Java file format change Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/test/BUILD.gn ('k') | device/battery/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("vr/features/features.gni") 5 import("vr/features/features.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 8
9 if (is_android) { 9 if (is_android) {
10 import("//build/config/android/config.gni") 10 import("//build/config/android/config.gni")
11 import("//build/config/android/rules.gni") # For generate_jni(). 11 import("//build/config/android/rules.gni") # For generate_jni().
12 } 12 }
13 13
14 if (is_mac) { 14 if (is_mac) {
15 import("//build/config/mac/mac_sdk.gni") 15 import("//build/config/mac/mac_sdk.gni")
16 } 16 }
17 17
18 is_linux_without_udev = is_linux && !use_udev 18 is_linux_without_udev = is_linux && !use_udev
19 19
20 test("device_unittests") { 20 test("device_unittests") {
21 sources = [ 21 sources = [
22 "base/synchronization/one_writer_seqlock_unittest.cc", 22 "base/synchronization/one_writer_seqlock_unittest.cc",
23 "battery/battery_status_manager_win_unittest.cc",
24 "battery/battery_status_service_unittest.cc",
25 "bluetooth/bluetooth_adapter_mac_unittest.mm", 23 "bluetooth/bluetooth_adapter_mac_unittest.mm",
26 "bluetooth/bluetooth_adapter_unittest.cc", 24 "bluetooth/bluetooth_adapter_unittest.cc",
27 "bluetooth/bluetooth_adapter_win_unittest.cc", 25 "bluetooth/bluetooth_adapter_win_unittest.cc",
28 "bluetooth/bluetooth_advertisement_unittest.cc", 26 "bluetooth/bluetooth_advertisement_unittest.cc",
29 "bluetooth/bluetooth_device_unittest.cc", 27 "bluetooth/bluetooth_device_unittest.cc",
30 "bluetooth/bluetooth_device_win_unittest.cc", 28 "bluetooth/bluetooth_device_win_unittest.cc",
31 "bluetooth/bluetooth_discovery_filter_unittest.cc", 29 "bluetooth/bluetooth_discovery_filter_unittest.cc",
32 "bluetooth/bluetooth_local_gatt_characteristic_unittest.cc", 30 "bluetooth/bluetooth_local_gatt_characteristic_unittest.cc",
33 "bluetooth/bluetooth_local_gatt_descriptor_unittest.cc", 31 "bluetooth/bluetooth_local_gatt_descriptor_unittest.cc",
34 "bluetooth/bluetooth_local_gatt_service_unittest.cc", 32 "bluetooth/bluetooth_local_gatt_service_unittest.cc",
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 "sensors/data_fetcher_shared_memory_base_unittest.cc", 72 "sensors/data_fetcher_shared_memory_base_unittest.cc",
75 "sensors/sensor_manager_android_unittest.cc", 73 "sensors/sensor_manager_android_unittest.cc",
76 "sensors/sensor_manager_chromeos_unittest.cc", 74 "sensors/sensor_manager_chromeos_unittest.cc",
77 "test/run_all_unittests.cc", 75 "test/run_all_unittests.cc",
78 ] 76 ]
79 77
80 deps = [ 78 deps = [
81 "//base/test:test_support", 79 "//base/test:test_support",
82 "//base/third_party/dynamic_annotations:dynamic_annotations", 80 "//base/third_party/dynamic_annotations:dynamic_annotations",
83 "//device/base/synchronization", 81 "//device/base/synchronization",
84 "//device/battery",
85 "//device/battery:mojo_bindings",
86 "//device/bluetooth", 82 "//device/bluetooth",
87 "//device/bluetooth:mocks", 83 "//device/bluetooth:mocks",
88 "//device/bluetooth:mojo", 84 "//device/bluetooth:mojo",
89 "//device/bluetooth/uribeacon", 85 "//device/bluetooth/uribeacon",
90 "//device/gamepad", 86 "//device/gamepad",
91 "//device/gamepad:test_helpers", 87 "//device/gamepad:test_helpers",
92 "//device/gamepad/public/cpp:shared_with_blink", 88 "//device/gamepad/public/cpp:shared_with_blink",
93 "//device/gamepad/public/interfaces", 89 "//device/gamepad/public/interfaces",
94 "//device/gamepad/public/interfaces:gamepad_struct_traits_test", 90 "//device/gamepad/public/interfaces:gamepad_struct_traits_test",
95 "//device/generic_sensor", 91 "//device/generic_sensor",
96 "//device/generic_sensor:testing", 92 "//device/generic_sensor:testing",
97 "//device/geolocation:unittests", 93 "//device/geolocation:unittests",
98 "//device/power_save_blocker", 94 "//device/power_save_blocker",
99 "//device/sensors", 95 "//device/sensors",
100 "//device/sensors/public/cpp:full", 96 "//device/sensors/public/cpp:full",
101 "//device/sensors/public/interfaces", 97 "//device/sensors/public/interfaces",
102 "//device/wake_lock", 98 "//device/wake_lock",
103 "//mojo/common", 99 "//mojo/common",
104 "//mojo/edk/system", 100 "//mojo/edk/system",
105 "//mojo/public/cpp/bindings", 101 "//mojo/public/cpp/bindings",
106 "//net", 102 "//net",
107 "//testing/gmock", 103 "//testing/gmock",
108 "//testing/gtest", 104 "//testing/gtest",
109 "//third_party/WebKit/public:blink_headers", 105 "//third_party/WebKit/public:blink_headers",
110 "//tools/usb_gadget", 106 "//tools/usb_gadget",
111 "//url", 107 "//url",
112 ] 108 ]
113 109
114 if (is_linux && !is_chromeos && use_dbus) {
115 sources += [ "battery/battery_status_manager_linux_unittest.cc" ]
116 deps += [ "//dbus:test_support" ]
117 }
118
119 if (!is_linux_without_udev) { 110 if (!is_linux_without_udev) {
120 sources += 111 sources +=
121 [ "generic_sensor/platform_sensor_and_provider_unittest_linux.cc" ] 112 [ "generic_sensor/platform_sensor_and_provider_unittest_linux.cc" ]
122 } 113 }
123 114
124 # HID and Serial: 115 # HID and Serial:
125 # Android doesn't compile. 116 # Android doesn't compile.
126 # Linux, requires udev. 117 # Linux, requires udev.
127 if (!is_linux_without_udev && !is_android) { 118 if (!is_linux_without_udev && !is_android) {
128 sources += [ 119 sources += [
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 ] 175 ]
185 } 176 }
186 177
187 # UsbContext is a libusb-specific object. 178 # UsbContext is a libusb-specific object.
188 if (is_mac || is_win) { 179 if (is_mac || is_win) {
189 sources += [ "usb/usb_context_unittest.cc" ] 180 sources += [ "usb/usb_context_unittest.cc" ]
190 deps += [ "//third_party/libusb" ] 181 deps += [ "//third_party/libusb" ]
191 } 182 }
192 183
193 if (is_android) { 184 if (is_android) {
194 sources -= [ "battery/battery_status_service_unittest.cc" ]
195 deps += [ 185 deps += [
196 ":bluetooth_test_java", 186 ":bluetooth_test_java",
197 ":bluetooth_test_jni_headers", 187 ":bluetooth_test_jni_headers",
198 "//device/geolocation:geolocation_java", 188 "//device/geolocation:geolocation_java",
199 "//device/geolocation:geolocation_java_test_support", 189 "//device/geolocation:geolocation_java_test_support",
200 "//device/sensors:java", 190 "//device/sensors:java",
201 "//device/usb:java", 191 "//device/usb:java",
202 ] 192 ]
203 deps -= [ "//device/battery" ]
204 } 193 }
205 194
206 if (is_chromeos) { 195 if (is_chromeos) {
207 deps += [ 196 deps += [
208 "//chromeos", 197 "//chromeos",
209 "//chromeos:test_support", 198 "//chromeos:test_support",
210 "//chromeos:test_support_without_gmock", 199 "//chromeos:test_support_without_gmock",
211 ] 200 ]
212 } 201 }
213 202
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 ] 314 ]
326 srcjar_deps = [ "//device/gamepad:java_enums_srcjar" ] 315 srcjar_deps = [ "//device/gamepad:java_enums_srcjar" ]
327 } 316 }
328 317
329 java_cpp_enum("bluetooth_test_javagen") { 318 java_cpp_enum("bluetooth_test_javagen") {
330 sources = [ 319 sources = [
331 "bluetooth/test/bluetooth_test.h", 320 "bluetooth/test/bluetooth_test.h",
332 ] 321 ]
333 } 322 }
334 } 323 }
OLDNEW
« no previous file with comments | « chrome/test/BUILD.gn ('k') | device/battery/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698