Lines Matching refs:response
66 EchoResponse* response) override { in Echo() argument
71 return stubs_[idx]->Echo(client_context.get(), *request, response); in Echo()
143 EchoResponse response; in SendSuccessfulEcho() local
147 Status s = echo_stub_->Echo(&context, request, &response); in SendSuccessfulEcho()
148 EXPECT_EQ(response.message(), request.message()); in SendSuccessfulEcho()
154 EchoResponse response; in SendFailedEcho() local
161 Status s = echo_stub_->Echo(&context, request, &response); in SendFailedEcho()
169 GetTopChannelsResponse response; in GetChannelId() local
172 Status s = channelz_stub_->GetTopChannels(&context, request, &response); in GetChannelId()
174 EXPECT_GT(response.channel_size(), channel_idx); in GetChannelId()
175 return response.channel(channel_idx).ref().channel_id(); in GetChannelId()
208 GetTopChannelsResponse response; in TEST_F() local
211 Status s = channelz_stub_->GetTopChannels(&context, request, &response); in TEST_F()
213 EXPECT_EQ(response.channel_size(), 1); in TEST_F()
220 GetTopChannelsResponse response; in TEST_F() local
223 Status s = channelz_stub_->GetTopChannels(&context, request, &response); in TEST_F()
225 EXPECT_EQ(response.channel_size(), 0); in TEST_F()
233 GetChannelResponse response; in TEST_F() local
236 Status s = channelz_stub_->GetChannel(&context, request, &response); in TEST_F()
238 EXPECT_EQ(response.channel().data().calls_started(), 1); in TEST_F()
239 EXPECT_EQ(response.channel().data().calls_succeeded(), 1); in TEST_F()
240 EXPECT_EQ(response.channel().data().calls_failed(), 0); in TEST_F()
248 GetChannelResponse response; in TEST_F() local
251 Status s = channelz_stub_->GetChannel(&context, request, &response); in TEST_F()
253 EXPECT_EQ(response.channel().data().calls_started(), 1); in TEST_F()
254 EXPECT_EQ(response.channel().data().calls_succeeded(), 0); in TEST_F()
255 EXPECT_EQ(response.channel().data().calls_failed(), 1); in TEST_F()
271 GetChannelResponse response; in TEST_F() local
274 Status s = channelz_stub_->GetChannel(&context, request, &response); in TEST_F()
276 EXPECT_EQ(response.channel().data().calls_started(), in TEST_F()
278 EXPECT_EQ(response.channel().data().calls_succeeded(), kNumSuccess); in TEST_F()
279 EXPECT_EQ(response.channel().data().calls_failed(), kNumFailed); in TEST_F()
287 GetTopChannelsResponse response; in TEST_F() local
290 Status s = channelz_stub_->GetTopChannels(&context, request, &response); in TEST_F()
292 EXPECT_EQ(response.channel_size(), kNumChannels); in TEST_F()
313 GetChannelResponse response; in TEST_F() local
316 Status s = channelz_stub_->GetChannel(&context, request, &response); in TEST_F()
318 EXPECT_EQ(response.channel().data().calls_started(), kNumSuccess); in TEST_F()
319 EXPECT_EQ(response.channel().data().calls_succeeded(), kNumSuccess); in TEST_F()
320 EXPECT_EQ(response.channel().data().calls_failed(), 0); in TEST_F()
326 GetChannelResponse response; in TEST_F() local
329 Status s = channelz_stub_->GetChannel(&context, request, &response); in TEST_F()
331 EXPECT_EQ(response.channel().data().calls_started(), kNumFailed); in TEST_F()
332 EXPECT_EQ(response.channel().data().calls_succeeded(), 0); in TEST_F()
333 EXPECT_EQ(response.channel().data().calls_failed(), kNumFailed); in TEST_F()
339 GetChannelResponse response; in TEST_F() local
342 Status s = channelz_stub_->GetChannel(&context, request, &response); in TEST_F()
344 EXPECT_EQ(response.channel().data().calls_started(), in TEST_F()
346 EXPECT_EQ(response.channel().data().calls_succeeded(), kNumSuccess); in TEST_F()
347 EXPECT_EQ(response.channel().data().calls_failed(), kNumFailed); in TEST_F()
353 GetChannelResponse response; in TEST_F() local
356 Status s = channelz_stub_->GetChannel(&context, request, &response); in TEST_F()
358 EXPECT_EQ(response.channel().data().calls_started(), 0); in TEST_F()
359 EXPECT_EQ(response.channel().data().calls_succeeded(), 0); in TEST_F()
360 EXPECT_EQ(response.channel().data().calls_failed(), 0); in TEST_F()
416 GetServersResponse response; in TEST_F() local
419 Status s = channelz_stub_->GetServers(&context, request, &response); in TEST_F()
421 EXPECT_EQ(response.server_size(), 1); in TEST_F()
436 GetServersResponse response; in TEST_F() local
439 Status s = channelz_stub_->GetServers(&context, request, &response); in TEST_F()
441 EXPECT_EQ(response.server_size(), 1); in TEST_F()
442 EXPECT_EQ(response.server(0).data().calls_succeeded(), kNumSuccess); in TEST_F()
443 EXPECT_EQ(response.server(0).data().calls_failed(), kNumFailed); in TEST_F()
447 EXPECT_EQ(response.server(0).data().calls_started(), in TEST_F()