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