xref: /aosp_15_r20/external/grpc-grpc/test/cpp/ext/gcp/BUILD (revision cc02d7e222339f7a4f6ba5f422e6413f4bd931f2)
1# Copyright 2022 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
17licenses(["notice"])
18
19grpc_package(name = "test/cpp/ext/gcp")
20
21grpc_cc_test(
22    name = "observability_test",
23    srcs = [
24        "observability_test.cc",
25    ],
26    external_deps = [
27        "gtest",
28    ],
29    language = "C++",
30    uses_polling = False,
31    deps = [
32        "//:grpcpp_gcp_observability",
33        "//src/proto/grpc/testing:echo_proto",
34        "//test/cpp/end2end:test_service_impl",
35        "//test/cpp/util:test_util",
36    ],
37)
38
39grpc_cc_test(
40    name = "observability_config_test",
41    srcs = [
42        "observability_config_test.cc",
43    ],
44    external_deps = [
45        "gtest",
46    ],
47    language = "C++",
48    uses_polling = False,
49    deps = [
50        "//src/cpp/ext/gcp:observability_config",
51        "//test/cpp/util:test_util",
52    ],
53)
54
55grpc_cc_test(
56    name = "observability_logging_sink_test",
57    srcs = [
58        "observability_logging_sink_test.cc",
59    ],
60    external_deps = [
61        "gtest",
62    ],
63    language = "C++",
64    uses_polling = False,
65    deps = [
66        "//src/cpp/ext/gcp:observability_logging_sink",
67        "//test/cpp/util:test_util",
68    ],
69)
70
71grpc_cc_test(
72    name = "environment_autodetect_test",
73    srcs = [
74        "environment_autodetect_test.cc",
75    ],
76    external_deps = [
77        "gtest",
78    ],
79    language = "C++",
80    linkstatic = True,
81    deps = [
82        "//src/cpp/ext/gcp:environment_autodetect",
83        "//test/core/util:grpc_test_util",
84        "//test/cpp/util:test_config",
85        "//test/cpp/util:test_util",
86    ],
87)
88