Apply the xds-specific Bazel rule to admin API (#25799)

pull/25798/head^2
Lidi Zheng 4 years ago committed by GitHub
parent 4350d18d0f
commit 3652ec5db9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      BUILD
  2. 2
      test/cpp/end2end/BUILD
  3. 6
      test/cpp/end2end/admin_services_end2end_test.cc

@ -2630,7 +2630,7 @@ grpc_cc_library_xds(
alwayslink = 1,
)
grpc_cc_library(
grpc_cc_library_xds(
name = "grpcpp_admin",
srcs = [
"src/cpp/server/admin/admin_services.cc",

@ -874,7 +874,7 @@ grpc_cc_test(
],
)
grpc_cc_test(
grpc_cc_test_xds(
name = "admin_services_end2end_test",
srcs = ["admin_services_end2end_test.cc"],
external_deps = [

@ -21,7 +21,6 @@
#include "absl/strings/str_cat.h"
#include <grpcpp/ext/admin_services.h>
#include <grpcpp/ext/proto_server_reflection_plugin.h>
#include <grpcpp/grpcpp.h>
@ -29,6 +28,9 @@
#include "test/core/util/port.h"
#include "test/core/util/test_config.h"
#ifndef DISABLED_XDS_PROTO_IN_CC
#include <grpcpp/ext/admin_services.h>
namespace grpc {
namespace testing {
@ -95,6 +97,8 @@ TEST_F(AdminServicesTest, XdsDisabled) {
} // namespace testing
} // namespace grpc
#endif // DISABLED_XDS_PROTO_IN_CC
int main(int argc, char** argv) {
grpc::testing::TestEnvironment env(argc, argv);
::testing::InitGoogleTest(&argc, argv);

Loading…
Cancel
Save