1# Copyright 2023 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_library", "grpc_cc_test", "grpc_package") 16load("//test/cpp/microbenchmarks:grpc_benchmark_config.bzl", "HISTORY", "grpc_cc_benchmark") 17 18grpc_package(name = "test/core/experiments") 19 20grpc_cc_library( 21 name = "experiments_lib", 22 srcs = [ 23 "fixtures/experiments.cc", 24 ], 25 hdrs = [ 26 "fixtures/experiments.h", 27 ], 28 language = "c++", 29 deps = [ 30 "//:gpr", 31 "//src/core:experiments", 32 ], 33) 34 35grpc_cc_benchmark( 36 name = "bm_experiments", 37 srcs = ["bm_experiments.cc"], 38 monitoring = HISTORY, 39 deps = [ 40 "//src/core:experiments", 41 "//test/core/test_util:grpc_test_util", 42 ], 43) 44 45grpc_cc_test( 46 name = "experiments_test", 47 srcs = ["experiments_test.cc"], 48 external_deps = ["gtest"], 49 language = "C++", 50 uses_event_engine = False, 51 uses_polling = False, 52 deps = [ 53 "experiments_lib", 54 "//:gpr", 55 "//src/core:experiments", 56 ], 57) 58 59grpc_cc_test( 60 name = "experiments_tag_test", 61 srcs = ["experiments_tag_test.cc"], 62 external_deps = [ 63 "absl/status", 64 "absl/status:statusor", 65 "absl/strings", 66 "gtest", 67 ], 68 language = "C++", 69 tags = [ 70 "experiments_tag_test", 71 ], 72 uses_event_engine = False, 73 uses_polling = False, 74 deps = [ 75 "experiments_lib", 76 "//:config_vars", 77 "//:gpr", 78 "//src/core:experiments", 79 ], 80) 81