BUILD.gn 1.4 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("//mojo/public/tools/bindings/mojom.gni")
  5. import("//testing/test.gni")
  6. source_set("common") {
  7. sources = [
  8. "page_end_reason.h",
  9. "page_load_metrics_util.cc",
  10. "page_load_metrics_util.h",
  11. "page_load_timing.cc",
  12. "page_load_timing.h",
  13. "page_visit_final_status.h",
  14. ]
  15. deps = [
  16. ":page_load_metrics_mojom",
  17. "//base",
  18. "//net",
  19. "//third_party/blink/public:blink_headers",
  20. "//url",
  21. ]
  22. }
  23. source_set("test_support") {
  24. testonly = true
  25. sources = [
  26. "test/page_load_metrics_test_util.cc",
  27. "test/page_load_metrics_test_util.h",
  28. "test/weak_mock_timer.cc",
  29. "test/weak_mock_timer.h",
  30. ]
  31. deps = [
  32. ":common",
  33. ":page_load_metrics_mojom",
  34. "//base",
  35. "//base/test:test_support",
  36. "//testing/gmock",
  37. "//testing/gtest",
  38. ]
  39. }
  40. mojom("page_load_metrics_mojom") {
  41. sources = [ "page_load_metrics.mojom" ]
  42. public_deps = [
  43. "//mojo/public/mojom/base",
  44. "//third_party/blink/public/mojom:mobile_metrics",
  45. "//third_party/blink/public/mojom:mojom_platform",
  46. "//ui/gfx/geometry/mojom",
  47. "//url/mojom:url_mojom_origin",
  48. ]
  49. overridden_deps = [ "//third_party/blink/public/mojom:mojom_platform" ]
  50. component_deps = [ "//third_party/blink/public/common" ]
  51. }