BUILD.gn 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # Copyright 2020 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("//services/network/public/cpp/features.gni")
  5. source_set("first_party_sets_manager") {
  6. visibility = [
  7. ":*",
  8. "//services/network:network_service",
  9. "//services/network:tests",
  10. ]
  11. defines = [ "IS_NETWORK_SERVICE_IMPL" ]
  12. sources = [
  13. "first_party_sets_access_delegate.cc",
  14. "first_party_sets_access_delegate.h",
  15. "first_party_sets_manager.cc",
  16. "first_party_sets_manager.h",
  17. ]
  18. deps = [
  19. "//base",
  20. "//components/cbor",
  21. "//components/sqlite_proto",
  22. "//services/network/public/cpp",
  23. "//services/network/public/mojom",
  24. "//sql",
  25. "//url",
  26. ]
  27. }
  28. source_set("test_support") {
  29. testonly = true
  30. defines = [ "IS_NETWORK_SERVICE_IMPL" ]
  31. sources = []
  32. deps = [
  33. ":first_party_sets_manager",
  34. "//base",
  35. "//base/test:test_support",
  36. "//components/cbor",
  37. "//net",
  38. "//net:test_support",
  39. "//net/traffic_annotation:test_support",
  40. "//services/network/public/mojom",
  41. "//testing/gtest",
  42. "//url",
  43. ]
  44. }
  45. source_set("tests") {
  46. testonly = true
  47. defines = [ "IS_NETWORK_SERVICE_IMPL" ]
  48. sources = [
  49. "first_party_sets_access_delegate_unittest.cc",
  50. "first_party_sets_manager_unittest.cc",
  51. ]
  52. deps = [
  53. ":first_party_sets_manager",
  54. ":test_support",
  55. "//base",
  56. "//base/test:test_support",
  57. "//components/cbor",
  58. "//components/sqlite_proto",
  59. "//net",
  60. "//net:test_support",
  61. "//net/traffic_annotation:test_support",
  62. "//services/network:test_support",
  63. "//testing/gmock",
  64. "//testing/gtest",
  65. "//url",
  66. ]
  67. }