OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 | 6 |
7 if (is_android) { | 7 if (is_android) { |
8 import("//build/config/android/rules.gni") # For generate_jni(). | 8 import("//build/config/android/rules.gni") # For generate_jni(). |
9 } | 9 } |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 android_library("java") { | 55 android_library("java") { |
56 java_files = [ "android/java/src/org/chromium/device/sensors/PlatformSensorN
otifier.java" ] | 56 java_files = [ "android/java/src/org/chromium/device/sensors/PlatformSensorN
otifier.java" ] |
57 java_files += device_sensors_jni_sources | 57 java_files += device_sensors_jni_sources |
58 | 58 |
59 deps = [ | 59 deps = [ |
60 "//base:base_java", | 60 "//base:base_java", |
61 "//device/generic_sensor/public/interfaces:interfaces_java", | 61 "//device/generic_sensor/public/interfaces:interfaces_java", |
62 ] | 62 ] |
63 } | 63 } |
64 } | 64 } |
| 65 |
| 66 static_library("mocks") { |
| 67 testonly = true |
| 68 sources = [ |
| 69 "mock_platform_sensor.cc", |
| 70 "mock_platform_sensor.h", |
| 71 "mock_platform_sensor_provider.cc", |
| 72 "mock_platform_sensor_provider.h", |
| 73 ] |
| 74 |
| 75 public_deps = [ |
| 76 ":generic_sensor", |
| 77 "//base", |
| 78 "//device/generic_sensor/public/interfaces", |
| 79 ] |
| 80 } |
OLD | NEW |