summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/metrics/BUILD.gn
blob: cf98ddb782dba6a2c647cbd3e1d0eac38884b302 (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
# 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/sync_metrics_test_utils.cc",
    "testing/sync_metrics_test_utils.h",
  ]

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

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

  if (is_android) {
    deps += [ "//content/public/browser" ]
  }
}

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"
}