Home
last modified time | relevance | path

Searched refs:mMockAdIdWorker (Results 1 – 7 of 7) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAdIdFetcherTest.java54 private MockAdIdWorker mMockAdIdWorker; field in AdIdFetcherTest
67 mMockAdIdWorker = new MockAdIdWorker(new AdIdCacheManager(mContext)); in setup()
77 mMockAdIdWorker, in testConstructor_nullContext()
95 () -> new AdIdFetcher(mContext, mMockAdIdWorker, null, mScheduledExecutor)); in testConstructor_nullExecutorService()
104 mContext, mMockAdIdWorker, mLightweightExecutorService, null)); in testConstructor_nullScheduledThreadPoolExecutor()
112 mMockAdIdWorker.setResult(MockAdIdWorker.MOCK_AD_ID, false); in testIsLimitedTrackingEnabled_PermissionsNotDeclared_ReturnsDefault()
115 mContext, mMockAdIdWorker, mLightweightExecutorService, mScheduledExecutor); in testIsLimitedTrackingEnabled_PermissionsNotDeclared_ReturnsDefault()
131 mMockAdIdWorker.setResult(MockAdIdWorker.MOCK_AD_ID, false); in testIsLimitedTrackingEnabled_Disabled_ReturnsFalse()
134 mContext, mMockAdIdWorker, mLightweightExecutorService, mScheduledExecutor); in testIsLimitedTrackingEnabled_Disabled_ReturnsFalse()
150 mMockAdIdWorker.setResult(MockAdIdWorker.MOCK_AD_ID, true); in testIsLimitedTrackingEnabled_LatEnabled_ReturnsTrue()
[all …]
DAuctionServerE2ETest.java337 private MockAdIdWorker mMockAdIdWorker; field in AuctionServerE2ETest
411 mMockAdIdWorker = new MockAdIdWorker(new AdIdCacheManager(mContext)); in setUp()
414 mContext, mMockAdIdWorker, mLightweightExecutorService, mScheduledExecutor); in setUp()
449 mMockAdIdWorker.setResult(AdId.ZERO_OUT, true); in setUp()
1518 mMockAdIdWorker.setResult(MockAdIdWorker.MOCK_AD_ID, false); in testGetAdSelectionData_withEncrypt_validRequest_LatDisabled()
1529 mMockAdIdWorker.setResult(MockAdIdWorker.MOCK_AD_ID, false); in testGetAdSelectionData_withEncrypt_validRequest_GetAdIdTimeoutException()
1530 mMockAdIdWorker.setDelay(AUCTION_SERVER_AD_ID_FETCHER_TIMEOUT_MS * 2); in testGetAdSelectionData_withEncrypt_validRequest_GetAdIdTimeoutException()
DAdSelectionE2ETest.java659 private MockAdIdWorker mMockAdIdWorker; field in AdSelectionE2ETest
712 mMockAdIdWorker = new MockAdIdWorker(new AdIdCacheManager(mSpyContext)); in setUp()
715 mContext, mMockAdIdWorker, mLightweightExecutorService, mScheduledExecutor); in setUp()
899 mMockAdIdWorker.setResult(AdId.ZERO_OUT, true); in setUp()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DAdServicesCommonServiceImplTest.java118 @Mock private AdIdWorker mMockAdIdWorker; field in AdServicesCommonServiceImplTest
142 mMockAdIdWorker, in setup()
191 mMockAdIdWorker, in isAdServiceEnabledTest_userNotEnrolledEntryPointLogicV1()
214 mMockAdIdWorker, in isAdServiceEnabledTest_userNotEnrolledEntryPointLogicV2()
231 mMockAdIdWorker, in getAdserviceStatusTest()
257 mMockAdIdWorker, in getAdserviceStatusWithCheckActivityTest()
743 doNothing().when(mMockAdIdWorker).updateAdId(request); in testUpdateAdIdChange()
750 verify(mMockAdIdWorker).updateAdId(request); in testUpdateAdIdChange()
760 doNothing().when(mMockAdIdWorker).updateAdId(request); in testUpdateAdIdChange_unauthorizedCaller()
767 verify(mMockAdIdWorker, never()).updateAdId(request); in testUpdateAdIdChange_unauthorizedCaller()
[all …]
DFledgeE2ETest.java356 private MockAdIdWorker mMockAdIdWorker; field in FledgeE2ETest
409 mMockAdIdWorker = new MockAdIdWorker(new AdIdCacheManager(mSpyContext)); in setUp()
413 mMockAdIdWorker, in setUp()
455 mMockAdIdWorker.setResult(AdId.ZERO_OUT, true); in setUp()
1926 mMockAdIdWorker.setResult(MockAdIdWorker.MOCK_AD_ID, false); in testFledgeFlowSuccessWithDebugReportingSentImmediately()
1991 mMockAdIdWorker.setResult(MockAdIdWorker.MOCK_AD_ID, false); in testFledgeFlowSuccessWithDebugReportingSentInBatch()
2086 mMockAdIdWorker.setResult(MockAdIdWorker.MOCK_AD_ID, true); in testFledgeFlowSuccessWithDebugReportingDisabledWhenLatEnabled()
2154 mMockAdIdWorker.setResult(MockAdIdWorker.MOCK_AD_ID, false); in testFledgeFlowSuccessWithDebugReportingDisabledWhenAdIdServiceDisabled()
4919 mMockAdIdWorker, in initClients()
/packages/modules/AdServices/adservices/apk/unittest/src/com/android/adservices/adid/
DAdIdServiceTest.java57 @Mock AdIdWorker mMockAdIdWorker; field in AdIdServiceTest
88 ExtendedMockito.doReturn(mMockAdIdWorker).when(() -> AdIdWorker.getInstance()); in testBindableAdIdService_killswitchOff()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/kanon/
DKAnonE2ETest.java315 private MockAdIdWorker mMockAdIdWorker; field in KAnonE2ETest
412 mMockAdIdWorker = new MockAdIdWorker(new AdIdCacheManager(mContext)); in setUp()
415 mContext, mMockAdIdWorker, mLightweightExecutorService, mScheduledExecutor); in setUp()
433 mMockAdIdWorker.setResult(AdId.ZERO_OUT, true); in setUp()