summaryrefslogtreecommitdiff
path: root/chromium/components/download/content/public/BUILD.gn
blob: 5d4a1e327f7a4971968a153be91a09c881aa1058 (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
# 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")
}

source_set("public") {
  sources = [
    "all_download_item_notifier.cc",
    "all_download_item_notifier.h",
    "download_navigation_observer.cc",
    "download_navigation_observer.h",
  ]

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

  public_deps = [ "//base" ]

  deps = [
    "//components/download/public/background_service:public",
    "//content/public/browser",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [ "all_download_item_notifier_unittest.cc" ]

  deps = [
    ":public",
    "//content/test:test_support",
    "//testing/gmock",
    "//testing/gtest",
  ]
}