BUILD.gn 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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,
  6. "Quick Pair protocols (e.g. Fast Pair) are ash-chrome only")
  7. source_set("ui") {
  8. output_name = "quick_pair_ui"
  9. sources = [
  10. "actions.cc",
  11. "actions.h",
  12. "fast_pair/fast_pair_notification_controller.cc",
  13. "fast_pair/fast_pair_notification_controller.h",
  14. "fast_pair/fast_pair_presenter.h",
  15. "fast_pair/fast_pair_presenter_impl.cc",
  16. "fast_pair/fast_pair_presenter_impl.h",
  17. "ui_broker.h",
  18. "ui_broker_impl.cc",
  19. "ui_broker_impl.h",
  20. ]
  21. deps = [
  22. "//ash/public/cpp:cpp",
  23. "//ash/quick_pair/common",
  24. "//ash/quick_pair/proto:fastpair_proto",
  25. "//ash/quick_pair/repository",
  26. "//ash/resources/vector_icons",
  27. "//ash/strings",
  28. "//base",
  29. "//third_party/protobuf:protobuf_lite",
  30. "//ui/base",
  31. "//ui/gfx",
  32. "//ui/message_center",
  33. "//url",
  34. ]
  35. }
  36. static_library("test_support") {
  37. testonly = true
  38. sources = [
  39. "actions.cc",
  40. "actions.h",
  41. "mock_ui_broker.cc",
  42. "mock_ui_broker.h",
  43. "ui_broker.h",
  44. ]
  45. deps = [
  46. "//ash/quick_pair/common",
  47. "//base",
  48. "//base/test:test_support",
  49. "//testing/gtest",
  50. ]
  51. }
  52. source_set("unit_tests") {
  53. testonly = true
  54. sources = [
  55. "fast_pair/fast_pair_notification_controller_unittest.cc",
  56. "fast_pair/fast_pair_presenter_impl_unittest.cc",
  57. "ui_broker_impl_unittest.cc",
  58. ]
  59. deps = [
  60. ":test_support",
  61. ":ui",
  62. "//ash:test_support",
  63. "//ash/constants",
  64. "//ash/public/cpp:test_support",
  65. "//ash/quick_pair/common",
  66. "//ash/quick_pair/common:test_support",
  67. "//ash/quick_pair/proto:fastpair_proto",
  68. "//ash/quick_pair/repository:repository",
  69. "//ash/quick_pair/repository:test_support",
  70. "//ash/services/quick_pair",
  71. "//ash/services/quick_pair:test_support",
  72. "//ash/services/quick_pair/public/cpp",
  73. "//base",
  74. "//base/test:test_support",
  75. "//components/signin/public/identity_manager",
  76. "//components/signin/public/identity_manager:test_support",
  77. "//testing/gtest",
  78. "//ui/base",
  79. "//ui/message_center",
  80. "//ui/message_center:test_support",
  81. ]
  82. }