Home
last modified time | relevance | path

Searched refs:mMockEnrollmentDao (Results 1 – 3 of 3) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/download/
DEnrollmentDataDownloadManagerTest.java87 @Mock private EnrollmentDao mMockEnrollmentDao; field in EnrollmentDataDownloadManagerTest
132 doReturn(mMockEnrollmentDao).when(() -> (EnrollmentDao.getInstance())); in testReadFileAndInsertIntoDatabaseSuccess()
161 doReturn(true).when(mMockEnrollmentDao).insert(enrollmentDataCaptor.capture()); in testReadFileAndInsertIntoDatabaseSuccess()
185 verify(mMockEnrollmentDao, times(5)).insert(any()); in testReadFileAndInsertIntoDatabaseSuccess()
192 verifyZeroInteractions(mMockEnrollmentDao); in testReadFileAndInsertIntoDatabaseSuccess()
200 doReturn(mMockEnrollmentDao).when(() -> (EnrollmentDao.getInstance())); in testReadFileAndInsertIntoDatabaseFileGroupNull()
211 verify(mMockEnrollmentDao, never()).insert(any()); in testReadFileAndInsertIntoDatabaseFileGroupNull()
219 doReturn(mMockEnrollmentDao).when(() -> (EnrollmentDao.getInstance())); in testReadFileAndInsertIntoDatabaseEnrollmentDataFileIdMissing()
239 verify(mMockEnrollmentDao, never()).insert(any()); in testReadFileAndInsertIntoDatabaseEnrollmentDataFileIdMissing()
249 doReturn(mMockEnrollmentDao).when(() -> (EnrollmentDao.getInstance())); in testReadFileAndInsertIntoDatabaseExecutionException()
[all …]
/packages/modules/AdServices/adservices/apk/unittest/src/com/android/adservices/topics/
DTopicsServiceTest.java80 @Mock private EnrollmentDao mMockEnrollmentDao; field in TopicsServiceTest
112 doReturn(mMockEnrollmentDao).when(() -> EnrollmentDao.getInstance()); in testBindableTopicsService_killswitchOff()
174 doReturn(mMockEnrollmentDao).when(() -> EnrollmentDao.getInstance()); in testBindableTopicsService_killswitchOffGaUxFeatureFlagOn()
/packages/modules/AdServices/adservices/apk/unittest/src/com/android/adservices/measurement/
DMeasurementServiceTest.java102 @Mock private EnrollmentDao mMockEnrollmentDao; field in MeasurementServiceTest
207 ExtendedMockito.doReturn(mMockEnrollmentDao).when(() -> EnrollmentDao.getInstance()); in runWithMocks()
208 doReturn(ENROLLMENT).when(mMockEnrollmentDao).getEnrollmentDataFromMeasurementUrl(any()); in runWithMocks()