Lines Matching refs:access

62     MockServiceManager(std::unique_ptr<Access>&& access) : ServiceManager(std::move(access)) {}  in MockServiceManager()  argument
67 std::unique_ptr<MockAccess> access = std::make_unique<NiceMock<MockAccess>>(); in getPermissiveServiceManager() local
69 ON_CALL(*access, getCallingContext()).WillByDefault(Return(Access::CallingContext{})); in getPermissiveServiceManager()
70 ON_CALL(*access, canAdd(_, _)).WillByDefault(Return(true)); in getPermissiveServiceManager()
71 ON_CALL(*access, canFind(_, _)).WillByDefault(Return(true)); in getPermissiveServiceManager()
72 ON_CALL(*access, canList(_)).WillByDefault(Return(true)); in getPermissiveServiceManager()
74 sp<ServiceManager> sm = new NiceMock<MockServiceManager>(std::move(access)); in getPermissiveServiceManager()
116 std::unique_ptr<MockAccess> access = std::make_unique<NiceMock<MockAccess>>(); in TEST() local
117 EXPECT_CALL(*access, getCallingContext()).WillOnce(Return(Access::CallingContext{ in TEST()
121 EXPECT_CALL(*access, canAdd(_, _)).Times(0); in TEST()
122 sp<ServiceManager> sm = new NiceMock<MockServiceManager>(std::move(access)); in TEST()
139 std::unique_ptr<MockAccess> access = std::make_unique<NiceMock<MockAccess>>(); in TEST() local
141 EXPECT_CALL(*access, getCallingContext()).WillOnce(Return(Access::CallingContext{})); in TEST()
142 EXPECT_CALL(*access, canAdd(_, _)).WillOnce(Return(false)); in TEST()
144 sp<ServiceManager> sm = new NiceMock<MockServiceManager>(std::move(access)); in TEST()
171 std::unique_ptr<MockAccess> access = std::make_unique<NiceMock<MockAccess>>(); in TEST() local
173 EXPECT_CALL(*access, getCallingContext()).WillRepeatedly(Return(Access::CallingContext{})); in TEST()
174 EXPECT_CALL(*access, canAdd(_, _)).WillOnce(Return(true)); in TEST()
175 EXPECT_CALL(*access, canFind(_, _)).WillOnce(Return(false)); in TEST()
177 sp<ServiceManager> sm = new NiceMock<MockServiceManager>(std::move(access)); in TEST()
189 std::unique_ptr<MockAccess> access = std::make_unique<NiceMock<MockAccess>>(); in TEST() local
191 EXPECT_CALL(*access, getCallingContext()) in TEST()
198 EXPECT_CALL(*access, canAdd(_, _)).WillOnce(Return(true)); in TEST()
199 EXPECT_CALL(*access, canFind(_, _)).WillOnce(Return(true)); in TEST()
201 sp<ServiceManager> sm = new NiceMock<MockServiceManager>(std::move(access)); in TEST()
213 std::unique_ptr<MockAccess> access = std::make_unique<NiceMock<MockAccess>>(); in TEST() local
215 EXPECT_CALL(*access, getCallingContext()) in TEST()
222 EXPECT_CALL(*access, canAdd(_, _)).WillOnce(Return(true)); in TEST()
227 sp<ServiceManager> sm = new NiceMock<MockServiceManager>(std::move(access)); in TEST()
239 std::unique_ptr<MockAccess> access = std::make_unique<NiceMock<MockAccess>>(); in TEST() local
241 EXPECT_CALL(*access, getCallingContext()).WillOnce(Return(Access::CallingContext{})); in TEST()
242 EXPECT_CALL(*access, canList(_)).WillOnce(Return(false)); in TEST()
244 sp<ServiceManager> sm = new NiceMock<MockServiceManager>(std::move(access)); in TEST()
307 std::unique_ptr<MockAccess> access = std::make_unique<NiceMock<MockAccess>>(); in TEST() local
309 EXPECT_CALL(*access, getCallingContext()).WillOnce(Return(Access::CallingContext{})); in TEST()
310 EXPECT_CALL(*access, canFind(_,_)).WillOnce(Return(false)); in TEST()
312 sp<ServiceManager> sm = new ServiceManager(std::move(access)); in TEST()
321 std::unique_ptr<MockAccess> access = std::make_unique<NiceMock<MockAccess>>(); in TEST() local
323 EXPECT_CALL(*access, getCallingContext()).WillOnce(Return(Access::CallingContext{})); in TEST()
324 EXPECT_CALL(*access, canFind(_,_)).WillOnce(Return(false)); in TEST()
326 sp<ServiceManager> sm = new ServiceManager(std::move(access)); in TEST()