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/android/rules.gni") | 5 import("//build/config/android/rules.gni") |
6 | 6 |
7 # GYP: //components/precache.gypi:precache_java | 7 # GYP: //components/precache.gypi:precache_java |
8 android_library("precache_java") { | 8 android_library("precache_java") { |
9 deps = [ | 9 deps = [ |
10 "//base:base_java", | 10 "//base:base_java", |
11 ] | 11 ] |
12 java_files = [ | 12 java_files = [ |
13 "java/src/org/chromium/components/precache/DeviceState.java", | 13 "java/src/org/chromium/components/precache/DeviceState.java", |
14 "java/src/org/chromium/components/precache/NetworkInfoDelegate.java", | 14 "java/src/org/chromium/components/precache/NetworkInfoDelegate.java", |
15 "java/src/org/chromium/components/precache/NetworkInfoDelegateFactory.java", | 15 "java/src/org/chromium/components/precache/NetworkInfoDelegateFactory.java", |
16 ] | 16 ] |
17 } | 17 } |
18 | 18 |
19 android_library("precache_javatests") { | 19 android_library("precache_javatests") { |
| 20 testonly = true |
20 deps = [ | 21 deps = [ |
21 ":precache_java", | 22 ":precache_java", |
22 "//base:base_java_test_support", | 23 "//base:base_java_test_support", |
23 ] | 24 ] |
24 java_files = [ | 25 java_files = [ |
25 "javatests/src/org/chromium/components/precache/DeviceStateTest.java", | 26 "javatests/src/org/chromium/components/precache/DeviceStateTest.java", |
26 "javatests/src/org/chromium/components/precache/MockDeviceState.java", | 27 "javatests/src/org/chromium/components/precache/MockDeviceState.java", |
27 ] | 28 ] |
28 } | 29 } |
OLD | NEW |