chromium/chrome/browser/ui/ash/download_status/BUILD.gn

# Copyright 2024 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/chromeos/ui_mode.gni")

assert(is_chromeos_ash)

static_library("download_status") {
  sources = [
    "display_client.cc",
    "display_client.h",
    "display_manager.cc",
    "display_manager.h",
    "display_metadata.cc",
    "display_metadata.h",
    "holding_space_display_client.cc",
    "holding_space_display_client.h",
    "notification_display_client.cc",
    "notification_display_client.h",
  ]

  public_deps = [ "//chrome/browser:browser_public_dependencies" ]

  deps = [
    "//ash",
    "//ash/constants",
    "//ash/public/cpp",
    "//base",
    "//chrome/app:generated_resources_grit",
    "//chrome/app/vector_icons",
    "//chrome/browser/ash/file_manager",
    "//chrome/browser/ash/profiles",
    "//chrome/browser/profiles:profile",
    "//chrome/browser/ui/ash/holding_space",
    "//chrome/browser/ui/ash/system_web_apps",
    "//chromeos/crosapi/mojom",
    "//net",
    "//ui/base",
    "//ui/gfx",
    "//ui/message_center",
    "//ui/message_center/public/cpp",
    "//url",
  ]
}

static_library("test_support") {
  testonly = true

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

  deps = [
    "//base",
    "//chrome/test/base/ash/util:test_support",
    "//chromeos/crosapi/mojom",
  ]
}

source_set("browser_tests") {
  testonly = true

  defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]

  sources = [
    "holding_space_display_client_browsertest.cc",
    "notification_display_client_browsertest.cc",
  ]

  deps = [
    ":download_status",
    ":test_support",
    "//ash:test_support",
    "//ash/public/cpp/holding_space:test_support",
    "//ash/webui/media_app_ui",
    "//base/test:test_support",
    "//chrome/browser",
    "//chrome/browser/ash/crosapi",
    "//chrome/browser/ash/crosapi:test_support",
    "//chrome/browser/ash/system_web_apps/test_support:test_support_ui",
    "//chrome/browser/notifications",
    "//chrome/browser/profiles",
    "//chrome/browser/profiles:profile",
    "//chrome/browser/ui",
    "//chrome/browser/ui/ash:test_support",
    "//chrome/browser/ui/ash/holding_space:test_support",
    "//chrome/test/base/ash/util:test_support",
    "//chromeos/crosapi/mojom",
    "//chromeos/dbus/power",
    "//chromeos/dbus/power:power_manager_proto",
    "//content/test:test_support",
    "//mojo/public/cpp/bindings",
    "//testing/gmock",
    "//ui/aura",
    "//ui/aura:test_support",
    "//ui/base",
    "//ui/gfx",
    "//ui/message_center",
    "//ui/message_center/public/cpp",
    "//ui/views",
    "//ui/wm/public:test_support",
  ]
}