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/internal/test:test_support", |
14 ] | 15 ] |
15 | 16 |
16 sources = [ | 17 sources = [ |
17 "config.cc", | 18 "config.cc", |
18 "config.h", | 19 "config.h", |
19 "download_service_impl.cc", | 20 "download_service_impl.cc", |
20 "download_service_impl.h", | 21 "download_service_impl.h", |
| 22 "entry.cc", |
| 23 "entry.h", |
| 24 "model.h", |
| 25 "model_impl.cc", |
| 26 "model_impl.h", |
| 27 "noop_store.cc", |
| 28 "noop_store.h", |
21 "scheduler/battery_listener.cc", | 29 "scheduler/battery_listener.cc", |
22 "scheduler/battery_listener.h", | 30 "scheduler/battery_listener.h", |
23 "scheduler/network_listener.cc", | 31 "scheduler/network_listener.cc", |
24 "scheduler/network_listener.h", | 32 "scheduler/network_listener.h", |
| 33 "store.h", |
25 ] | 34 ] |
26 | 35 |
27 deps = [ | 36 deps = [ |
28 "//base", | 37 "//base", |
29 "//components/download/public", | 38 "//components/download/public", |
30 "//net", | 39 "//net", |
31 ] | 40 ] |
32 } | 41 } |
33 | 42 |
34 source_set("unit_tests") { | 43 source_set("unit_tests") { |
35 testonly = true | 44 testonly = true |
36 | 45 |
37 visibility = [ "//components/download:unit_tests" ] | 46 visibility = [ "//components/download:unit_tests" ] |
38 | 47 |
39 sources = [ | 48 sources = [ |
40 "download_service_impl_unittest.cc", | 49 "model_impl_unittest.cc", |
41 "scheduler/battery_listener_unittest.cc", | 50 "scheduler/battery_listener_unittest.cc", |
42 "scheduler/network_listener_unittest.cc", | 51 "scheduler/network_listener_unittest.cc", |
43 ] | 52 ] |
44 | 53 |
45 deps = [ | 54 deps = [ |
46 ":internal", | 55 ":internal", |
47 "//base/test:test_support", | 56 "//base/test:test_support", |
| 57 "//components/download/internal/test:test_support", |
48 "//testing/gmock", | 58 "//testing/gmock", |
49 "//testing/gtest", | 59 "//testing/gtest", |
50 ] | 60 ] |
51 } | 61 } |
OLD | NEW |