clang format

pull/16066/head
Nathan Herring 7 years ago
parent c7fae8812f
commit adb8581456
  1. 9
      test/cpp/util/grpc_tool_test.cc

@ -110,6 +110,7 @@ class TestCliCredentials final : public grpc::testing::CliCredentials {
return SslCredentials(grpc::SslCredentialsOptions(ssl_opts)); return SslCredentials(grpc::SslCredentialsOptions(ssl_opts));
} }
const grpc::string GetCredentialUsage() const override { return ""; } const grpc::string GetCredentialUsage() const override { return ""; }
private: private:
const bool secure_; const bool secure_;
}; };
@ -775,10 +776,10 @@ TEST_F(GrpcToolTest, ListCommand_OverrideSslHostName) {
FLAGS_l = false; FLAGS_l = false;
FLAGS_enable_ssl = true; FLAGS_enable_ssl = true;
FLAGS_ssl_target = "z.test.google.fr"; FLAGS_ssl_target = "z.test.google.fr";
EXPECT_TRUE(0 == GrpcToolMainLib(ArraySize(argv), argv, EXPECT_TRUE(
TestCliCredentials(true), 0 == GrpcToolMainLib(
std::bind(PrintStream, &output_stream, ArraySize(argv), argv, TestCliCredentials(true),
std::placeholders::_1))); std::bind(PrintStream, &output_stream, std::placeholders::_1)));
EXPECT_TRUE(0 == strcmp(output_stream.str().c_str(), EXPECT_TRUE(0 == strcmp(output_stream.str().c_str(),
"grpc.testing.EchoTestService\n" "grpc.testing.EchoTestService\n"
"grpc.reflection.v1alpha.ServerReflection\n")); "grpc.reflection.v1alpha.ServerReflection\n"));

Loading…
Cancel
Save