BUILD.gn 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. assert(!is_ios, "Desktop zoom is not used on iOS platform.")
  5. static_library("zoom") {
  6. sources = [
  7. "page_zoom.cc",
  8. "page_zoom.h",
  9. "page_zoom_constants.cc",
  10. "page_zoom_constants.h",
  11. "zoom_controller.cc",
  12. "zoom_controller.h",
  13. "zoom_event_manager.cc",
  14. "zoom_event_manager.h",
  15. "zoom_event_manager_observer.h",
  16. "zoom_observer.h",
  17. ]
  18. deps = [
  19. "//base",
  20. "//components/prefs",
  21. "//content/public/browser",
  22. "//content/public/common",
  23. "//ipc",
  24. "//net",
  25. "//third_party/blink/public/common",
  26. "//url",
  27. ]
  28. }
  29. static_library("test_support") {
  30. testonly = true
  31. sources = [
  32. "test/zoom_test_utils.cc",
  33. "test/zoom_test_utils.h",
  34. ]
  35. deps = [
  36. ":zoom",
  37. "//base:base",
  38. "//content/test:test_support",
  39. ]
  40. }
  41. source_set("unit_tests") {
  42. testonly = true
  43. sources = [ "page_zoom_unittests.cc" ]
  44. deps = [
  45. ":zoom",
  46. "//components/prefs",
  47. "//content/public/common",
  48. "//testing/gtest",
  49. ]
  50. }