modified has_async_methods and has_sync_methods of TestServerBuilderPlugin

pull/6373/head
Yuchen Zeng 9 years ago
parent a42ec21341
commit 018bf1a864
  1. 14
      test/cpp/end2end/server_builder_plugin_test.cc

@ -78,9 +78,19 @@ class TestServerBuilderPlugin : public ServerBuilderPlugin {
change_arguments_is_called_ = true;
}
bool has_async_methods() const GRPC_OVERRIDE { return register_service_; }
bool has_async_methods() const GRPC_OVERRIDE {
if (register_service_) {
return service_->has_async_methods();
}
return false;
}
bool has_sync_methods() const GRPC_OVERRIDE { return register_service_; }
bool has_sync_methods() const GRPC_OVERRIDE {
if (register_service_) {
return service_->has_synchronous_methods();
}
return false;
}
void SetRegisterService() { register_service_ = true; }

Loading…
Cancel
Save