BUILD.gn 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright 2021 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. import("//build/config/chromeos/ui_mode.gni")
  5. assert(is_chromeos_ash, "Non-ChromeOS builds cannot depend on //ash")
  6. component("peripheral_notification") {
  7. defines = [ "IS_ASH_PERIPHERAL_NOTIFICATION_IMPL" ]
  8. deps = [
  9. "//ash/constants/",
  10. "//base",
  11. "//chromeos/ash/components/dbus/pciguard",
  12. "//chromeos/ash/components/dbus/typecd",
  13. "//services/device/public/mojom:usb",
  14. ]
  15. sources = [
  16. "peripheral_notification_manager.cc",
  17. "peripheral_notification_manager.h",
  18. ]
  19. }
  20. source_set("unit_tests") {
  21. testonly = true
  22. sources = [ "peripheral_notification_manager_unittest.cc" ]
  23. deps = [
  24. ":peripheral_notification",
  25. "//ash:test_support",
  26. "//base/test:test_support",
  27. "//chromeos/ash/components/dbus/pciguard",
  28. "//chromeos/ash/components/dbus/typecd",
  29. "//services/device/public/cpp:test_support",
  30. "//skia",
  31. "//testing/gtest",
  32. ]
  33. }