Lines Matching defs:TestChannel
72 // The test service creates a TestChannel for every client (channel) that
74 class TestChannel : public Channel {
76 explicit TestChannel(int channel_id) : channel_id_(channel_id) {}
85 TestChannel(const TestChannel&) = delete;
86 void operator=(const TestChannel&) = delete;
89 // Test service that creates a TestChannel for each channel and responds to test
94 return std::make_shared<TestChannel>(message.GetChannelId());
106 test_channel_ = message.GetChannel<TestChannel>();
128 // Set the test channel to the TestChannel for the current channel. Other
131 test_channel_ = message.GetChannel<TestChannel>();
151 const Status<int> ret = message.CheckChannel<TestChannel>(ref, nullptr);
156 std::shared_ptr<TestChannel> channel;
162 message.CheckChannel<TestChannel>(ref, &channel);
177 const Status<int> ret = message.CheckChannel<TestChannel>(
183 auto channel = std::make_shared<TestChannel>(-1);
193 auto channel = std::make_shared<TestChannel>(-1);
235 std::shared_ptr<TestChannel> test_channel_;