|
|
@ -77,7 +77,7 @@ class FullstackFixture : public BaseFixture { |
|
|
|
FullstackFixture(Service* service, const FixtureConfiguration& config, |
|
|
|
FullstackFixture(Service* service, const FixtureConfiguration& config, |
|
|
|
const std::string& address) { |
|
|
|
const std::string& address) { |
|
|
|
ServerBuilder b; |
|
|
|
ServerBuilder b; |
|
|
|
if (address.length() > 0) { |
|
|
|
if (!address.empty()) { |
|
|
|
b.AddListeningPort(address, InsecureServerCredentials()); |
|
|
|
b.AddListeningPort(address, InsecureServerCredentials()); |
|
|
|
} |
|
|
|
} |
|
|
|
cq_ = b.AddCompletionQueue(true); |
|
|
|
cq_ = b.AddCompletionQueue(true); |
|
|
@ -86,7 +86,7 @@ class FullstackFixture : public BaseFixture { |
|
|
|
server_ = b.BuildAndStart(); |
|
|
|
server_ = b.BuildAndStart(); |
|
|
|
ChannelArguments args; |
|
|
|
ChannelArguments args; |
|
|
|
config.ApplyCommonChannelArguments(&args); |
|
|
|
config.ApplyCommonChannelArguments(&args); |
|
|
|
if (address.length() > 0) { |
|
|
|
if (!address.empty()) { |
|
|
|
channel_ = grpc::CreateCustomChannel(address, |
|
|
|
channel_ = grpc::CreateCustomChannel(address, |
|
|
|
InsecureChannelCredentials(), args); |
|
|
|
InsecureChannelCredentials(), args); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|