Fix BUILD to allow successful import

pull/15155/head
jiangtaoli2016 7 years ago
parent 1b7d6af8ca
commit 9c32619ab0
  1. 22
      test/core/tsi/alts/fake_handshaker/BUILD
  2. 2
      test/core/tsi/alts/fake_handshaker/fake_handshaker_server.cc

@ -14,7 +14,7 @@
licenses(["notice"]) # Apache v2
load("//bazel:grpc_build_system.bzl", "grpc_proto_library", "grpc_cc_binary", "grpc_package")
load("//bazel:grpc_build_system.bzl", "grpc_proto_library", "grpc_cc_library", "grpc_cc_binary", "grpc_package")
grpc_package(name = "test/core/tsi/alts/fake_handshaker", visibility = "public")
@ -29,19 +29,29 @@ grpc_proto_library(
srcs = ["handshaker.proto"],
has_services = True,
deps = [
":transport_security_common_proto",
"transport_security_common_proto",
],
)
grpc_cc_binary(
name = "fake_handshaker_server",
grpc_cc_library(
name = "fake_handshaker_lib",
testonly = True,
srcs = ["fake_handshaker_server.cc"],
language = "C++",
deps = [
":handshaker_proto",
":transport_security_common_proto",
"handshaker_proto",
"transport_security_common_proto",
"//:grpc++",
"//test/cpp/util:test_config",
],
)
grpc_cc_binary(
name = "fake_handshaker_server",
testonly = True,
srcs = ["fake_handshaker_server.cc"],
language = "C++",
deps = [
"fake_handshaker_lib",
],
)

@ -146,7 +146,7 @@ class FakeHandshakerService : public HandshakerService::Service {
return Status(StatusCode::INVALID_ARGUMENT,
"At least one application protocol needed.");
}
if (request.handshake_parameters().size() == 0) {
if (request.handshake_parameters().empty()) {
return Status(StatusCode::INVALID_ARGUMENT,
"At least one set of handshake parameters needed.");
}

Loading…
Cancel
Save