OLD | NEW |
1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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 if (is_android) { | 5 if (is_android) { |
6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
7 import("//build/config/android/rules.gni") | 7 import("//build/config/android/rules.gni") |
8 } | 8 } |
9 | 9 |
10 static_library("internal") { | 10 static_library("internal") { |
11 visibility = [ | 11 visibility = [ |
12 ":*", | 12 ":*", |
13 "//components/download", | 13 "//components/download", |
| 14 "//components/download/content", |
| 15 "//components/download/internal/test:test_support", |
14 ] | 16 ] |
15 | 17 |
16 sources = [ | 18 sources = [ |
17 "config.cc", | 19 "config.cc", |
18 "config.h", | 20 "config.h", |
| 21 "download_driver.h", |
19 "download_service_impl.cc", | 22 "download_service_impl.cc", |
20 "download_service_impl.h", | 23 "download_service_impl.h", |
| 24 "driver_entry.cc", |
| 25 "driver_entry.h", |
21 "scheduler/battery_listener.cc", | 26 "scheduler/battery_listener.cc", |
22 "scheduler/battery_listener.h", | 27 "scheduler/battery_listener.h", |
23 "scheduler/network_listener.cc", | 28 "scheduler/network_listener.cc", |
24 "scheduler/network_listener.h", | 29 "scheduler/network_listener.h", |
25 ] | 30 ] |
26 | 31 |
27 deps = [ | 32 deps = [ |
28 "//base", | 33 "//base", |
29 "//components/download/public", | 34 "//components/download/public", |
30 "//net", | 35 "//net", |
31 ] | 36 ] |
32 } | 37 } |
33 | 38 |
34 source_set("unit_tests") { | 39 source_set("unit_tests") { |
35 testonly = true | 40 testonly = true |
36 | 41 |
37 visibility = [ "//components/download:unit_tests" ] | 42 visibility = [ "//components/download:unit_tests" ] |
38 | 43 |
39 sources = [ | 44 sources = [ |
40 "download_service_impl_unittest.cc", | 45 "download_service_impl_unittest.cc", |
41 "scheduler/battery_listener_unittest.cc", | 46 "scheduler/battery_listener_unittest.cc", |
42 "scheduler/network_listener_unittest.cc", | 47 "scheduler/network_listener_unittest.cc", |
43 ] | 48 ] |
44 | 49 |
45 deps = [ | 50 deps = [ |
46 ":internal", | 51 ":internal", |
47 "//base/test:test_support", | 52 "//base/test:test_support", |
| 53 "//components/download/internal/test:test_support", |
48 "//testing/gmock", | 54 "//testing/gmock", |
49 "//testing/gtest", | 55 "//testing/gtest", |
50 ] | 56 ] |
51 } | 57 } |
OLD | NEW |