Lines Matching refs:cli_
174 cli_.reset(new FakeClient(task_runner_.get())); in SetUp()
176 EXPECT_CALL(*cli_, OnConnect()).WillOnce(Invoke(on_connect)); in SetUp()
182 cli_.reset(); in TearDown()
192 std::unique_ptr<FakeClient> cli_; member in perfetto::ipc::__anon48d3e7760111::HostImplTest
198 cli_->BindService("FakeService"); // FakeService does not exist yet. in TEST_F()
200 EXPECT_CALL(*cli_, OnServiceBound(_)) in TEST_F()
211 cli_->BindService("FakeService"); in TEST_F()
212 EXPECT_CALL(*cli_, OnServiceBound(_)) in TEST_F()
224 cli_->BindService("FakeService"); in TEST_F()
225 EXPECT_CALL(*cli_, OnServiceBound(_)).WillOnce(InvokeWithoutArgs(on_bind)); in TEST_F()
229 cli_->InvokeMethod(cli_->last_bound_service_id_, 42, RequestProto()); in TEST_F()
230 EXPECT_CALL(*cli_, OnInvokeMethodReply(_)) in TEST_F()
244 cli_->BindService("FakeService"); in TEST_F()
245 EXPECT_CALL(*cli_, OnServiceBound(_)).WillOnce(InvokeWithoutArgs(on_bind)); in TEST_F()
250 cli_->InvokeMethod(cli_->last_bound_service_id_, 1, req_args); in TEST_F()
265 EXPECT_CALL(*cli_, OnInvokeMethodReply(_)) in TEST_F()
282 cli_->BindService("FakeService"); in TEST_F()
283 EXPECT_CALL(*cli_, OnServiceBound(_)).WillOnce(InvokeWithoutArgs(on_bind)); in TEST_F()
301 EXPECT_CALL(*cli_, OnInvokeMethodReply(_)) in TEST_F()
314 cli_->InvokeMethod(cli_->last_bound_service_id_, 1, rp, true /*drop_reply*/); in TEST_F()
316 cli_->InvokeMethod(cli_->last_bound_service_id_, 1, rp, false /*drop_reply*/); in TEST_F()
325 cli_->BindService("FakeService"); in TEST_F()
326 EXPECT_CALL(*cli_, OnServiceBound(_)).WillOnce(InvokeWithoutArgs(on_bind)); in TEST_F()
331 cli_->InvokeMethod(cli_->last_bound_service_id_, 1, req_args); in TEST_F()
351 EXPECT_CALL(*cli_, OnFileDescriptorReceived(_)) in TEST_F()
360 EXPECT_CALL(*cli_, OnInvokeMethodReply(_)); in TEST_F()
369 cli_->BindService("FakeService"); in TEST_F()
370 EXPECT_CALL(*cli_, OnServiceBound(_)).WillOnce(InvokeWithoutArgs(on_bind)); in TEST_F()
379 cli_->InvokeMethod(cli_->last_bound_service_id_, 1, req_args, false, in TEST_F()
381 EXPECT_CALL(*cli_, OnInvokeMethodReply(_)); in TEST_F()
405 cli_->BindService("FakeService"); in TEST_F()
406 EXPECT_CALL(*cli_, OnServiceBound(_)).WillOnce(InvokeWithoutArgs(on_bind)); in TEST_F()
411 cli_->InvokeMethod(cli_->last_bound_service_id_, 1, req_args); in TEST_F()
412 EXPECT_CALL(*cli_, OnInvokeMethodReply(_)).Times(0); in TEST_F()
413 cli_.reset(); // Disconnect the client. in TEST_F()
430 cli_->BindService("FakeService"); in TEST_F()
431 EXPECT_CALL(*cli_, OnServiceBound(_)).WillOnce(InvokeWithoutArgs(on_bind)); in TEST_F()
437 cli_->InvokeMethod(cli_->last_bound_service_id_, 1, req_args); in TEST_F()
449 EXPECT_CALL(*cli_, OnInvokeMethodReply(_)).Times(0); in TEST_F()
451 ASSERT_TRUE(::testing::Mock::VerifyAndClearExpectations(cli_.get())); in TEST_F()
462 EXPECT_CALL(*cli_, OnInvokeMethodReply(_)) in TEST_F()