BUILD.gn 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Copyright 2014 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. static_library("web_resource") {
  5. sources = [
  6. "eula_accepted_notifier.cc",
  7. "eula_accepted_notifier.h",
  8. "resource_request_allowed_notifier.cc",
  9. "resource_request_allowed_notifier.h",
  10. "web_resource_pref_names.cc",
  11. "web_resource_pref_names.h",
  12. ]
  13. deps = [
  14. "//base",
  15. "//build:branding_buildflags",
  16. "//build:chromeos_buildflags",
  17. "//components/pref_registry",
  18. "//components/prefs",
  19. "//services/network/public/cpp",
  20. ]
  21. }
  22. static_library("test_support") {
  23. testonly = true
  24. sources = [
  25. "resource_request_allowed_notifier_test_util.cc",
  26. "resource_request_allowed_notifier_test_util.h",
  27. ]
  28. deps = [
  29. ":web_resource",
  30. "//base",
  31. "//services/network/public/cpp",
  32. ]
  33. }
  34. source_set("unit_tests") {
  35. testonly = true
  36. sources = [
  37. "eula_accepted_notifier_unittest.cc",
  38. "resource_request_allowed_notifier_unittest.cc",
  39. ]
  40. deps = [
  41. ":test_support",
  42. ":web_resource",
  43. "//base",
  44. "//base/test:test_support",
  45. "//components/prefs:test_support",
  46. "//services/network:test_support",
  47. "//services/network/public/cpp",
  48. "//testing/gtest",
  49. "//third_party/icu",
  50. ]
  51. }