BUILD.gn 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Copyright 2019 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("//testing/test.gni")
  5. assert(!is_ios, "Paint Previews are not supported on iOS.")
  6. source_set("renderer") {
  7. sources = [
  8. "paint_preview_recorder_impl.cc",
  9. "paint_preview_recorder_impl.h",
  10. "paint_preview_recorder_utils.cc",
  11. "paint_preview_recorder_utils.h",
  12. ]
  13. deps = [
  14. "//base",
  15. "//cc/paint",
  16. "//content/public/renderer",
  17. "//mojo/public/cpp/base",
  18. "//third_party/blink/public:blink_headers",
  19. "//third_party/blink/public/common",
  20. ]
  21. public_deps = [
  22. "//components/paint_preview/common",
  23. "//components/paint_preview/common/mojom",
  24. ]
  25. }
  26. source_set("unit_tests") {
  27. testonly = true
  28. sources = [ "paint_preview_recorder_utils_unittest.cc" ]
  29. deps = [
  30. ":renderer",
  31. "//base",
  32. "//base/test:test_support",
  33. "//cc/paint",
  34. "//components/paint_preview/common:test_utils",
  35. "//testing/gmock",
  36. "//testing/gtest",
  37. ]
  38. }
  39. test("paint_preview_renderer_unit_tests") {
  40. deps = [
  41. ":unit_tests",
  42. "//base",
  43. "//base/test:test_support",
  44. "//components/test:run_all_unittests",
  45. ]
  46. }