diff options
author | Mark D. Roth <roth@google.com> | 2016-06-16 10:39:39 -0700 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2016-06-16 10:39:39 -0700 |
commit | c008b33c18f1d2c49ee1b6683c2d13a85e2c2432 (patch) | |
tree | 7ae8188383c268aee1cdeb4fb47ca2110f1542ec /test/cpp/end2end | |
parent | 8a1a5976c7eced718e2385b7f36046d6e73017af (diff) |
Pass channel args to ChannelData ctor and ChannelData to CallData ctor.
Diffstat (limited to 'test/cpp/end2end')
-rw-r--r-- | test/cpp/end2end/filter_end2end_test.cc | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/test/cpp/end2end/filter_end2end_test.cc b/test/cpp/end2end/filter_end2end_test.cc index be6988c6ba..16151c21b8 100644 --- a/test/cpp/end2end/filter_end2end_test.cc +++ b/test/cpp/end2end/filter_end2end_test.cc @@ -95,9 +95,16 @@ int GetCounterValue() { } // namespace +class ChannelDataImpl : public ChannelData { + public: + explicit ChannelDataImpl(const grpc_channel_args& args) : ChannelData(args) {} + virtual ~ChannelDataImpl() {} +}; + class CallDataImpl : public CallData { public: - CallDataImpl() {} + explicit CallDataImpl(const ChannelDataImpl& channel_data) + : CallData(channel_data) {} virtual ~CallDataImpl() {} void StartTransportStreamOp( @@ -109,12 +116,6 @@ class CallDataImpl : public CallData { } }; -class ChannelDataImpl : public ChannelData { - public: - ChannelDataImpl() {} - virtual ~ChannelDataImpl() {} -}; - class FilterEnd2endTest : public ::testing::Test { protected: FilterEnd2endTest() : server_host_("localhost") {} |