/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/ |
D | FetchCustomAudienceImplTest.java | 330 assertEquals(STATUS_UNAUTHORIZED, callback.mFledgeErrorResponse.getStatusCode()); in testImpl_invalidPackageName_throws() 333 callback.mFledgeErrorResponse.getErrorMessage()); in testImpl_invalidPackageName_throws() 360 assertEquals(STATUS_RATE_LIMIT_REACHED, callback.mFledgeErrorResponse.getStatusCode()); in testImpl_throttled_throws() 362 RATE_LIMIT_REACHED_ERROR_MESSAGE, callback.mFledgeErrorResponse.getErrorMessage()); in testImpl_throttled_throws() 392 assertEquals(STATUS_BACKGROUND_CALLER, callback.mFledgeErrorResponse.getStatusCode()); in testImpl_failedForegroundCheck_throws() 395 callback.mFledgeErrorResponse.getErrorMessage()); in testImpl_failedForegroundCheck_throws() 425 assertEquals(STATUS_CALLER_NOT_ALLOWED, callback.mFledgeErrorResponse.getStatusCode()); in testImpl_failedEnrollmentCheck_throws() 428 callback.mFledgeErrorResponse.getErrorMessage()); in testImpl_failedEnrollmentCheck_throws() 458 assertEquals(STATUS_CALLER_NOT_ALLOWED, callback.mFledgeErrorResponse.getStatusCode()); in testImpl_appCannotUsePPAPI_throws() 461 callback.mFledgeErrorResponse.getErrorMessage()); in testImpl_appCannotUsePPAPI_throws() [all …]
|
D | ScheduleCustomAudienceUpdateTestUtils.java | 165 FledgeErrorResponse mFledgeErrorResponse; field in ScheduleCustomAudienceUpdateTestUtils.ScheduleUpdateTestCallback 185 mFledgeErrorResponse = fledgeErrorResponse; in onFailure()
|
D | ScheduleCustomAudienceUpdateImplTest.java | 213 callback.mFledgeErrorResponse.getErrorMessage()); in testScheduleCustomAudienceUpdate_OverDelay_Failure()
|
D | CustomAudienceServiceEndToEndTest.java | 964 fetchAndJoinCallback1.mFledgeErrorResponse.getStatusCode()); in testFetchAndJoinCustomAudience_FirstJoinsQuarantineTableSecondIsFiltered() 980 fetchAndJoinCallback2.mFledgeErrorResponse.getStatusCode()); in testFetchAndJoinCustomAudience_FirstJoinsQuarantineTableSecondIsFiltered() 1025 fetchAndJoinCallback1.mFledgeErrorResponse.getStatusCode()); in testFetchAndJoinCustomAudience_FirstJoinsQuarantineTableSecondPasses() 3119 FledgeErrorResponse mFledgeErrorResponse; field in CustomAudienceServiceEndToEndTest.CustomAudienceOverrideTestCallback 3134 mFledgeErrorResponse = fledgeErrorResponse; in onFailure()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | ReportEventDisabledImplTest.java | 92 assertThat(callback.mFledgeErrorResponse.getStatusCode()).isEqualTo(STATUS_INTERNAL_ERROR); in testReportEventDisabledImplFailsWhenCalled() 93 assertThat(callback.mFledgeErrorResponse.getErrorMessage()).isEqualTo(API_DISABLED_MESSAGE); in testReportEventDisabledImplFailsWhenCalled() 99 FledgeErrorResponse mFledgeErrorResponse; field in ReportEventDisabledImplTest.ReportEventTestCallback 113 mFledgeErrorResponse = fledgeErrorResponse; in onFailure()
|
D | ReportEventImplTest.java | 851 assertEquals(callback.mFledgeErrorResponse.getStatusCode(), STATUS_UNAUTHORIZED); in testImplFailsWithInvalidPackageName() 853 callback.mFledgeErrorResponse.getErrorMessage(), in testImplFailsWithInvalidPackageName() 919 assertEquals(callback.mFledgeErrorResponse.getStatusCode(), STATUS_BACKGROUND_CALLER); in testImplFailsWhenForegroundCheckFails() 921 callback.mFledgeErrorResponse.getErrorMessage(), in testImplFailsWhenForegroundCheckFails() 1027 callbackSubsequentCall.mFledgeErrorResponse.getStatusCode()); in testImplFailsWhenThrottled() 1029 callbackSubsequentCall.mFledgeErrorResponse.getErrorMessage(), in testImplFailsWhenThrottled() 1093 assertEquals(callback.mFledgeErrorResponse.getStatusCode(), STATUS_CALLER_NOT_ALLOWED); in testImplFailsWhenAppNotInAllowList() 1204 assertEquals(STATUS_INVALID_ARGUMENT, callback.mFledgeErrorResponse.getStatusCode()); in testImplFailsWithUnknownAdSelectionId() 1278 assertEquals(callback.mFledgeErrorResponse.getStatusCode(), STATUS_INVALID_ARGUMENT); in testReportEventImplFailsWithUnknownAdSelectionId_serverAuctionEnabled() 1371 assertEquals(callback.mFledgeErrorResponse.getStatusCode(), STATUS_INVALID_ARGUMENT); in testImplFailsWhenInteractionDataExceedsMaxSize() [all …]
|
D | UpdateAdCounterHistogramWorkerTest.java | 195 assertThat(callback.mFledgeErrorResponse.getStatusCode()).isEqualTo(STATUS_INTERNAL_ERROR); in testWorkerFeatureFlagDisabledStopsAndNotifiesFailure() 266 assertThat(callback.mFledgeErrorResponse.getStatusCode()) in testWorkerInvalidArgumentFailureStopsAndNotifiesFailure() 383 FledgeErrorResponse mFledgeErrorResponse; field in UpdateAdCounterHistogramWorkerTest.UpdateAdCounterHistogramTestCallback 397 mFledgeErrorResponse = fledgeErrorResponse; in onFailure() 413 + mFledgeErrorResponse in toString() 433 mFledgeErrorResponse = fledgeErrorResponse; in onFailure()
|
D | OutcomeSelectionRunnerTest.java | 226 assertEquals(STATUS_INVALID_ARGUMENT, resultsCallback.mFledgeErrorResponse.getStatusCode()); in testRunOutcomeSelectionInvalidAdSelectionConfigFromOutcomes() 356 assertNotNull(resultsCallback.mFledgeErrorResponse); in testRunOutcomeSelectionOrchestrationTimeoutFailure() 357 assertEquals(STATUS_TIMEOUT, resultsCallback.mFledgeErrorResponse.getStatusCode()); in testRunOutcomeSelectionOrchestrationTimeoutFailure() 429 FledgeErrorResponse mFledgeErrorResponse; field in AdSelectionTestCallback 434 mFledgeErrorResponse = null; in AdSelectionTestCallback() 447 mFledgeErrorResponse = fledgeErrorResponse; in onFailure()
|
D | AdSelectionFromOutcomesE2ETest.java | 858 assertThat(resultsCallback.mFledgeErrorResponse).isNotNull(); in testSelectAdsFromOutcomesInvalidAdSelectionConfigFromOutcomes() 859 assertThat(resultsCallback.mFledgeErrorResponse.getStatusCode()) in testSelectAdsFromOutcomesInvalidAdSelectionConfigFromOutcomes() 887 assertThat(resultsCallback.mFledgeErrorResponse).isNotNull(); in testSelectAdsFromOutcomesJsReturnsFaultyAdSelectionIdFailure() 888 assertThat(resultsCallback.mFledgeErrorResponse.getStatusCode()) in testSelectAdsFromOutcomesJsReturnsFaultyAdSelectionIdFailure() 890 assertThat(resultsCallback.mFledgeErrorResponse.getErrorMessage()) in testSelectAdsFromOutcomesJsReturnsFaultyAdSelectionIdFailure() 925 assertThat(resultsCallback.mFledgeErrorResponse).isNotNull(); in testSelectAdsFromOutcomesWaterfallMalformedPrebuiltUriFailed() 926 assertThat(resultsCallback.mFledgeErrorResponse.getStatusCode()) in testSelectAdsFromOutcomesWaterfallMalformedPrebuiltUriFailed() 928 assertThat(resultsCallback.mFledgeErrorResponse.getErrorMessage()) in testSelectAdsFromOutcomesWaterfallMalformedPrebuiltUriFailed() 1054 FledgeErrorResponse mFledgeErrorResponse; field in AdSelectionFromOutcomesE2ETest.AdSelectionFromOutcomesTestCallback 1059 mFledgeErrorResponse = null; in AdSelectionFromOutcomesTestCallback() [all …]
|
D | GetAdSelectionDataRunnerTest.java | 305 "Call failed with response " + callback.mFledgeErrorResponse, callback.mIsSuccess); in testRunner_getAdSelectionData_returnsSuccess() 386 "Call failed with response " + callback.mFledgeErrorResponse, callback.mIsSuccess); in testRunner_getAdSelectionData_returnsSuccessGetAdSelectionDataPayloadMetricsEnabled() 489 "Call failed with response " + callback.mFledgeErrorResponse, callback.mIsSuccess); in testRunner_getAdSelectionData_success_MetricsEnabled_withDefaultSourceCoordinator() 596 "Call failed with response " + callback.mFledgeErrorResponse, callback.mIsSuccess); in testRunner_getAdSelectionData_returnsSuccessMetricsEnabled_withApiSourceCoordinator() 673 Assert.assertEquals(STATUS_INVALID_ARGUMENT, callback.mFledgeErrorResponse.getStatusCode()); in testRunner_getAdSelectionData_multiCloudFlagOn_invalidCoordinator_throwsError() 791 "Call failed with response " + callback.mFledgeErrorResponse, callback.mIsSuccess); in testRunner_getAdSelectionData_returnsSuccessWithExcessiveSizeFormatterVersion() 848 Assert.assertEquals(STATUS_INTERNAL_ERROR, callback.mFledgeErrorResponse.getStatusCode()); in testRunner_getAdSelectionData_returnsInternalErrorWhenEncounteringIOException() 1135 assertNotNull(callback.mFledgeErrorResponse); in testRunner_getAdSelectionData_timeoutFailure() 1136 assertEquals(STATUS_TIMEOUT, callback.mFledgeErrorResponse.getStatusCode()); in testRunner_getAdSelectionData_timeoutFailure() 1310 FledgeErrorResponse mFledgeErrorResponse; field in GetAdSelectionDataRunnerTest.GetAdSelectionDataTestCallback [all …]
|
D | AdSelectionServiceImplTest.java | 2010 assertEquals(STATUS_INVALID_ARGUMENT, callback.mFledgeErrorResponse.getStatusCode()); in testReportImpressionFailsWithInvalidAdSelectionIdUnifiedTablesEnabledAuctionServerEnabled() 2148 assertEquals(STATUS_INVALID_ARGUMENT, callback.mFledgeErrorResponse.getStatusCode()); in testReportImpressionFailsWithInvalidAdSelectionIdUnifiedTablesEnabledAuctionServerDisabled() 2276 assertEquals(STATUS_INVALID_ARGUMENT, callback.mFledgeErrorResponse.getStatusCode()); in testReportImpressionFailsWithIncorrectPackageNameUnifiedTablesEnabledAuctionServerDisabled() 2277 assertEquals(CALLER_PACKAGE_NAME_MISMATCH, callback.mFledgeErrorResponse.getErrorMessage()); in testReportImpressionFailsWithIncorrectPackageNameUnifiedTablesEnabledAuctionServerDisabled() 2398 assertEquals(STATUS_INVALID_ARGUMENT, callback.mFledgeErrorResponse.getStatusCode()); in testReportImpressionFailsWithIncorrectPackageNameUnifiedTablesEnabledAuctionServerEnabled() 2399 assertEquals(CALLER_PACKAGE_NAME_MISMATCH, callback.mFledgeErrorResponse.getErrorMessage()); in testReportImpressionFailsWithIncorrectPackageNameUnifiedTablesEnabledAuctionServerEnabled() 2520 assertEquals(STATUS_INVALID_ARGUMENT, callback.mFledgeErrorResponse.getStatusCode()); in testReportImpressionFailsWhenDataIsInOldTablesUnifiedTablesEnabledAuctionServerDisabled() 2523 callback.mFledgeErrorResponse.getErrorMessage()); in testReportImpressionFailsWhenDataIsInOldTablesUnifiedTablesEnabledAuctionServerDisabled() 2644 assertEquals(STATUS_INVALID_ARGUMENT, callback.mFledgeErrorResponse.getStatusCode()); in testReportImpressionFailsWhenDataIsInOldTablesUnifiedTablesEnabledAuctionServerEnabled() 2647 callback.mFledgeErrorResponse.getErrorMessage()); in testReportImpressionFailsWhenDataIsInOldTablesUnifiedTablesEnabledAuctionServerEnabled() [all …]
|
D | AppInstallAdvertisersSetterTest.java | 162 assertTrue(callback.mFledgeErrorResponse.getErrorMessage().contains(FILTERING_IS_DISABLED)); in testSetAppInstallAdvertisersDisabledFailure() 329 FledgeErrorResponse mFledgeErrorResponse; field in AppInstallAdvertisersSetterTest.SetAppInstallAdvertisersTestCallback 343 mFledgeErrorResponse = fledgeErrorResponse; in onFailure()
|
D | AdSelectionE2ETest.java | 1868 .mFledgeErrorResponse in testRunAdSelectionSuccess_prebuiltFeatureDisabled_failure() 1871 assertEquals(STATUS_INVALID_ARGUMENT, resultsCallback.mFledgeErrorResponse.getStatusCode()); in testRunAdSelectionSuccess_prebuiltFeatureDisabled_failure() 3481 .mFledgeErrorResponse in testRunAdSelectionOnlyContextualAds_unauthenticatedContextualAdsRemoved_Success() 3484 assertEquals(STATUS_INVALID_ARGUMENT, resultsCallback.mFledgeErrorResponse.getStatusCode()); in testRunAdSelectionOnlyContextualAds_unauthenticatedContextualAdsRemoved_Success() 4980 assertEquals(resultsCallback.mFledgeErrorResponse.getStatusCode(), STATUS_INTERNAL_ERROR); in testRunAdSelectionNoCAsActive() 4982 resultsCallback.mFledgeErrorResponse.getErrorMessage(), in testRunAdSelectionNoCAsActive() 5028 resultsCallback.mFledgeErrorResponse.getErrorMessage(), in testRunAdSelectionNoCAsFailure() 5077 resultsCallback.mFledgeErrorResponse.getErrorMessage(), in testRunAdSelectionNoBuyersFailure() 5172 resultsCallback.mFledgeErrorResponse != null in assertCallbackIsSuccessful() 5177 resultsCallback.mFledgeErrorResponse.getStatusCode(), in assertCallbackIsSuccessful() [all …]
|
D | FrequencyCapFilteringE2ETest.java | 491 assertThat(callback.mFledgeErrorResponse.getStatusCode()) in testUpdateHistogramDisabledFeatureFlagNotifiesError() 576 assertThat(callback.mFledgeErrorResponse.getStatusCode()) in testUpdateHistogramExceedingRateLimitNotifiesError() 673 adSelectionCallback.mFledgeErrorResponse) in testUpdatedHistogramFiltersAdsForBuyerWithinInterval() 674 .that(adSelectionCallback.mFledgeErrorResponse.getStatusCode()) in testUpdatedHistogramFiltersAdsForBuyerWithinInterval() 678 adSelectionCallback.mFledgeErrorResponse) in testUpdatedHistogramFiltersAdsForBuyerWithinInterval() 679 .that(adSelectionCallback.mFledgeErrorResponse.getErrorMessage()) in testUpdatedHistogramFiltersAdsForBuyerWithinInterval()
|
D | PersistAdSelectionResultRunnerTest.java | 1337 Assert.assertEquals(STATUS_INVALID_ARGUMENT, callback.mFledgeErrorResponse.getStatusCode()); in testRunner_persistResultWithError_throwsException() 1396 assertNotNull(callback.mFledgeErrorResponse); in testRunner_persistTimesOut_throwsException() 1397 assertEquals(STATUS_TIMEOUT, callback.mFledgeErrorResponse.getStatusCode()); in testRunner_persistTimesOut_throwsException() 1456 assertNotNull(callback.mFledgeErrorResponse); in testRunner_persistResultWithNotEnrolledBuyer_throwsException() 1457 assertEquals(STATUS_INVALID_ARGUMENT, callback.mFledgeErrorResponse.getStatusCode()); in testRunner_persistResultWithNotEnrolledBuyer_throwsException() 1489 Assert.assertEquals(STATUS_INVALID_ARGUMENT, callback.mFledgeErrorResponse.getStatusCode()); in testRunner_persistResultWithWrongSeller_throwsException() 1529 Assert.assertEquals(STATUS_INVALID_ARGUMENT, callback.mFledgeErrorResponse.getStatusCode()); in testRunner_persistResultWithWrongCallerPackage_throwsException() 2031 FledgeErrorResponse mFledgeErrorResponse; field in PersistAdSelectionResultRunnerTest.PersistAdSelectionResultTestCallback 2036 mFledgeErrorResponse = null; in PersistAdSelectionResultTestCallback() 2050 mFledgeErrorResponse = fledgeErrorResponse; in onFailure()
|
D | AuctionServerE2ETest.java | 3681 Assert.assertEquals(STATUS_INVALID_ARGUMENT, callback.mFledgeErrorResponse.getStatusCode()); in testGetAdSelectionData_multiCloudOn_inValidCoordinator_fails() 4313 FledgeErrorResponse mFledgeErrorResponse; field in AuctionServerE2ETest.GetAdSelectionDataTestCallback 4318 mFledgeErrorResponse = null; in GetAdSelectionDataTestCallback() 4332 mFledgeErrorResponse = fledgeErrorResponse; in onFailure() 4342 FledgeErrorResponse mFledgeErrorResponse; field in AuctionServerE2ETest.PersistAdSelectionResultTestCallback 4347 mFledgeErrorResponse = null; in PersistAdSelectionResultTestCallback() 4361 mFledgeErrorResponse = fledgeErrorResponse; in onFailure() 4408 FledgeErrorResponse mFledgeErrorResponse; field in AuctionServerE2ETest.AdSelectionFromOutcomesTestCallback 4413 mFledgeErrorResponse = null; in AdSelectionFromOutcomesTestCallback() 4426 mFledgeErrorResponse = fledgeErrorResponse; in onFailure() [all …]
|
D | ReportAndRegisterEventE2ETest.java | 417 assertThat(callback.mFledgeErrorResponse.getStatusCode()).isEqualTo(STATUS_INTERNAL_ERROR); in testService_reportingDisabled() 418 assertThat(callback.mFledgeErrorResponse.getErrorMessage()).isEqualTo(API_DISABLED_MESSAGE); in testService_reportingDisabled() 1198 FledgeErrorResponse mFledgeErrorResponse; field in ReportAndRegisterEventE2ETest.ReportAndRegisterEventTestCallback 1212 mFledgeErrorResponse = fledgeErrorResponse; in onFailure()
|
D | OnDeviceAdSelectionRunnerTest.java | 1545 resultsCallback.mFledgeErrorResponse.getErrorMessage(), in testRunAdSelectionNoCAs() 1615 resultsCallback.mFledgeErrorResponse.getErrorMessage(), in testRunAdSelectionCallerNotInForeground_fails() 1683 resultsCallback.mFledgeErrorResponse.getErrorMessage(), in testRunAdSelectionCallerNotInForegroundFlagDisabled_doesNotFailValidation() 2033 resultsCallback.mFledgeErrorResponse.getErrorMessage(), in testRunAdSelectionBiddingFailure() 2133 resultsCallback.mFledgeErrorResponse.getErrorMessage(), ERROR_NO_WINNING_AD_FOUND); in testRunAdSelectionScoringFailure() 2239 resultsCallback.mFledgeErrorResponse.getErrorMessage(), ERROR_NO_WINNING_AD_FOUND); in testRunAdSelectionNegativeScoring() 2478 resultsCallback.mFledgeErrorResponse.getErrorMessage(), ERROR_INVALID_JSON); in testRunAdSelectionScoringException() 2540 callback.mFledgeErrorResponse.getErrorMessage(), in testRunAdSelection_withOnDeviceAuctionDisabled_throwsIllegalStateException() 2639 FledgeErrorResponse response = resultsCallback.mFledgeErrorResponse; in testmMockDBAdSeleciton() 2878 FledgeErrorResponse response = resultsCallback.mFledgeErrorResponse; in testRunAdSelectionThrottledFailure() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | FledgeE2ETest.java | 1340 reportImpressionTestCallback.mFledgeErrorResponse.getStatusCode(), in testFledgeFlowFailsWithMismatchedPackageNamesReportImpression() 1343 reportImpressionTestCallback.mFledgeErrorResponse.getErrorMessage(), in testFledgeFlowFailsWithMismatchedPackageNamesReportImpression() 1467 reportInteractionTestCallback.mFledgeErrorResponse.getStatusCode(), in testFledgeFlowFailsWithWrongPackageNameReportInteraction() 1470 reportInteractionTestCallback.mFledgeErrorResponse.getErrorMessage(), in testFledgeFlowFailsWithWrongPackageNameReportInteraction() 4149 .that(resultsCallback.mFledgeErrorResponse) in testSelectAdsWithFilterExceptionFromNullPointerExceptionDoesNotCrash() 4152 .that(resultsCallback.mFledgeErrorResponse.getStatusCode()) in testSelectAdsWithFilterExceptionFromNullPointerExceptionDoesNotCrash() 5440 FledgeErrorResponse mFledgeErrorResponse; field in AdSelectionTestCallback 5445 mFledgeErrorResponse = null; in AdSelectionTestCallback() 5458 mFledgeErrorResponse = fledgeErrorResponse; in onFailure() 5466 FledgeErrorResponse mFledgeErrorResponse; field in AdSelectionOverrideTestCallback [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/kanon/ |
D | KAnonE2ETest.java | 2131 FledgeErrorResponse mFledgeErrorResponse; 2136 mFledgeErrorResponse = null; 2150 mFledgeErrorResponse = fledgeErrorResponse; 2159 FledgeErrorResponse mFledgeErrorResponse; 2164 mFledgeErrorResponse = null; 2178 mFledgeErrorResponse = fledgeErrorResponse;
|