summaryrefslogtreecommitdiff
path: root/chromium/components/download/content/internal/BUILD.gn
blob: 00eda462d8adfc2c72a43ebbecd9fa60c920f6c8 (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
# 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.

source_set("internal") {
  visibility = [
    ":*",
    "//components/download/content/factory",
  ]

  sources = [
    "download_driver_impl.cc",
    "download_driver_impl.h",
  ]

  if (is_android) {
    sources += [ "context_menu_download.cc" ]
  }

  public_deps = [
    "//components/download/content/public",
    "//components/download/internal/background_service:internal",
    "//components/download/public/background_service:public",
  ]

  deps = [
    "//base",
    "//content/public/browser",
    "//net",
    "//url",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [ "download_driver_impl_unittest.cc" ]

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