BUILD.gn 754 B

123456789101112131415161718192021222324252627282930313233
  1. # Copyright 2018 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. component("scheduling_metrics") {
  5. sources = [
  6. "task_duration_metric_reporter.h",
  7. "thread_metrics.cc",
  8. "thread_metrics.h",
  9. "thread_type.h",
  10. "total_duration_metric_reporter.cc",
  11. "total_duration_metric_reporter.h",
  12. ]
  13. defines = [ "IS_SCHEDULING_METRICS_IMPL" ]
  14. public_deps = [ "//base" ]
  15. }
  16. source_set("unit_tests") {
  17. testonly = true
  18. sources = [
  19. "thread_metrics_unittest.cc",
  20. "total_duration_metric_reporter_unittest.cc",
  21. ]
  22. deps = [
  23. ":scheduling_metrics",
  24. "//base/test:test_support",
  25. "//testing/gmock",
  26. "//testing/gtest",
  27. ]
  28. }