Lines Matching refs:cli_
177 cli_.reset(new FakeClient(task_runner_.get())); in SetUp()
179 EXPECT_CALL(*cli_, OnConnect()).WillOnce(Invoke(on_connect)); in SetUp()
185 cli_.reset(); in TearDown()
195 std::unique_ptr<FakeClient> cli_; member in perfetto::ipc::__anon3cf0bd540111::HostImplTest
201 cli_->BindService("FakeService"); // FakeService does not exist yet. in TEST_F()
203 EXPECT_CALL(*cli_, OnServiceBound(_)) in TEST_F()
214 cli_->BindService("FakeService"); in TEST_F()
215 EXPECT_CALL(*cli_, OnServiceBound(_)) in TEST_F()
227 cli_->BindService("FakeService"); in TEST_F()
228 EXPECT_CALL(*cli_, OnServiceBound(_)).WillOnce(InvokeWithoutArgs(on_bind)); in TEST_F()
232 cli_->InvokeMethod(cli_->last_bound_service_id_, 42, RequestProto()); in TEST_F()
233 EXPECT_CALL(*cli_, OnInvokeMethodReply(_)) in TEST_F()
247 cli_->BindService("FakeService"); in TEST_F()
248 EXPECT_CALL(*cli_, OnServiceBound(_)).WillOnce(InvokeWithoutArgs(on_bind)); in TEST_F()
253 cli_->InvokeMethod(cli_->last_bound_service_id_, 1, req_args); in TEST_F()
268 EXPECT_CALL(*cli_, OnInvokeMethodReply(_)) in TEST_F()
285 cli_->BindService("FakeService"); in TEST_F()
286 EXPECT_CALL(*cli_, OnServiceBound(_)).WillOnce(InvokeWithoutArgs(on_bind)); in TEST_F()
304 EXPECT_CALL(*cli_, OnInvokeMethodReply(_)) in TEST_F()
317 cli_->InvokeMethod(cli_->last_bound_service_id_, 1, rp, true /*drop_reply*/); in TEST_F()
319 cli_->InvokeMethod(cli_->last_bound_service_id_, 1, rp, false /*drop_reply*/); in TEST_F()
330 cli_->BindService("FakeService"); in TEST_F()
331 EXPECT_CALL(*cli_, OnServiceBound(_)).WillOnce(InvokeWithoutArgs(on_bind)); in TEST_F()
336 cli_->InvokeMethod(cli_->last_bound_service_id_, 1, req_args); in TEST_F()
356 EXPECT_CALL(*cli_, OnFileDescriptorReceived(_)) in TEST_F()
365 EXPECT_CALL(*cli_, OnInvokeMethodReply(_)); in TEST_F()
374 cli_->BindService("FakeService"); in TEST_F()
375 EXPECT_CALL(*cli_, OnServiceBound(_)).WillOnce(InvokeWithoutArgs(on_bind)); in TEST_F()
384 cli_->InvokeMethod(cli_->last_bound_service_id_, 1, req_args, false, in TEST_F()
386 EXPECT_CALL(*cli_, OnInvokeMethodReply(_)); in TEST_F()
411 cli_->BindService("FakeService"); in TEST_F()
412 EXPECT_CALL(*cli_, OnServiceBound(_)).WillOnce(InvokeWithoutArgs(on_bind)); in TEST_F()
417 cli_->InvokeMethod(cli_->last_bound_service_id_, 1, req_args); in TEST_F()
418 EXPECT_CALL(*cli_, OnInvokeMethodReply(_)).Times(0); in TEST_F()
419 cli_.reset(); // Disconnect the client. in TEST_F()
436 cli_->BindService("FakeService"); in TEST_F()
437 EXPECT_CALL(*cli_, OnServiceBound(_)).WillOnce(InvokeWithoutArgs(on_bind)); in TEST_F()
443 cli_->InvokeMethod(cli_->last_bound_service_id_, 1, req_args); in TEST_F()
455 EXPECT_CALL(*cli_, OnInvokeMethodReply(_)).Times(0); in TEST_F()
457 ASSERT_TRUE(::testing::Mock::VerifyAndClearExpectations(cli_.get())); in TEST_F()
468 EXPECT_CALL(*cli_, OnInvokeMethodReply(_)) in TEST_F()