# Copyright 2021 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, "Non-ChromeOS builds cannot depend on //ash")
component("peripheral_notification") {
defines = [ "IS_CHROMEOS_ASH_COMPONENTS_PERIPHERAL_NOTIFICATION_IMPL" ]
public_deps = [
"//base",
"//chromeos/ash/components/dbus/pciguard",
"//chromeos/ash/components/dbus/typecd",
]
deps = [
"//ash/constants/",
"//services/device/public/mojom:usb",
]
sources = [
"peripheral_notification_manager.cc",
"peripheral_notification_manager.h",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "peripheral_notification_manager_unittest.cc" ]
deps = [
":peripheral_notification",
"//ash/constants",
"//base",
"//base/test:test_support",
"//chromeos/ash/components/dbus/pciguard",
"//chromeos/ash/components/dbus/typecd",
"//services/device/public/cpp:test_support",
"//testing/gtest",
]
}