clang-format

pull/9067/head
Mark D. Roth 8 years ago
parent d118da943f
commit 13f3574642
  1. 6
      src/cpp/common/channel_filter.h
  2. 8
      test/cpp/common/channel_filter_test.cc
  3. 2
      test/cpp/end2end/filter_end2end_test.cc

@ -216,8 +216,7 @@ class TransportStreamOp {
/// Represents channel data.
class ChannelData {
public:
virtual ~ChannelData() {
}
virtual ~ChannelData() {}
/// Initializes the call data.
virtual grpc_error *Init(grpc_exec_ctx *exec_ctx,
@ -309,8 +308,7 @@ class ChannelFilter final {
static grpc_error *InitCallElement(grpc_exec_ctx *exec_ctx,
grpc_call_element *elem,
grpc_call_element_args *args) {
ChannelDataType *channel_data =
(ChannelDataType *)elem->channel_data;
ChannelDataType *channel_data = (ChannelDataType *)elem->channel_data;
// Construct the object in the already-allocated memory.
CallDataType *call_data = new (elem->call_data) CallDataType();
return call_data->Init(exec_ctx, channel_data, args);

@ -43,8 +43,8 @@ class MyChannelData : public ChannelData {
public:
MyChannelData() {}
grpc_error *Init(grpc_exec_ctx *exec_ctx, grpc_channel_element_args *args)
override {
grpc_error* Init(grpc_exec_ctx* exec_ctx,
grpc_channel_element_args* args) override {
(void)args->channel_args; // Make sure field is available.
return GRPC_ERROR_NONE;
}
@ -54,8 +54,8 @@ class MyCallData : public CallData {
public:
MyCallData() {}
grpc_error *Init(grpc_exec_ctx *exec_ctx, ChannelData *channel_data,
grpc_call_element_args *args) override {
grpc_error* Init(grpc_exec_ctx* exec_ctx, ChannelData* channel_data,
grpc_call_element_args* args) override {
(void)args->path; // Make sure field is available.
return GRPC_ERROR_NONE;
}

@ -114,7 +114,7 @@ int GetCallCounterValue() {
class ChannelDataImpl : public ChannelData {
public:
grpc_error *Init(grpc_exec_ctx *exec_ctx, grpc_channel_element_args *args) {
grpc_error* Init(grpc_exec_ctx* exec_ctx, grpc_channel_element_args* args) {
IncrementConnectionCounter();
return GRPC_ERROR_NONE;
}

Loading…
Cancel
Save