summaryrefslogtreecommitdiff
path: root/chromium/components/scheduling_metrics/BUILD.gn
blob: b1ceecd26b784bdcfe9bf61f5b017dd7838e9944 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

component("scheduling_metrics") {
  sources = [
    "task_duration_metric_reporter.h",
    "thread_metrics.cc",
    "thread_metrics.h",
    "thread_type.h",
    "total_duration_metric_reporter.cc",
    "total_duration_metric_reporter.h",
  ]

  defines = [ "IS_SCHEDULING_METRICS_IMPL" ]

  public_deps = [ "//base" ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "thread_metrics_unittest.cc",
    "total_duration_metric_reporter_unittest.cc",
  ]

  deps = [
    ":scheduling_metrics",
    "//base/test:test_support",
    "//testing/gmock",
    "//testing/gtest",
  ]
}