/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | AdSelectionE2ETest.java | 605 private final AdServicesLogger mAdServicesLoggerMock = field in AdSelectionE2ETest 635 mAdServicesLoggerMock)); 751 mAdServicesLoggerMock, in setUp() 911 .when(mAdServicesLoggerMock) in testRunAdSelectionSuccess_preV3BiddingLogic() 918 .when(mAdServicesLoggerMock) in testRunAdSelectionSuccess_preV3BiddingLogic() 925 .when(mAdServicesLoggerMock) in testRunAdSelectionSuccess_preV3BiddingLogic() 964 verify(mAdServicesLoggerMock) in testRunAdSelectionSuccess_preV3BiddingLogic() 966 verify(mAdServicesLoggerMock) in testRunAdSelectionSuccess_preV3BiddingLogic() 968 verify(mAdServicesLoggerMock) in testRunAdSelectionSuccess_preV3BiddingLogic() 971 verify(mAdServicesLoggerMock) in testRunAdSelectionSuccess_preV3BiddingLogic() [all …]
|
D | UpdateAdCounterHistogramWorkerTest.java | 83 @Mock private AdServicesLogger mAdServicesLoggerMock; field in UpdateAdCounterHistogramWorkerTest 100 mAdServicesLoggerMock, in setup() 134 verify(mAdServicesLoggerMock) in testWorkerUpdatesHistogramAndNotifiesSuccess() 165 verify(mAdServicesLoggerMock) in testWorkerValidatesInvalidAdEventTypeAndNotifiesFailure() 180 mAdServicesLoggerMock, in testWorkerFeatureFlagDisabledStopsAndNotifiesFailure() 197 verify(mAdServicesLoggerMock) in testWorkerFeatureFlagDisabledStopsAndNotifiesFailure() 223 verifyNoMoreInteractions(mHistogramUpdaterMock, mAdServicesLoggerMock); in testWorkerFilterFailureStopsAndNotifiesFailure() 241 verify(mAdServicesLoggerMock) in testWorkerConsentFailureStopsAndNotifiesSuccess() 276 verify(mAdServicesLoggerMock) in testWorkerInvalidArgumentFailureStopsAndNotifiesFailure() 292 .when(mAdServicesLoggerMock) in testWorkerSuccessWithCallbackErrorLogsUnknownError() [all …]
|
D | ReportEventImplTest.java | 150 @Mock private AdServicesLogger mAdServicesLoggerMock; field in ReportEventImplTest 211 mAdServicesLoggerMock, in setup() 310 verify(mAdServicesLoggerMock) in testImplSuccessfullyReportsRegisteredInteractions() 326 Mockito.verify(mAdServicesLoggerMock, times(1)) in testImplSuccessfullyReportsRegisteredInteractions() 399 verify(mAdServicesLoggerMock) in testImplDoesNotCrashAfterSellerReportingThrowsAnException() 411 Mockito.verify(mAdServicesLoggerMock, times(1)) in testImplDoesNotCrashAfterSellerReportingThrowsAnException() 484 verify(mAdServicesLoggerMock) in testImplDoesNotCrashAfterBuyerReportingThrowsAnException() 496 Mockito.verify(mAdServicesLoggerMock, times(1)) in testImplDoesNotCrashAfterBuyerReportingThrowsAnException() 555 verify(mAdServicesLoggerMock) in testImplOnlyReportsBuyersRegisteredInteractions() 567 Mockito.verify(mAdServicesLoggerMock, times(1)) in testImplOnlyReportsBuyersRegisteredInteractions() [all …]
|
D | ReportAndRegisterEventImplTest.java | 147 @Mock private AdServicesLogger mAdServicesLoggerMock; field in ReportAndRegisterEventImplTest 277 verify(mAdServicesLoggerMock) in testImplSuccessfullyReportsRegisteredEvents() 317 verify(mAdServicesLoggerMock) in testImplDoesNotCrashAfterSellerReportingThrowsAnException() 357 verify(mAdServicesLoggerMock) in testImplDoesNotCrashAfterBuyerReportingThrowsAnException() 382 verify(mAdServicesLoggerMock) in testImplOnlyReportsBuyersRegisteredEvents() 407 verify(mAdServicesLoggerMock) in testImplOnlyReportsSellerRegisteredEvents() 446 verify(mAdServicesLoggerMock) in testImplReturnsOnlyReportsUriThatPassesEnrollmentCheck() 454 Mockito.verify(mAdServicesLoggerMock, times(1)) in testImplReturnsOnlyReportsUriThatPassesEnrollmentCheck() 493 verify(mAdServicesLoggerMock) in testImplReturnsSuccessButDoesNotDoReportingWhenBothFailEnrollmentCheck() 501 Mockito.verify(mAdServicesLoggerMock, times(1)) in testImplReturnsSuccessButDoesNotDoReportingWhenBothFailEnrollmentCheck() [all …]
|
D | AdSelectionServiceImplTest.java | 291 private final AdServicesLogger mAdServicesLoggerMock = field in AdSelectionServiceImplTest 528 mAdServicesLoggerMock, in testReportImpressionSuccessWithRegisterAdBeaconDisabled() 565 verify(mAdServicesLoggerMock) in testReportImpressionSuccessWithRegisterAdBeaconDisabled() 656 mAdServicesLoggerMock, in testReportImpressionSuccessCallbackThrowsErrorAuctionServerEnabled() 693 verify(mAdServicesLoggerMock) in testReportImpressionSuccessCallbackThrowsErrorAuctionServerEnabled() 784 mAdServicesLoggerMock, in testReportImpressionFailureCallbackThrowsErrorAuctionServerEnabled() 814 verify(mAdServicesLoggerMock) in testReportImpressionFailureCallbackThrowsErrorAuctionServerEnabled() 905 mAdServicesLoggerMock, in testReportImpressionSuccessCallbackThrowsErrorAuctionServerDisabled() 942 verify(mAdServicesLoggerMock) in testReportImpressionSuccessCallbackThrowsErrorAuctionServerDisabled() 1033 mAdServicesLoggerMock, in testReportImpressionFailureCallbackThrowsErrorAuctionServerDisabled() [all …]
|
D | ReportAndRegisterEventFallbackImplTest.java | 153 @Mock private AdServicesLogger mAdServicesLoggerMock; field in ReportAndRegisterEventFallbackImplTest 288 verify(mAdServicesLoggerMock) in testImplSuccessfullyReportsRegisteredEvents() 353 verify(mAdServicesLoggerMock) in testImplDoesNotCrashAfterSellerReportingThrowsAnException() 409 verify(mAdServicesLoggerMock) in testImplDoesNotCrashAfterSellerReportingAndRegisteringThrowsAnException() 474 verify(mAdServicesLoggerMock) in testImplDoesNotCrashAfterBuyerReportingThrowsAnException() 530 verify(mAdServicesLoggerMock) in testImplDoesNotCrashAfterBuyerReportingAndRegisteringThrowsAnException() 579 verify(mAdServicesLoggerMock) in testImplOnlyReportsBuyersRegisteredEvents() 624 verify(mAdServicesLoggerMock) in testImplOnlyReportsSellerRegisteredEvents() 684 verify(mAdServicesLoggerMock) in testImplReturnsOnlyReportsUriThatPassesEnrollmentCheck() 695 Mockito.verify(mAdServicesLoggerMock, times(1)) in testImplReturnsOnlyReportsUriThatPassesEnrollmentCheck() [all …]
|
D | OnDeviceAdSelectionRunnerTest.java | 297 private AdServicesLogger mAdServicesLoggerMock = field in OnDeviceAdSelectionRunnerTest 461 mAdServicesLoggerMock, in testRunAdSelectionSuccess() 542 verify(mAdServicesLoggerMock) in testRunAdSelectionSuccess() 570 mAdServicesLoggerMock, in testRunAdSelectionSuccessWithShouldUseUnifiedTablesFlag() 683 verify(mAdServicesLoggerMock) in testRunAdSelectionSuccessWithShouldUseUnifiedTablesFlag() 746 mAdServicesLoggerMock, in testRunAdSelectionSuccessWithBuyerContextualSignals() 826 verify(mAdServicesLoggerMock) in testRunAdSelectionSuccessWithBuyerContextualSignals() 875 mAdServicesLoggerMock, in testRunAdSelectionSuccessWithSellerDataVersionHeader() 955 verify(mAdServicesLoggerMock) in testRunAdSelectionSuccessWithSellerDataVersionHeader() 1021 mAdServicesLoggerMock, in testRunAdSelectionSuccessFilteringDisabled() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | FledgeAuthorizationFilterTest.java | 99 private final AdServicesLogger mAdServicesLoggerMock = field in FledgeAuthorizationFilterTest 112 mAdServicesLoggerMock, in setup() 125 verifyZeroInteractions(mAdServicesLoggerMock, mEnrollmentDaoMock); in testAssertCallingPackageName_isCallingPackageName() 134 verifyZeroInteractions(mPackageManagerMock, mAdServicesLoggerMock, mEnrollmentDaoMock); in testAssertCallingPackageName_nullPackageName_throwNpe() 153 verify(mAdServicesLoggerMock) in testAssertCallingPackageName_isNotCallingPackageName_throwSecurityException() 159 verifyNoMoreInteractions(mPackageManagerMock, mAdServicesLoggerMock, mEnrollmentDaoMock); in testAssertCallingPackageName_isNotCallingPackageName_throwSecurityException() 177 verify(mAdServicesLoggerMock) in testAssertCallingPackageName_packageNotExist_throwSecurityException() 183 verifyNoMoreInteractions(mPackageManagerMock, mEnrollmentDaoMock, mAdServicesLoggerMock); in testAssertCallingPackageName_packageNotExist_throwSecurityException() 207 verifyZeroInteractions(mPackageManagerMock, mEnrollmentDaoMock, mAdServicesLoggerMock); in testAssertAppHasCaPermission_appHasPermission() 232 verifyZeroInteractions(mPackageManagerMock, mEnrollmentDaoMock, mAdServicesLoggerMock); in testAssertAppHasPasPermission_appHasPermission() [all …]
|
D | FledgeAllowListsFilterTest.java | 57 private final AdServicesLogger mAdServicesLoggerMock = field in FledgeAllowListsFilterTest 70 new FledgeAllowListsFilter(new AllowListTestFlags(), mAdServicesLoggerMock); in setup() 78 verifyZeroInteractions(mAdServicesLoggerMock); in testIsAllowedPpapi() 86 verifyZeroInteractions(mAdServicesLoggerMock); in testIsAllowedSignals() 94 verifyZeroInteractions(mAdServicesLoggerMock); in testIsAllowedAdSelectionSignalsListOnly() 102 verifyZeroInteractions(mAdServicesLoggerMock); in testIsAllowedAdSelectionCaListOnly() 110 verifyZeroInteractions(mAdServicesLoggerMock); in testIsAllowedAdSelectionBothLists() 128 verify(mAdServicesLoggerMock) in testIsNotAllowedAdSelection() 135 verifyNoMoreInteractions(mAdServicesLoggerMock); in testIsNotAllowedAdSelection() 152 verify(mAdServicesLoggerMock) in testNotAllowedPpapi() [all …]
|
D | FledgeMaintenanceTasksWorkerTests.java | 68 @Mock private AdServicesLogger mAdServicesLoggerMock; field in FledgeMaintenanceTasksWorkerTests 87 mAdServicesLoggerMock, in setup() 107 verify(mAdServicesLoggerMock, times(1)) in testClearExpiredAdSelectionData_removesExpiredData() 165 mAdServicesLoggerMock, in testClearExpiredAdSelectionData_serverAuctionDisabled_doesntClearDataFromUnifiedFlow() 171 verify(mAdServicesLoggerMock, times(1)) in testClearExpiredAdSelectionData_serverAuctionDisabled_doesntClearDataFromUnifiedFlow() 233 mAdServicesLoggerMock, in testClearExpiredAdSelectionData_serverAuctionDisabled_unifiedTablesEnabled_ClearsUnifiedTables() 239 verify(mAdServicesLoggerMock, times(1)) in testClearExpiredAdSelectionData_serverAuctionDisabled_unifiedTablesEnabled_ClearsUnifiedTables() 286 mAdServicesLoggerMock, in testClearExpiredFrequencyCapHistogramData_adFilteringEnabled_doesMaintenance() 328 mAdServicesLoggerMock, in testClearExpiredFrequencyCapHistogramData_enrollmentDisabled_skipsBuyerMaintenance() 367 mAdServicesLoggerMock, in testClearExpiredFrequencyCapHistogramData_adFilteringDisabled_skipsMaintenance() [all …]
|
D | FledgeConsentFilterTest.java | 47 @Mock private AdServicesLogger mAdServicesLoggerMock; field in FledgeConsentFilterTest 53 mFledgeConsentFilter = new FledgeConsentFilter(mConsentManagerMock, mAdServicesLoggerMock); in setup() 63 verifyNoMoreInteractions(mAdServicesLoggerMock); in testAssertCallerHasApiUserConsent_hasConsent_doesNotThrowOrLogError() 77 verify(mAdServicesLoggerMock) in testAssertCallerHasApiUserConsent_revokedConsent_throwsAndLogsError() 94 verifyNoMoreInteractions(mAdServicesLoggerMock); in testAssertAndPersistCallerHasUserConsentForApp_hasConsent_doesNotThrowOrLogError() 109 verify(mAdServicesLoggerMock) in testAssertAndPersistCallerHasUserConsentForApp_revokedConsent_throwsAndLogsError()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/stats/ |
D | AdsRelevanceExecutionLoggerImplTest.java | 76 @Mock private AdServicesLogger mAdServicesLoggerMock; field in AdsRelevanceExecutionLoggerImplTest 100 mAdServicesLoggerMock, in testFledgeAuctionServerExecutionLogger_successGetAdSelectionData() 106 verify(mAdServicesLoggerMock).logApiCallStats(argumentCaptor.capture()); in testFledgeAuctionServerExecutionLogger_successGetAdSelectionData() 133 mAdServicesLoggerMock, in testFledgeAuctionServerExecutionLogger_successPersistAdSelectionResult() 139 verify(mAdServicesLoggerMock).logApiCallStats(argumentCaptor.capture()); in testFledgeAuctionServerExecutionLogger_successPersistAdSelectionResult() 158 mAdServicesLoggerMock, in testFledgeAuctionServerExecutionLogger_missingStartOfGetAdSelectionData() 168 verify(mAdServicesLoggerMock).logApiCallStats(argumentCaptor.capture()); in testFledgeAuctionServerExecutionLogger_missingStartOfGetAdSelectionData() 191 mAdServicesLoggerMock, in testFledgeAuctionServerExecutionLogger_redundantEndOfGetAdSelectionData() 201 verify(mAdServicesLoggerMock).logApiCallStats(argumentCaptor.capture()); in testFledgeAuctionServerExecutionLogger_redundantEndOfGetAdSelectionData() 220 mAdServicesLoggerMock, in testFledgeAuctionServerExecutionLogger_missingStartOfPersistAdSelectionResult() [all …]
|
D | ServerAuctionKeyFetchExecutionLoggerImplTest.java | 50 @Mock private AdServicesLogger mAdServicesLoggerMock; field in ServerAuctionKeyFetchExecutionLoggerImplTest 67 new ServerAuctionKeyFetchExecutionLoggerImpl(mClockMock, mAdServicesLoggerMock); in testServerAuctionKeyFetchExecutionLogger_successNetworkKeyFetch() 76 verify(mAdServicesLoggerMock).logServerAuctionKeyFetchCalledStats(argumentCaptor.capture()); in testServerAuctionKeyFetchExecutionLogger_successNetworkKeyFetch() 99 new ServerAuctionKeyFetchExecutionLoggerImpl(mClockMock, mAdServicesLoggerMock); in testServerAuctionKeyFetchExecutionLogger_successDatabaseKeyFetch() 106 verify(mAdServicesLoggerMock).logServerAuctionKeyFetchCalledStats(argumentCaptor.capture()); in testServerAuctionKeyFetchExecutionLogger_successDatabaseKeyFetch() 132 new ServerAuctionKeyFetchExecutionLoggerImpl(mClockMock, mAdServicesLoggerMock); in testServerAuctionKeyFetchExecutionLogger_NetworkKeyFetch_WrongEncryptionKeySource() 141 verify(mAdServicesLoggerMock).logServerAuctionKeyFetchCalledStats(argumentCaptor.capture()); in testServerAuctionKeyFetchExecutionLogger_NetworkKeyFetch_WrongEncryptionKeySource() 165 new ServerAuctionKeyFetchExecutionLoggerImpl(mClockMock, mAdServicesLoggerMock); in testServerAuctionKeyFetchExecutionLogger_DatabaseKeyFetch_WrongEncryptionKeySource() 172 verify(mAdServicesLoggerMock).logServerAuctionKeyFetchCalledStats(argumentCaptor.capture()); in testServerAuctionKeyFetchExecutionLogger_DatabaseKeyFetch_WrongEncryptionKeySource() 192 new ServerAuctionKeyFetchExecutionLoggerImpl(mClockMock, mAdServicesLoggerMock); in testServerAuctionKeyFetchExecutionLogger_missingStartOfGetAdSelectionData() [all …]
|
D | ReportImpressionExecutionLoggerImplTest.java | 31 @Mock private AdServicesLogger mAdServicesLoggerMock; field in ReportImpressionExecutionLoggerImplTest 37 mAdServicesLoggerMock, new ReportImpressionExecutionLoggerTestFlags()); in testReportImpressionStatsLogger_successLogging() 50 verify(mAdServicesLoggerMock).logReportImpressionApiCalledStats(argumentCaptor.capture()); in testReportImpressionStatsLogger_successLogging() 66 mAdServicesLoggerMock, new ReportImpressionExecutionLoggerTestFlags()); in testReportImpressionStatsLogger_default() 72 verify(mAdServicesLoggerMock).logReportImpressionApiCalledStats(argumentCaptor.capture()); in testReportImpressionStatsLogger_default() 89 mAdServicesLoggerMock, in testReportImpressionStatsLogger_disabledCpcBillingMetrics() 108 verify(mAdServicesLoggerMock).logReportImpressionApiCalledStats(argumentCaptor.capture()); in testReportImpressionStatsLogger_disabledCpcBillingMetrics() 124 mAdServicesLoggerMock, in testReportImpressionStatsLogger_disabledDataVersionHeaderMetrics() 143 verify(mAdServicesLoggerMock).logReportImpressionApiCalledStats(argumentCaptor.capture()); in testReportImpressionStatsLogger_disabledDataVersionHeaderMetrics()
|
D | AdFilteringLoggerFactoryTest.java | 41 @Mock private AdServicesLogger mAdServicesLoggerMock; field in AdFilteringLoggerFactoryTest 64 new AdFilteringLoggerFactory(mAdServicesLoggerMock, flags); in testBothMetricsFlagsOn_returnsAdFilteringLoggerImpl() 76 verify(mAdServicesLoggerMock, times(2)) in testBothMetricsFlagsOn_returnsAdFilteringLoggerImpl() 99 new AdFilteringLoggerFactory(mAdServicesLoggerMock, flags); in testAppInstallMetricsFlagOn_returnsAdFilteringLoggerImpl() 111 verify(mAdServicesLoggerMock, times(2)) in testAppInstallMetricsFlagOn_returnsAdFilteringLoggerImpl() 134 new AdFilteringLoggerFactory(mAdServicesLoggerMock, flags); in testFreqCapMetricsFlagOn_returnsAdFilteringLoggerImpl() 146 verify(mAdServicesLoggerMock, times(2)) in testFreqCapMetricsFlagOn_returnsAdFilteringLoggerImpl() 169 new AdFilteringLoggerFactory(mAdServicesLoggerMock, flags); in testBothMetricsFlagsOff_returnsANoOpLoggerImpl() 180 verifyZeroInteractions(mAdServicesLoggerMock); in testBothMetricsFlagsOff_returnsANoOpLoggerImpl()
|
D | AdsRelevanceExecutionLoggerFactoryTest.java | 46 private AdServicesLogger mAdServicesLoggerMock; field in AdsRelevanceExecutionLoggerFactoryTest 61 mAdServicesLoggerMock = Mockito.spy(AdServicesLoggerImpl.getInstance()); in setup() 76 mAdServicesLoggerMock, in testPersistAdSelectionResultAdsRelevanceExecutionLogger_telemetryEnabled() 90 mAdServicesLoggerMock, in testPersistAdSelectionResultAdsRelevanceExecutionLogger_telemetryDisabled() 104 mAdServicesLoggerMock, in testGetAdSelectionDataAdsRelevanceExecutionLogger_telemetryEnabled() 118 mAdServicesLoggerMock, in testGetAdSelectionDataAdsRelevanceExecutionLogger_telemetryDisabled() 132 mAdServicesLoggerMock, in testUpdateSignalsAdsRelevanceExecutionLogger() 146 mAdServicesLoggerMock, in testUnknownApiAdsRelevanceExecutionLogger()
|
D | RunAdBiddingPerCAExecutionLoggerTest.java | 119 @Mock private AdServicesLogger mAdServicesLoggerMock; field in RunAdBiddingPerCAExecutionLoggerTest 148 new RunAdBiddingPerCAExecutionLogger(mMockClock, mAdServicesLoggerMock, mFlags); in testRunAdBiddingPerCAExecutionLogger_SuccessRunAdBiddingPerCA() 167 verify(mAdServicesLoggerMock) in testRunAdBiddingPerCAExecutionLogger_SuccessRunAdBiddingPerCA() 230 new RunAdBiddingPerCAExecutionLogger(mMockClock, mAdServicesLoggerMock, mFlags); in testRunAdBiddingPerCAExecutionLogger_FailedBeforeGenerateBids() 248 verify(mAdServicesLoggerMock) in testRunAdBiddingPerCAExecutionLogger_FailedBeforeGenerateBids() 313 new RunAdBiddingPerCAExecutionLogger(mMockClock, mAdServicesLoggerMock, mFlags); in testRunAdBiddingPerCAExecutionLogger_FailedByGenerateBids() 330 verify(mAdServicesLoggerMock) in testRunAdBiddingPerCAExecutionLogger_FailedByGenerateBids() 392 new RunAdBiddingPerCAExecutionLogger(mMockClock, mAdServicesLoggerMock, mFlags); in testRunAdBiddingPerCAExecutionLogger_FailedByGetTrustedBiddingSignals() 408 verify(mAdServicesLoggerMock) in testRunAdBiddingPerCAExecutionLogger_FailedByGetTrustedBiddingSignals() 470 new RunAdBiddingPerCAExecutionLogger(mMockClock, mAdServicesLoggerMock, mFlags); in testRunAdBiddingPerCAExecutionLogger_FailedByGetBuyerDecisionLogic() [all …]
|
D | SelectAdsFromOutcomesExecutionLoggerImplTest.java | 53 @Mock private AdServicesLogger mAdServicesLoggerMock; field in SelectAdsFromOutcomesExecutionLoggerImplTest 73 new SelectAdsFromOutcomesExecutionLoggerImpl(mClockMock, mAdServicesLoggerMock); in testSelectAdsFromOutcomesExecutionLogger_successDownloadAndExecution() 86 verify(mAdServicesLoggerMock) in testSelectAdsFromOutcomesExecutionLogger_successDownloadAndExecution() 110 new SelectAdsFromOutcomesExecutionLoggerImpl(mClockMock, mAdServicesLoggerMock); in testSelectAdsFromOutcomesExecutionLogger_missingStartOfDownload() 123 verify(mAdServicesLoggerMock) in testSelectAdsFromOutcomesExecutionLogger_missingStartOfDownload() 151 new SelectAdsFromOutcomesExecutionLoggerImpl(mClockMock, mAdServicesLoggerMock); in testSelectAdsFromOutcomesExecutionLogger_repeatedEndOfDownload() 165 verify(mAdServicesLoggerMock) in testSelectAdsFromOutcomesExecutionLogger_repeatedEndOfDownload() 189 new SelectAdsFromOutcomesExecutionLoggerImpl(mClockMock, mAdServicesLoggerMock); in testSelectAdsFromOutcomesExecutionLogger_missingStartOfExecution() 203 verify(mAdServicesLoggerMock) in testSelectAdsFromOutcomesExecutionLogger_missingStartOfExecution() 231 new SelectAdsFromOutcomesExecutionLoggerImpl(mClockMock, mAdServicesLoggerMock); in testSelectAdsFromOutcomesExecutionLogger_repeatedEndOfExecution() [all …]
|
D | SignatureVerificationLoggerFactoryTest.java | 35 @Mock private AdServicesLogger mAdServicesLoggerMock; field in SignatureVerificationLoggerFactoryTest 54 new SignatureVerificationLoggerFactory(mAdServicesLoggerMock, flags); in testBothMetricsFlagsOn_returnsSignatureVerificationLoggerImpl() 67 verify(mAdServicesLoggerMock, times(1)) in testBothMetricsFlagsOn_returnsSignatureVerificationLoggerImpl() 83 new SignatureVerificationLoggerFactory(mAdServicesLoggerMock, flags); in testBothMetricsFlagsOff_returnsANoOpLoggerImpl() 89 verifyZeroInteractions(mAdServicesLoggerMock); in testBothMetricsFlagsOff_returnsANoOpLoggerImpl()
|
D | SignatureVerificationLoggerImplTest.java | 60 @Mock private AdServicesLogger mAdServicesLoggerMock; field in SignatureVerificationLoggerImplTest 92 verify(mAdServicesLoggerMock) in testSignatureVerification_successfulVerificationLogging() 137 verify(mAdServicesLoggerMock) in testSignatureVerification_failedVerificationLogging() 173 verify(mAdServicesLoggerMock) in testSignatureVerification_errorDetailLoggedOnlyInCaseOfError() 197 verify(mAdServicesLoggerMock, times(0)).logSignatureVerificationStats(any()); in testSignatureVerification_missingEndKeyFetchTimestamp() 215 verify(mAdServicesLoggerMock, times(0)).logSignatureVerificationStats(any()); in testSignatureVerification_missingEndSerializationTimestamp() 233 verify(mAdServicesLoggerMock, times(0)).logSignatureVerificationStats(any()); in testSignatureVerification_missingEndSignatureVerificationTimestamp() 237 return new SignatureVerificationLoggerImpl(mAdServicesLoggerMock, mMockClock); in getSignatureVerificationLogger()
|
D | BackgroundFetchExecutionLoggerTest.java | 45 @Mock private AdServicesLogger mAdServicesLoggerMock; field in BackgroundFetchExecutionLoggerTest 66 new BackgroundFetchExecutionLogger(mClockMock, mAdServicesLoggerMock); in testBackgroundFetchExecutionLogger_SuccessBackgroundFetch() 70 verify(mAdServicesLoggerMock) in testBackgroundFetchExecutionLogger_SuccessBackgroundFetch() 87 new BackgroundFetchExecutionLogger(mClockMock, mAdServicesLoggerMock); in testBackgroundFetchExecutionLogger_missingStartBackgroundFetch() 102 new BackgroundFetchExecutionLogger(mClockMock, mAdServicesLoggerMock); in testBackgroundFetchExecutionLogger_repeatedEndBackgroundFetch()
|
D | UpdateCustomAudienceExecutionLoggerTest.java | 48 @Mock private AdServicesLogger mAdServicesLoggerMock; field in UpdateCustomAudienceExecutionLoggerTest 71 new UpdateCustomAudienceExecutionLogger(mClockMock, mAdServicesLoggerMock); in testUpdateCustomAudienceExecutionLogger_Success() 76 verify(mAdServicesLoggerMock) in testUpdateCustomAudienceExecutionLogger_Success() 92 new UpdateCustomAudienceExecutionLogger(mClockMock, mAdServicesLoggerMock); in testUpdateCustomAudienceExecutionLogger_missingStart() 110 new UpdateCustomAudienceExecutionLogger(mClockMock, mAdServicesLoggerMock); in testUpdateCustomAudienceExecutionLogger_RepeatedClose()
|
D | EncodingJobRunStatsLoggerImplTest.java | 34 @Mock private AdServicesLogger mAdServicesLoggerMock; field in EncodingJobRunStatsLoggerImplTest 43 mAdServicesLoggerMock, EncodingJobRunStats.builder()); in setUp() 61 verify(mAdServicesLoggerMock).logEncodingJobRunStats(argumentCaptor.capture()); in testEncodingJobRunStatsLogger_successLogging() 80 verify(mAdServicesLoggerMock).logEncodingJobRunStats(argumentCaptor.capture()); in testEncodingJobRunStatsLogger_emptyLogging()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/encryption/ |
D | BackgroundKeyFetchWorkerTest.java | 105 @Mock private AdServicesLogger mAdServicesLoggerMock; field in BackgroundKeyFetchWorkerTest 144 mAdServicesLoggerMock)); in setup() 155 mKeyManagerSpy, mDevContext, mFlags, mClockMock, mAdServicesLoggerMock); in setup() 172 mAdServicesLoggerMock)); in testBackgroundKeyFetchWorker_nullInputs_causeFailure() 182 mAdServicesLoggerMock)); in testBackgroundKeyFetchWorker_nullInputs_causeFailure() 192 mAdServicesLoggerMock)); in testBackgroundKeyFetchWorker_nullInputs_causeFailure() 202 mAdServicesLoggerMock)); in testBackgroundKeyFetchWorker_nullInputs_causeFailure() 232 mAdServicesLoggerMock); in testRunBackgroundKeyFetch_longRuntime_throwsTimeoutDuringFetch() 268 mAdServicesLoggerMock); in testRunBackgroundKeyFetch_longRuntime_throwsTimeoutDuringFetch() 290 verify(mAdServicesLoggerMock) [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/ |
D | FetchCustomAudienceImplTest.java | 176 private final AdServicesLogger mAdServicesLoggerMock = field in FetchCustomAudienceImplTest 303 verify(mAdServicesLoggerMock) in testImpl_disabled() 337 verify(mAdServicesLoggerMock, never()) in testImpl_invalidPackageName_throws() 366 verify(mAdServicesLoggerMock, never()) in testImpl_throttled_throws() 399 verify(mAdServicesLoggerMock, never()) in testImpl_failedForegroundCheck_throws() 432 verify(mAdServicesLoggerMock, never()) in testImpl_failedEnrollmentCheck_throws() 465 verify(mAdServicesLoggerMock, never()) in testImpl_appCannotUsePPAPI_throws() 494 verify(mAdServicesLoggerMock, never()) in testImpl_revokedConsent_failsSilently() 538 verify(mAdServicesLoggerMock) in testImpl_invalidRequest_quotaExhausted_throws() 573 verify(mAdServicesLoggerMock) in testImpl_invalidRequest_invalidName_throws() [all …]
|