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 } |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 ] | 131 ] |
132 } | 132 } |
133 | 133 |
134 # UsbContext is a libusb-specific object. | 134 # UsbContext is a libusb-specific object. |
135 if (!is_android && !is_ios) { | 135 if (!is_android && !is_ios) { |
136 sources += [ "usb/usb_context_unittest.cc" ] | 136 sources += [ "usb/usb_context_unittest.cc" ] |
137 } | 137 } |
138 | 138 |
139 if (is_android) { | 139 if (is_android) { |
140 sources -= [ "battery/battery_status_service_unittest.cc" ] | 140 sources -= [ "battery/battery_status_service_unittest.cc" ] |
| 141 deps += [ |
| 142 ":bluetooth_test_java", |
| 143 ":bluetooth_test_jni_headers", |
| 144 ] |
141 deps -= [ "//device/battery" ] | 145 deps -= [ "//device/battery" ] |
142 deps += [ ":bluetooth_test_jni_headers" ] | |
143 apk_deps = [ ":bluetooth_test_java" ] | |
144 } | 146 } |
145 | 147 |
146 if (is_chromeos) { | 148 if (is_chromeos) { |
147 deps += [ | 149 deps += [ |
148 "//chromeos", | 150 "//chromeos", |
149 "//chromeos:test_support", | 151 "//chromeos:test_support", |
150 "//chromeos:test_support_without_gmock", | 152 "//chromeos:test_support_without_gmock", |
151 ] | 153 ] |
152 } | 154 } |
153 | 155 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 } | 199 } |
198 | 200 |
199 android_library("bluetooth_test_java") { | 201 android_library("bluetooth_test_java") { |
200 java_files = bluetooth_java_sources_needing_jni | 202 java_files = bluetooth_java_sources_needing_jni |
201 deps = [ | 203 deps = [ |
202 "//base:base_java", | 204 "//base:base_java", |
203 "//device/bluetooth:java", | 205 "//device/bluetooth:java", |
204 ] | 206 ] |
205 } | 207 } |
206 } | 208 } |
OLD | NEW |