Lines Matching refs:mock_service1

2418   scoped_refptr<MockService> mock_service1(  in TEST_F()  local
2424 manager()->RegisterService(mock_service1); in TEST_F()
2433 EXPECT_CALL(*mock_service1, DoPropertiesMatch(_)) in TEST_F()
2438 EXPECT_EQ(mock_service1, manager()->FindMatchingService(args, &error)); in TEST_F()
2555 scoped_refptr<MockService> mock_service1( in TEST_F() local
2585 manager()->RegisterService(mock_service1); in TEST_F()
2595 EXPECT_TRUE(ServiceOrderIs(mock_service0, mock_service1)); in TEST_F()
2600 mock_service1->SetPriority(1, nullptr); in TEST_F()
2606 EXPECT_TRUE(ServiceOrderIs(mock_service1, mock_service0)); in TEST_F()
2611 mock_service1->SetPriority(0, nullptr); in TEST_F()
2617 EXPECT_TRUE(ServiceOrderIs(mock_service0, mock_service1)); in TEST_F()
2620 mock_service1->set_mock_connection(mock_connection1); in TEST_F()
2630 EXPECT_TRUE(ServiceOrderIs(mock_service0, mock_service1)); in TEST_F()
2641 mock_service1->SetPriority(1, nullptr); in TEST_F()
2645 EXPECT_CALL(mock_metrics, NotifyDefaultServiceChanged(mock_service1.get())); in TEST_F()
2649 EXPECT_TRUE(ServiceOrderIs(mock_service1, mock_service0)); in TEST_F()
2663 mock_service1->set_mock_connection(nullptr); // So DeregisterService works. in TEST_F()
2664 manager()->DeregisterService(mock_service1); in TEST_F()
2742 scoped_refptr<MockService> mock_service1 = in TEST_F() local
2745 mock_service1->set_connection_id(connection_id1); in TEST_F()
2755 manager()->RegisterService(mock_service1); in TEST_F()
3367 scoped_refptr<MockService> mock_service1( in TEST_F() local
3375 EXPECT_CALL(*mock_service1.get(), Configure(_, _)) in TEST_F()
3379 manager()->RegisterService(mock_service1); in TEST_F()
3402 mock_service1->SetGuid(kGUID1, nullptr); in TEST_F()
3413 EXPECT_CALL(*mock_service1.get(), Configure(_, &error)) in TEST_F()
3417 EXPECT_EQ(mock_service1.get(), service.get()); in TEST_F()
3421 manager()->DeregisterService(mock_service1); in TEST_F()
3439 scoped_refptr<MockService> mock_service1( in TEST_F() local
3447 EXPECT_CALL(*mock_service1.get(), IsConnected()) in TEST_F()
3451 manager()->RegisterService(mock_service1); in TEST_F()
3457 manager()->DeregisterService(mock_service1); in TEST_F()
3471 scoped_refptr<MockService> mock_service1( in TEST_F() local
3479 EXPECT_CALL(*mock_service1.get(), IsConnected()) in TEST_F()
3483 EXPECT_CALL(*mock_service1.get(), state()) in TEST_F()
3487 manager()->RegisterService(mock_service1); in TEST_F()
3494 manager()->DeregisterService(mock_service1); in TEST_F()