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