• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2016 gRPC authors.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15load("//bazel:grpc_build_system.bzl", "grpc_cc_test", "grpc_package")
16
17grpc_package(name = "test/core/telemetry")
18
19licenses(["notice"])
20
21grpc_cc_test(
22    name = "call_tracer_test",
23    srcs = ["call_tracer_test.cc"],
24    external_deps = ["gtest"],
25    language = "C++",
26    uses_event_engine = False,
27    uses_polling = False,
28    deps = [
29        "//:grpc",
30        "//test/core/test_util:fake_stats_plugin",
31        "//test/core/test_util:grpc_test_util",
32    ],
33)
34
35grpc_cc_test(
36    name = "metrics_test",
37    srcs = ["metrics_test.cc"],
38    external_deps = [
39        "absl/log:log",
40        "gtest",
41    ],
42    language = "C++",
43    uses_event_engine = False,
44    uses_polling = False,
45    deps = [
46        "//src/core:metrics",
47        "//test/core/test_util:fake_stats_plugin",
48        "//test/core/test_util:grpc_test_util",
49    ],
50)
51
52grpc_cc_test(
53    name = "stats_test",
54    timeout = "long",
55    srcs = ["stats_test.cc"],
56    external_deps = [
57        "gtest",
58    ],
59    language = "C++",
60    tags = [
61        "cpu:10",
62    ],
63    uses_event_engine = False,
64    uses_polling = False,
65    deps = [
66        "//:gpr",
67        "//:grpc",
68        "//test/core/test_util:grpc_test_util",
69    ],
70)
71
72grpc_cc_test(
73    name = "trace_flags_test",
74    srcs = ["trace_flags_test.cc"],
75    external_deps = ["gtest"],
76    language = "C++",
77    uses_event_engine = False,
78    uses_polling = False,
79    deps = [
80        "//:gpr",
81        "//src/core:useful",
82        "//test/core/test_util:grpc_test_util",
83    ],
84)
85