/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | AdIdFetcherTest.java | 54 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 …]
|
D | AuctionServerE2ETest.java | 337 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()
|
D | AdSelectionE2ETest.java | 659 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/ |
D | AdServicesCommonServiceImplTest.java | 118 @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 …]
|
D | FledgeE2ETest.java | 356 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/ |
D | AdIdServiceTest.java | 57 @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/ |
D | KAnonE2ETest.java | 315 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()
|