aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/common
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2017-06-29 08:11:57 -0700
committerGravatar Mark D. Roth <roth@google.com>2017-06-29 08:11:57 -0700
commitcc4ef5919f81dc0c1be14172785da0f4d24d1e21 (patch)
treedea6cc89dbcba2dda817a75cc2bb924f53f5a464 /test/cpp/common
parenta410632b570a8717eb5f3c1f43eb84bf80e0aca9 (diff)
Improvements to C++ filter API:
- Make sure all C-core parameters are passed into C++ methods. - Add Destroy() methods for ChannelData and CallData. - Use C++-style casts. - Add 'extern "C"' to iomgr/closure.h, which is used in C++ filters.
Diffstat (limited to 'test/cpp/common')
-rw-r--r--test/cpp/common/channel_filter_test.cc4
1 files changed, 2 insertions, 2 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;