summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/metrics/BUILD.gn
blob: 9b4525767a2bdc784afe67c62a2d997a1b8c6940 (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
34
35
36
37
38
39
40
41
42
# Copyright 2017 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.

import("//components/metrics/generate_expired_histograms_array.gni")

source_set("test_support") {
  testonly = true
  sources = [
    "testing/demographic_metrics_test_utils.cc",
    "testing/demographic_metrics_test_utils.h",
    "testing/sync_metrics_test_utils.cc",
    "testing/sync_metrics_test_utils.h",
  ]

  deps = [
    "//base",
    "//chrome/browser",
    "//components/network_time",
    "//components/prefs",
    "//components/signin/public/identity_manager",
    "//components/sync",
    "//components/sync/base",
    "//components/sync/test/fake_server",
    "//third_party/metrics_proto",
  ]

  if (!is_fuchsia) {
    deps += [ "//chrome/test:sync_integration_test_support" ]
  }
}

generate_expired_histograms_array("expired_histograms_array") {
  inputs = [
    "//tools/metrics/histograms/histograms.xml",
    "//tools/metrics/histograms/enums.xml",
  ]
  namespace = "chrome_metrics"
  header_filename = "expired_histograms_array.h"
  major_branch_date_filepath = "//chrome/MAJOR_BRANCH_DATE"
  milestone_filepath = "//chrome/VERSION"
}