summaryrefslogtreecommitdiff
path: root/chromium/chromecast/metrics/BUILD.gn
blob: b5d7657840335ba03f08c5991db625a0449a1921 (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
43
44
45
46
47
48
49
50
# Copyright 2019 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("//chromecast/build/tests/cast_test.gni")
import("//chromecast/chromecast.gni")

cast_source_set("metrics") {
  public = [ "cast_metrics_service_client.h" ]

  sources = [ "cast_metrics_service_client.cc" ]

  public_deps = [
    "//chromecast/base:cast_sys_info_util",
    "//third_party/metrics_proto",
  ]

  deps = [
    "//base",
    "//base:i18n",
    "//chromecast/base",
    "//chromecast/base:cast_version",
    "//components/metrics",
    "//components/metrics:net",
    "//components/prefs",
    "//services/network/public/cpp",
  ]
}

test("cast_metrics_unittest") {
  sources = [
    "cast_metrics_service_client_unittest.cc",
    "mock_cast_sys_info_util.cc",
    "mock_cast_sys_info_util.h",
  ]

  deps = [
    ":metrics",
    "//base/test:run_all_unittests",
    "//base/test:test_support",
    "//chromecast/base:dummy_cast_sys_info",
    "//services/network/public/cpp",
    "//testing/gmock:gmock",
    "//testing/gtest:gtest",
  ]
}

cast_test_group("metrics_cast_test_group") {
  tests = [ ":cast_metrics_unittest" ]
}