diff options
author | Mark D. Roth <roth@google.com> | 2017-06-30 11:41:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-30 11:41:45 -0700 |
commit | 96e51c8e56f80810ae4b3cac184deff7a2128be1 (patch) | |
tree | 3a86622d8d63f5de6cdf306b583e459bb3abb577 /test/cpp | |
parent | dadb4ab05dcb5b6a71de40640213183704be5d03 (diff) | |
parent | 2faddbd639c594fd7c6acc64660042a3b6a7e4ae (diff) |
Merge pull request #11648 from markdroth/c++_filter_fixes
Improvements to C++ filter API
Diffstat (limited to 'test/cpp')
-rw-r--r-- | test/cpp/common/channel_filter_test.cc | 4 | ||||
-rw-r--r-- | test/cpp/end2end/filter_end2end_test.cc | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/test/cpp/common/channel_filter_test.cc b/test/cpp/common/channel_filter_test.cc index e747e633a0..638518107b 100644 --- a/test/cpp/common/channel_filter_test.cc +++ b/test/cpp/common/channel_filter_test.cc @@ -28,7 +28,7 @@ class MyChannelData : public ChannelData { public: MyChannelData() {} - grpc_error* Init(grpc_exec_ctx* exec_ctx, + grpc_error* Init(grpc_exec_ctx* exec_ctx, grpc_channel_element* elem, grpc_channel_element_args* args) override { (void)args->channel_args; // Make sure field is available. return GRPC_ERROR_NONE; @@ -39,7 +39,7 @@ class MyCallData : public CallData { public: MyCallData() {} - grpc_error* Init(grpc_exec_ctx* exec_ctx, ChannelData* channel_data, + grpc_error* Init(grpc_exec_ctx* exec_ctx, grpc_call_element* elem, const grpc_call_element_args* args) override { (void)args->path; // Make sure field is available. return GRPC_ERROR_NONE; diff --git a/test/cpp/end2end/filter_end2end_test.cc b/test/cpp/end2end/filter_end2end_test.cc index bf5a9c227a..f260ea0016 100644 --- a/test/cpp/end2end/filter_end2end_test.cc +++ b/test/cpp/end2end/filter_end2end_test.cc @@ -100,7 +100,8 @@ 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* elem, + grpc_channel_element_args* args) { IncrementConnectionCounter(); return GRPC_ERROR_NONE; } |