BUILD.gn 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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("component_updater") {
  5. sources = [
  6. "component_installer.cc",
  7. "component_installer.h",
  8. "component_updater_command_line_config_policy.cc",
  9. "component_updater_command_line_config_policy.h",
  10. "component_updater_paths.cc",
  11. "component_updater_paths.h",
  12. "component_updater_service.cc",
  13. "component_updater_service.h",
  14. "component_updater_service_internal.h",
  15. "component_updater_switches.cc",
  16. "component_updater_switches.h",
  17. "component_updater_url_constants.cc",
  18. "component_updater_url_constants.h",
  19. "component_updater_utils.cc",
  20. "component_updater_utils.h",
  21. "configurator_impl.cc",
  22. "configurator_impl.h",
  23. "pref_names.cc",
  24. "pref_names.h",
  25. "timer.cc",
  26. "timer.h",
  27. "timer_update_scheduler.cc",
  28. "timer_update_scheduler.h",
  29. "update_scheduler.h",
  30. ]
  31. deps = [
  32. "//base",
  33. "//build:chromeos_buildflags",
  34. "//components/crx_file",
  35. "//components/prefs",
  36. "//components/update_client",
  37. "//components/version_info",
  38. "//third_party/boringssl:boringssl",
  39. "//ui/base",
  40. "//url",
  41. ]
  42. }
  43. static_library("crl_set_remover") {
  44. sources = [
  45. "crl_set_remover.cc",
  46. "crl_set_remover.h",
  47. ]
  48. deps = [ "//base" ]
  49. }
  50. static_library("test_support") {
  51. testonly = true
  52. sources = [
  53. "mock_component_updater_service.cc",
  54. "mock_component_updater_service.h",
  55. ]
  56. public_deps = [
  57. ":component_updater",
  58. "//base",
  59. "//testing/gmock",
  60. ]
  61. }
  62. source_set("unit_tests") {
  63. testonly = true
  64. sources = [
  65. "component_installer_unittest.cc",
  66. "component_updater_service_unittest.cc",
  67. "configurator_impl_unittest.cc",
  68. "timer_unittest.cc",
  69. ]
  70. deps = [
  71. ":component_updater",
  72. "//base",
  73. "//base/test:test_support",
  74. "//components/crx_file",
  75. "//components/prefs:test_support",
  76. "//components/update_client:test_support",
  77. "//services/service_manager/public/cpp",
  78. "//testing/gmock",
  79. "//testing/gtest",
  80. "//third_party/boringssl:boringssl",
  81. ]
  82. }