Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: components/download/internal/BUILD.gn

Issue 2880933002: Download driver for components/download. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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",
21 "scheduler/battery_listener.cc", 24 "scheduler/battery_listener.cc",
22 "scheduler/battery_listener.h", 25 "scheduler/battery_listener.h",
23 "scheduler/network_listener.cc", 26 "scheduler/network_listener.cc",
24 "scheduler/network_listener.h", 27 "scheduler/network_listener.h",
25 ] 28 ]
26 29
27 deps = [ 30 deps = [
28 "//base", 31 "//base",
29 "//components/download/public", 32 "//components/download/public",
30 "//net", 33 "//net",
31 ] 34 ]
32 } 35 }
33 36
34 source_set("unit_tests") { 37 source_set("unit_tests") {
35 testonly = true 38 testonly = true
36 39
37 visibility = [ "//components/download:unit_tests" ] 40 visibility = [ "//components/download:unit_tests" ]
38 41
39 sources = [ 42 sources = [
40 "download_service_impl_unittest.cc", 43 "download_service_impl_unittest.cc",
41 "scheduler/battery_listener_unittest.cc", 44 "scheduler/battery_listener_unittest.cc",
42 "scheduler/network_listener_unittest.cc", 45 "scheduler/network_listener_unittest.cc",
43 ] 46 ]
44 47
45 deps = [ 48 deps = [
46 ":internal", 49 ":internal",
47 "//base/test:test_support", 50 "//base/test:test_support",
51 "//components/download/internal/test:test_support",
48 "//testing/gmock", 52 "//testing/gmock",
49 "//testing/gtest", 53 "//testing/gtest",
50 ] 54 ]
51 } 55 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698