aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/end2end
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-12-27 08:59:00 -0800
committerGravatar Craig Tiller <ctiller@google.com>2016-12-27 08:59:00 -0800
commitef6938477b5019fea4f0ed7da06cc1f974f29438 (patch)
tree7501942df052fa4d983a3f2f4b0adaf99be317c8 /test/cpp/end2end
parent9a66ba5fe9b0714f2b48c6d3848d9716cdf85b91 (diff)
parent702f93d3645055bd77181935c18f41a9de272c1e (diff)
Merge branch 'slice_with_exec_ctx' into metadata_filter
Diffstat (limited to 'test/cpp/end2end')
-rw-r--r--test/cpp/end2end/filter_end2end_test.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/cpp/end2end/filter_end2end_test.cc b/test/cpp/end2end/filter_end2end_test.cc
index ab6ed46de5..bd384f68b4 100644
--- a/test/cpp/end2end/filter_end2end_test.cc
+++ b/test/cpp/end2end/filter_end2end_test.cc
@@ -114,20 +114,17 @@ int GetCallCounterValue() {
class ChannelDataImpl : public ChannelData {
public:
- ChannelDataImpl(const grpc_channel_args& args, const char* peer)
- : ChannelData(args, peer) {
+ grpc_error* Init(grpc_exec_ctx* exec_ctx, grpc_channel_element_args* args) {
IncrementConnectionCounter();
+ return GRPC_ERROR_NONE;
}
};
class CallDataImpl : public CallData {
public:
- explicit CallDataImpl(const ChannelDataImpl& channel_data)
- : CallData(channel_data) {}
-
void StartTransportStreamOp(grpc_exec_ctx* exec_ctx, grpc_call_element* elem,
TransportStreamOp* op) override {
- // Incrementing the counter could be done from the ctor, but we want
+ // Incrementing the counter could be done from Init(), 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->op());