summaryrefslogtreecommitdiff
path: root/chromium/components/download/internal/BUILD.gn
blob: d1e1e43b885592384ba500f6850a38face85125d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

if (is_android) {
  import("//build/config/android/config.gni")
  import("//build/config/android/rules.gni")
}

static_library("internal") {
  visibility = [
    ":*",
    "//components/download",
    "//components/download/content",
    "//components/download/internal/test:test_support",
  ]

  sources = [
    "config.cc",
    "config.h",
    "download_driver.h",
    "download_service_impl.cc",
    "download_service_impl.h",
    "driver_entry.cc",
    "driver_entry.h",
    "entry.cc",
    "entry.h",
    "model.h",
    "model_impl.cc",
    "model_impl.h",
    "noop_store.cc",
    "noop_store.h",
    "scheduler/battery_listener.cc",
    "scheduler/battery_listener.h",
    "scheduler/network_listener.cc",
    "scheduler/network_listener.h",
    "store.h",
  ]

  deps = [
    "//base",
    "//components/download/public",
    "//net",
  ]
}

source_set("unit_tests") {
  testonly = true

  visibility = [ "//components/download:unit_tests" ]

  sources = [
    "model_impl_unittest.cc",
    "scheduler/battery_listener_unittest.cc",
    "scheduler/network_listener_unittest.cc",
  ]

  deps = [
    ":internal",
    "//base/test:test_support",
    "//components/download/internal/test:test_support",
    "//testing/gmock",
    "//testing/gtest",
  ]
}