# 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",
  ]

  public_deps = [
    "//base",
  ]

  deps = [
    "//components/download/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",
  ]
}