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

assert(is_chromeos)

component("pcie_peripheral") {
  sources = [
    "ash_usb_detector.cc",
    "ash_usb_detector.h",
  ]

  deps = [
    "//base",
    "//chromeos/ash/components/dbus/fwupd",
    "//chromeos/ash/components/fwupd",
    "//chromeos/ash/components/peripheral_notification",
    "//content/public/browser",
    "//mojo/public/cpp/bindings",
    "//services/device/public/mojom:usb",
  ]

  configs += [ "//build/config/linux/dbus" ]
}

source_set("unit_tests") {
  testonly = true

  sources = [ "ash_usb_detector_unittest.cc" ]

  deps = [
    ":pcie_peripheral",
    "//base",
    "//chrome/test:test_support",
    "//chromeos/ash/components/dbus",
    "//chromeos/ash/components/peripheral_notification",
    "//services/device/public/cpp:test_support",
    "//testing/gtest",
  ]

  configs += [ "//build/config/linux/dbus" ]
}
