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

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

Issue 2867073004: Battery listener for download service in native code. (Closed)
Patch Set: Work on feedbacks. 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
« no previous file with comments | « no previous file | components/download/internal/scheduler/battery_listener.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ] 14 ]
15 15
16 sources = [ 16 sources = [
17 "config.cc", 17 "config.cc",
18 "config.h", 18 "config.h",
19 "download_service_impl.cc", 19 "download_service_impl.cc",
20 "download_service_impl.h", 20 "download_service_impl.h",
21 "scheduler/battery_listener.cc",
22 "scheduler/battery_listener.h",
21 ] 23 ]
22 24
23 deps = [ 25 deps = [
24 "//base", 26 "//base",
25 "//components/download/public", 27 "//components/download/public",
26 ] 28 ]
27 } 29 }
28 30
29 source_set("unit_tests") { 31 source_set("unit_tests") {
30 testonly = true 32 testonly = true
31 33
32 visibility = [ "//components/download:unit_tests" ] 34 visibility = [ "//components/download:unit_tests" ]
33 35
34 sources = [ 36 sources = [
35 "download_service_impl_unittest.cc", 37 "download_service_impl_unittest.cc",
38 "scheduler/battery_listener_unittest.cc",
36 ] 39 ]
37 40
38 deps = [ 41 deps = [
39 ":internal", 42 ":internal",
40 "//base/test:test_support", 43 "//base/test:test_support",
44 "//testing/gmock",
41 "//testing/gtest", 45 "//testing/gtest",
42 ] 46 ]
43 } 47 }
OLDNEW
« no previous file with comments | « no previous file | components/download/internal/scheduler/battery_listener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698