BUILD.gn 728 B

123456789101112131415161718192021222324252627282930313233
  1. # Copyright 2017 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. assert(!is_android)
  5. source_set("keep_alive_registry") {
  6. sources = [
  7. "keep_alive_registry.cc",
  8. "keep_alive_registry.h",
  9. "keep_alive_state_observer.h",
  10. "keep_alive_types.cc",
  11. "keep_alive_types.h",
  12. "scoped_keep_alive.cc",
  13. "scoped_keep_alive.h",
  14. ]
  15. deps = [ "//base" ]
  16. if (is_win) {
  17. deps += [ "//components/browser_watcher:stability_client" ]
  18. }
  19. }
  20. source_set("unit_tests") {
  21. testonly = true
  22. sources = [ "keep_alive_registry_unittest.cc" ]
  23. deps = [
  24. ":keep_alive_registry",
  25. "//base",
  26. "//testing/gtest",
  27. ]
  28. }