diff options
author | Mark D. Roth <roth@google.com> | 2016-06-27 10:14:38 -0700 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2016-06-27 10:14:38 -0700 |
commit | 07cd9c9e064e636c432500724bf5f91ad15d041a (patch) | |
tree | 2ecdb234759967c11d75e9ac8bf63028b0e40af4 /test/cpp | |
parent | 34d07d6f2a0b7d4c938aaf3502151eebba8b04b5 (diff) |
Initial attempt at a C++ wrapper for the C grpc_transport_op and
grpc_transport_stream_op structs.
Diffstat (limited to 'test/cpp')
-rw-r--r-- | test/cpp/end2end/filter_end2end_test.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/cpp/end2end/filter_end2end_test.cc b/test/cpp/end2end/filter_end2end_test.cc index b21d377d5d..dcaca10c7f 100644 --- a/test/cpp/end2end/filter_end2end_test.cc +++ b/test/cpp/end2end/filter_end2end_test.cc @@ -125,11 +125,11 @@ class CallDataImpl : public CallData { : CallData(channel_data) {} void StartTransportStreamOp(grpc_exec_ctx* exec_ctx, grpc_call_element* elem, - grpc_transport_stream_op* op) GRPC_OVERRIDE { + TransportStreamOp* op) GRPC_OVERRIDE { // Incrementing the counter could be done from the ctor, but we want // to test that the individual methods are actually called correctly. - if (op->recv_initial_metadata != nullptr) IncrementCallCounter(); - grpc_call_next_op(exec_ctx, elem, op); + if (op->recv_initial_metadata() != nullptr) IncrementCallCounter(); + grpc_call_next_op(exec_ctx, elem, op->op()); } }; |