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 ] | 14 ] |
15 | 15 |
16 sources = [ | 16 sources = [ |
| 17 "config.cc", |
| 18 "config.h", |
17 "download_service_impl.cc", | 19 "download_service_impl.cc", |
18 "download_service_impl.h", | 20 "download_service_impl.h", |
19 ] | 21 ] |
20 | 22 |
21 deps = [ | 23 deps = [ |
22 "//base", | 24 "//base", |
23 "//components/download/public", | 25 "//components/download/public", |
24 ] | 26 ] |
25 } | 27 } |
26 | 28 |
27 source_set("unit_tests") { | 29 source_set("unit_tests") { |
28 testonly = true | 30 testonly = true |
29 | 31 |
30 visibility = [ "//components/download:unit_tests" ] | 32 visibility = [ "//components/download:unit_tests" ] |
31 | 33 |
32 sources = [ | 34 sources = [ |
33 "download_service_impl_unittest.cc", | 35 "download_service_impl_unittest.cc", |
34 ] | 36 ] |
35 | 37 |
36 deps = [ | 38 deps = [ |
37 ":internal", | 39 ":internal", |
38 "//base/test:test_support", | 40 "//base/test:test_support", |
39 "//testing/gtest", | 41 "//testing/gtest", |
40 ] | 42 ] |
41 } | 43 } |
OLD | NEW |