Skip to content

Commit

Permalink
Fix the rebase and build
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikravis committed Apr 23, 2019
1 parent df2c2c1 commit 5274deb
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 14 deletions.
3 changes: 2 additions & 1 deletion include/grpcpp/create_channel.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ static inline std::shared_ptr<::grpc::Channel> CreateCustomChannel(

namespace experimental {

static inline std::shared_ptr<::grpc::Channel> CreateCustomChannelWithInterceptors(
static inline std::shared_ptr<::grpc::Channel>
CreateCustomChannelWithInterceptors(
const grpc::string& target,
const std::shared_ptr<ChannelCredentials>& creds,
const ChannelArguments& args,
Expand Down
2 changes: 1 addition & 1 deletion include/grpcpp/create_channel_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ std::shared_ptr<grpc::Channel> CreateChannelImpl(
/// hold an object or is invalid, a lame channel (one on which all operations
/// fail) is returned.
/// \param args Options for channel creation.
std::shared_ptr<grpc::Channel> CreateCustomChannel(
std::shared_ptr<grpc::Channel> CreateCustomChannelImpl(
const grpc::string& target,
const std::shared_ptr<grpc::ChannelCredentials>& creds,
const grpc::ChannelArguments& args);
Expand Down
9 changes: 3 additions & 6 deletions include/grpcpp/security/credentials_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,12 @@
#include <grpcpp/impl/codegen/client_interceptor.h>
#include <grpcpp/impl/codegen/grpc_library.h>
#include <grpcpp/security/auth_context.h>
#include <grpcpp/support/channel_arguments.h>
#include <grpcpp/support/status.h>
#include <grpcpp/support/string_ref.h>

struct grpc_call;

namespace grpc {
class ChannelArguments;
} // namespace grpc

namespace grpc_impl {

class Channel;
Expand Down Expand Up @@ -78,7 +75,7 @@ class ChannelCredentials : private grpc::GrpcLibraryCodegen {
virtual SecureChannelCredentials* AsSecureCredentials() = 0;

private:
friend std::shared_ptr<::grpc::Channel> CreateCustomChannel(
friend std::shared_ptr<::grpc::Channel> CreateCustomChannelImpl(
const grpc::string& target,
const std::shared_ptr<ChannelCredentials>& creds,
const grpc::ChannelArguments& args);
Expand All @@ -92,7 +89,7 @@ class ChannelCredentials : private grpc::GrpcLibraryCodegen {
grpc::experimental::ClientInterceptorFactoryInterface>>
interceptor_creators);

virtual std::shared_ptr<::grpc::Channel> CreateChannel(
virtual std::shared_ptr<::grpc::Channel> CreateChannelImpl(
const grpc::string& target, const grpc::ChannelArguments& args) = 0;

// This function should have been a pure virtual function, but it is
Expand Down
5 changes: 2 additions & 3 deletions include/grpcpp/support/channel_arguments_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ namespace grpc {
namespace testing {
class ChannelArgumentsTest;
} // namespace testing

class SecureChannelCredentials;
} // namespace grpc

namespace grpc_impl {
class SecureChannelCredentials;

/// Options for channel creation. The user can use generic setters to pass
/// key value pairs down to C channel creation code. For gRPC related options,
Expand Down Expand Up @@ -126,7 +125,7 @@ class ChannelArguments {
}

private:
friend class grpc::SecureChannelCredentials;
friend class grpc_impl::SecureChannelCredentials;
friend class grpc::testing::ChannelArgumentsTest;

/// Default pointer argument operations.
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/client/insecure_credentials.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace grpc_impl {
namespace {
class InsecureChannelCredentialsImpl final : public ChannelCredentials {
public:
std::shared_ptr<grpc::Channel> CreateChannel(
std::shared_ptr<grpc::Channel> CreateChannelImpl(
const grpc::string& target, const grpc::ChannelArguments& args) override {
return CreateChannelWithInterceptors(
target, args,
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/client/secure_credentials.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ SecureChannelCredentials::SecureChannelCredentials(
g_gli_initializer.summon();
}

std::shared_ptr<grpc::Channel> SecureChannelCredentials::CreateChannel(
std::shared_ptr<grpc::Channel> SecureChannelCredentials::CreateChannelImpl(
const grpc::string& target, const grpc::ChannelArguments& args) {
return CreateChannelWithInterceptors(
target, args,
Expand Down
3 changes: 2 additions & 1 deletion test/cpp/util/grpc_tool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ std::shared_ptr<grpc::Channel> CreateCliChannel(
if (!cred.GetSslTargetNameOverride().empty()) {
args.SetSslTargetNameOverride(cred.GetSslTargetNameOverride());
}
return CreateCustomChannel(server_address, cred.GetCredentials(), args);
return ::grpc::CreateCustomChannel(server_address, cred.GetCredentials(),
args);
}

struct Command {
Expand Down

0 comments on commit 5274deb

Please sign in to comment.