BUILD.gn 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Copyright 2022 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("//third_party/protobuf/proto_library.gni")
  5. source_set("core") {
  6. sources = [
  7. "cross_otr_observer.cc",
  8. "cross_otr_observer.h",
  9. "features.cc",
  10. "features.h",
  11. "url_param_classifications_loader.cc",
  12. "url_param_classifications_loader.h",
  13. "url_param_filterer.cc",
  14. "url_param_filterer.h",
  15. ]
  16. deps = [ ":url_param_filter_classification_proto" ]
  17. public_deps = [
  18. "//base",
  19. "//net",
  20. "//third_party/abseil-cpp:absl",
  21. "//third_party/zlib/google:compression_utils",
  22. "//url",
  23. ]
  24. }
  25. proto_library("url_param_filter_classification_proto") {
  26. sources = [ "url_param_filter_classification.proto" ]
  27. proto_out_dir = "components/url_param_filter/core"
  28. }
  29. source_set("test_support") {
  30. testonly = true
  31. sources = [
  32. "url_param_filter_test_helper.cc",
  33. "url_param_filter_test_helper.h",
  34. ]
  35. public_deps = [
  36. "//base",
  37. "//skia",
  38. "//testing/gmock",
  39. "//testing/gtest",
  40. "//third_party/zlib/google:compression_utils",
  41. ]
  42. deps = [ ":core" ]
  43. }
  44. source_set("unit_tests") {
  45. testonly = true
  46. sources = [
  47. "url_param_classifications_loader_unittest.cc",
  48. "url_param_filterer_unittest.cc",
  49. ]
  50. deps = [
  51. ":core",
  52. ":test_support",
  53. ":url_param_filter_classification_proto",
  54. "//base/test:test_support",
  55. ]
  56. }