BUILD.gn 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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("message_stream") {
  8. sources = [
  9. "message_stream.cc",
  10. "message_stream.h",
  11. "message_stream_lookup.h",
  12. "message_stream_lookup_impl.cc",
  13. "message_stream_lookup_impl.h",
  14. ]
  15. deps = [
  16. "//ash/quick_pair/common",
  17. "//ash/services/quick_pair",
  18. "//ash/services/quick_pair/public/cpp",
  19. "//ash/services/quick_pair/public/mojom",
  20. "//base",
  21. "//device/bluetooth",
  22. "//net",
  23. ]
  24. }
  25. static_library("test_support") {
  26. testonly = true
  27. sources = [
  28. "fake_bluetooth_socket.cc",
  29. "fake_bluetooth_socket.h",
  30. "fake_message_stream_lookup.cc",
  31. "fake_message_stream_lookup.h",
  32. "message_stream.cc",
  33. "message_stream.h",
  34. "message_stream_lookup.h",
  35. ]
  36. deps = [
  37. "//ash/quick_pair/common",
  38. "//ash/services/quick_pair",
  39. "//ash/services/quick_pair/public/cpp",
  40. "//ash/services/quick_pair/public/mojom",
  41. "//base",
  42. "//base/test:test_support",
  43. "//device/bluetooth",
  44. "//device/bluetooth:mocks",
  45. "//testing/gtest",
  46. ]
  47. }
  48. source_set("unit_tests") {
  49. testonly = true
  50. sources = [
  51. "message_stream_lookup_impl_unittest.cc",
  52. "message_stream_unittest.cc",
  53. ]
  54. deps = [
  55. ":message_stream",
  56. ":test_support",
  57. "//ash/quick_pair/common",
  58. "//ash/services/quick_pair",
  59. "//ash/services/quick_pair:test_support",
  60. "//base",
  61. "//base/test:test_support",
  62. "//device/bluetooth",
  63. "//device/bluetooth:mocks",
  64. "//mojo/public/cpp/bindings",
  65. "//net",
  66. "//testing/gtest",
  67. ]
  68. }