/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/ |
D | CustomAudienceServiceImplTest.java | 208 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_runNormally() 213 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_runNormally() 219 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_runNormally() 225 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_runNormally() 234 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_runNormally() 241 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_runNormally() 247 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_runNormally() 259 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudienceWithRevokedUserConsentSuccess() 264 eq(CustomAudienceFixture.VALID_OWNER), in testJoinCustomAudienceWithRevokedUserConsentSuccess() 270 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudienceWithRevokedUserConsentSuccess() [all …]
|
D | CustomAudienceQuantityCheckerTest.java | 60 () -> mChecker.check(null, CustomAudienceFixture.VALID_OWNER)); in testNullCustomAudience_throwNPE() 79 when(mCustomAudienceDao.getCustomAudienceStats(CustomAudienceFixture.VALID_OWNER)) in testExistOwnerAndOwnerReachMax_success() 82 .setOwner(CustomAudienceFixture.VALID_OWNER) in testExistOwnerAndOwnerReachMax_success() 90 CustomAudienceFixture.VALID_OWNER); in testExistOwnerAndOwnerReachMax_success() 91 verify(mCustomAudienceDao).getCustomAudienceStats(CustomAudienceFixture.VALID_OWNER); in testExistOwnerAndOwnerReachMax_success() 97 when(mCustomAudienceDao.getCustomAudienceStats(CustomAudienceFixture.VALID_OWNER)) in testOwnerExceedMax() 100 .setOwner(CustomAudienceFixture.VALID_OWNER) in testOwnerExceedMax() 114 CustomAudienceFixture.VALID_OWNER)), in testOwnerExceedMax() 118 verify(mCustomAudienceDao).getCustomAudienceStats(CustomAudienceFixture.VALID_OWNER); in testOwnerExceedMax() 124 when(mCustomAudienceDao.getCustomAudienceStats(CustomAudienceFixture.VALID_OWNER)) in testTotalCountExceedMax() [all …]
|
D | CustomAudienceServiceEndToEndTest.java | 25 import static android.adservices.customaudience.CustomAudienceFixture.VALID_OWNER; 416 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_notInBinderThread_fail() 420 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_notInBinderThread_fail() 450 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_callerPackageNameMismatch_fail() 470 CUSTOM_AUDIENCE_PK1_1, CustomAudienceFixture.VALID_OWNER, callback); in testJoinCustomAudience_joinTwice_secondJoinOverrideValues() 475 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_joinTwice_secondJoinOverrideValues() 481 CUSTOM_AUDIENCE_PK1_2, CustomAudienceFixture.VALID_OWNER, callback); in testJoinCustomAudience_joinTwice_secondJoinOverrideValues() 486 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_joinTwice_secondJoinOverrideValues() 515 CUSTOM_AUDIENCE_PK1_1, CustomAudienceFixture.VALID_OWNER, callback); in testJoinCustomAudienceAppInstallDisabled() 520 CustomAudienceFixture.VALID_OWNER, CommonFixture.VALID_BUYER_1, VALID_NAME); in testJoinCustomAudienceAppInstallDisabled() [all …]
|
D | CustomAudienceImplTest.java | 122 VALID_CUSTOM_AUDIENCE, CustomAudienceFixture.VALID_OWNER, DEV_OPTIONS_DISABLED); in testJoinCustomAudience_runNormally() 132 .check(VALID_CUSTOM_AUDIENCE, CustomAudienceFixture.VALID_OWNER); in testJoinCustomAudience_runNormally() 143 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_withDevOptionsEnabled() 154 .check(VALID_CUSTOM_AUDIENCE, CustomAudienceFixture.VALID_OWNER); in testJoinCustomAudience_withDevOptionsEnabled() 181 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudienceWithServerAuctionFlags_runNormallyFlagEnabled() 194 CustomAudienceFixture.VALID_OWNER); in testJoinCustomAudienceWithServerAuctionFlags_runNormallyFlagEnabled() 221 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudienceWithServerAuctionFlags_runNormallyFlagDisabled() 234 CustomAudienceFixture.VALID_OWNER); in testJoinCustomAudienceWithServerAuctionFlags_runNormallyFlagDisabled() 246 .setOwner(CustomAudienceFixture.VALID_OWNER) in testJoinCustomAudienceWithSubdomains_runNormally() 253 .getCustomAudienceStats(eq(CustomAudienceFixture.VALID_OWNER)); in testJoinCustomAudienceWithSubdomains_runNormally() [all …]
|
D | CustomAudienceBlobTest.java | 26 import static android.adservices.customaudience.CustomAudienceFixture.VALID_OWNER; 75 VALID_OWNER) 82 VALID_OWNER, 94 VALID_OWNER, 123 assertEquals(mCustomAudienceBlob.getOwner(), VALID_OWNER); in testOverrideFromFetchAndJoinCustomAudienceInput_validValues() local 145 VALID_OWNER, in testOverrideFromPartialCustomAudience_validValues() 149 assertEquals(mCustomAudienceBlob.getOwner(), VALID_OWNER); in testOverrideFromPartialCustomAudience_validValues() local 167 assertEquals(mCustomAudienceBlob.getOwner(), VALID_OWNER); in testOverrideFromJSONObject_validValues() local 203 VALID_OWNER, in testOverrideFromJSONObject_validValuesWithAuctionServerRequestFlagsEnabled() 221 assertEquals(blob.getOwner(), VALID_OWNER); in testOverrideFromJSONObject_validValuesWithAuctionServerRequestFlagsEnabled() local [all …]
|
D | FetchCustomAudienceImplTest.java | 44 import static android.adservices.customaudience.CustomAudienceFixture.VALID_OWNER; 217 new FetchAndJoinCustomAudienceInput.Builder(mFetchUri, VALID_OWNER) in setup() 234 VALID_OWNER, in setup() 246 VALID_OWNER, in setup() 258 .setOwner(VALID_OWNER) in setup() 265 .getCustomAudienceStats(eq(VALID_OWNER)); in setup() 269 .doesCustomAudienceQuarantineExist(VALID_OWNER, BUYER); in setup() 310 String otherPackageName = VALID_OWNER + "incorrectPackage"; in testImpl_invalidPackageName_throws() 348 VALID_OWNER, in testImpl_throttled_throws() 380 VALID_OWNER, in testImpl_failedForegroundCheck_throws() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/customaudience/ |
D | ScheduleCustomAudienceUpdateInputTest.java | 47 CustomAudienceFixture.VALID_OWNER, in testBuildValidRequest_All_Success() 56 .isEqualTo(CustomAudienceFixture.VALID_OWNER); in testBuildValidRequest_All_Success() 71 CustomAudienceFixture.VALID_OWNER, in testBuildValidRequest_AllSetters_Success() 83 .isEqualTo(CustomAudienceFixture.VALID_OWNER); in testBuildValidRequest_AllSetters_Success() 94 CustomAudienceFixture.VALID_OWNER, in testBuildValidRequestParcel_Success() 115 CustomAudienceFixture.VALID_OWNER, in testBuild_NullUpdateUri_Throws() 141 CustomAudienceFixture.VALID_OWNER, in testBuild_NullDelay_Throws() 154 CustomAudienceFixture.VALID_OWNER, in testBuild_NullPartialCa_Throws() 166 CustomAudienceFixture.VALID_OWNER, in testEquals_Same() 174 CustomAudienceFixture.VALID_OWNER, in testEquals_Same() [all …]
|
D | FetchAndJoinCustomAudienceInputTest.java | 41 VALID_FETCH_URI_1, CustomAudienceFixture.VALID_OWNER) in testBuildValidRequest_all_success() 63 .isEqualTo(CustomAudienceFixture.VALID_OWNER); in testBuildValidRequest_all_success() 70 VALID_FETCH_URI_1, CustomAudienceFixture.VALID_OWNER) in testBuildValidRequest_onlyFetchUriAndCallerPackageName_success() 76 .isEqualTo(CustomAudienceFixture.VALID_OWNER); in testBuildValidRequest_onlyFetchUriAndCallerPackageName_success() 83 VALID_FETCH_URI_1, CustomAudienceFixture.VALID_OWNER) in testBuildValidRequest_withName_success() 93 .isEqualTo(CustomAudienceFixture.VALID_OWNER); in testBuildValidRequest_withName_success() 100 VALID_FETCH_URI_1, CustomAudienceFixture.VALID_OWNER) in testBuildValidRequest_withActivationTime_success() 110 .isEqualTo(CustomAudienceFixture.VALID_OWNER); in testBuildValidRequest_withActivationTime_success() 117 VALID_FETCH_URI_1, CustomAudienceFixture.VALID_OWNER) in testBuildValidRequest_withExpirationTime_success() 127 .isEqualTo(CustomAudienceFixture.VALID_OWNER); in testBuildValidRequest_withExpirationTime_success() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/customaudience/ |
D | CustomAudienceOverrideTest.java | 45 .setOwner(CustomAudienceFixture.VALID_OWNER) in testBuildDBAdSelectionOverride() 54 assertEquals(dbCustomAudienceOverride.getOwner(), CustomAudienceFixture.VALID_OWNER); in testBuildDBAdSelectionOverride() 85 .setOwner(CustomAudienceFixture.VALID_OWNER) in testThrowsExceptionWithNoBuyer() 101 .setOwner(CustomAudienceFixture.VALID_OWNER) in testThrowsExceptionWithNoName() 117 .setOwner(CustomAudienceFixture.VALID_OWNER) in testThrowsExceptionWithNoAppPackageName() 133 .setOwner(CustomAudienceFixture.VALID_OWNER) in testThrowsExceptionWithNoBiddingLogicJS() 149 .setOwner(CustomAudienceFixture.VALID_OWNER) in testThrowsExceptionWithNoTrustedBiddingData() 163 .setOwner(CustomAudienceFixture.VALID_OWNER) in testNoBiddingLogicJsVersion() 171 assertEquals(dbCustomAudienceOverride.getOwner(), CustomAudienceFixture.VALID_OWNER); in testNoBiddingLogicJsVersion()
|
D | DBCustomAudienceTest.java | 69 CustomAudienceFixture.VALID_OWNER, in testFromServiceObject_success() 85 CustomAudienceFixture.VALID_OWNER, in testFromServiceObject_successNoFilters() 116 CustomAudienceFixture.VALID_OWNER, in testFromServiceObject_successNoRenderId() 148 CustomAudienceFixture.VALID_OWNER, in testFromServiceObject_successWIthRenderId() 167 CustomAudienceFixture.VALID_OWNER, in testFromServiceObject_successWithServerAuctionFlagsEnabled() 185 CustomAudienceFixture.VALID_OWNER, in testFromServiceObject_withServerAuctionFlags_serverAuctionFlagsDisabled_success() 200 CustomAudienceFixture.VALID_OWNER, in testFromServiceObject_nullCustomAudience() 234 CustomAudienceFixture.VALID_OWNER, in testFromServiceObject_nullCurrentTime() 251 CustomAudienceFixture.VALID_OWNER, in testFromServiceObject_nullDefaultExpireIn() 268 CustomAudienceFixture.VALID_OWNER, in testFromServiceObject_nullConversionStrategy() [all …]
|
D | DBCustomAudienceQuarantineTest.java | 42 .setOwner(CustomAudienceFixture.VALID_OWNER) in testBuildDBFetchCustomAudienceQuarantineSucceeds() 47 assertEquals(CustomAudienceFixture.VALID_OWNER, dbCustomAudienceQuarantine.getOwner()); in testBuildDBFetchCustomAudienceQuarantineSucceeds() 57 CustomAudienceFixture.VALID_OWNER, in testCreateDBFetchCustomAudienceQuarantineSucceeds() 61 assertEquals(CustomAudienceFixture.VALID_OWNER, dbCustomAudienceQuarantine.getOwner()); in testCreateDBFetchCustomAudienceQuarantineSucceeds() 84 .setOwner(CustomAudienceFixture.VALID_OWNER) in testBuildDBFetchCustomAudienceQuarantineThrowsExceptionWithNullBuyer() 96 .setOwner(CustomAudienceFixture.VALID_OWNER) in testBuildDBFetchCustomAudienceQuarantineThrowsExceptionWithNullQuarantineExpiration()
|
D | DBCustomAudienceBackgroundFetchDataTest.java | 58 assertEquals(CustomAudienceFixture.VALID_OWNER, fetchData.getOwner()); in testBuildFetchDataSuccess() 73 .setOwner(CustomAudienceFixture.VALID_OWNER) in testBuildFetchDataDefaultFailuresSuccess() 82 assertEquals(CustomAudienceFixture.VALID_OWNER, fetchData.getOwner()); in testBuildFetchDataDefaultFailuresSuccess() 115 CustomAudienceFixture.VALID_OWNER, in testCreateFetchDataSuccess() 125 assertEquals(CustomAudienceFixture.VALID_OWNER, fetchData.getOwner()); in testCreateFetchDataSuccess() 141 CustomAudienceFixture.VALID_OWNER, in testCreateDebuggableFetchDataSuccess() 151 assertEquals(CustomAudienceFixture.VALID_OWNER, fetchData.getOwner()); in testCreateDebuggableFetchDataSuccess()
|
D | CustomAudienceStatsTest.java | 59 .setOwner(CustomAudienceFixture.VALID_OWNER) in testBuildWithValues() 69 assertThat(stats.getOwner()).isEqualTo(CustomAudienceFixture.VALID_OWNER); in testBuildWithValues()
|
D | CustomAudienceDatabaseMigrationTest.java | 65 contentValuesV2.put("owner", CustomAudienceFixture.VALID_OWNER); in testMigration2To3() 82 contentValuesV3.put("owner", CustomAudienceFixture.VALID_OWNER); in testMigration2To3()
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/customaudience/ |
D | FetchCustomAudienceFixture.java | 40 CustomAudienceFixture.VALID_OWNER, in getFullSuccessfulJsonResponseString() 58 CustomAudienceFixture.VALID_OWNER, in getFullSuccessfulJsonResponseStringWithAdRenderId() 77 CustomAudienceFixture.VALID_OWNER, in getFullJsonResponseStringWithInvalidAdRenderId() 94 CustomAudienceFixture.VALID_OWNER, in getFullSuccessfulJsonResponse() 117 .setOwner(CustomAudienceFixture.VALID_OWNER) in getFullSuccessfulDBCustomAudience() 142 .setOwner(CustomAudienceFixture.VALID_OWNER) in getFullSuccessfulDBCustomAudienceWithAdRenderId() 168 .setOwner(CustomAudienceFixture.VALID_OWNER) in getFullSuccessfulDBCustomAudienceWithAuctionServerRequestFlags()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | AuctionServerCustomAudienceFiltererTest.java | 20 import static android.adservices.customaudience.CustomAudienceFixture.VALID_OWNER; 56 .setOwner(VALID_OWNER) in test_isValidCustomAudience_nullBiddingData_returnsFalse() 77 .setOwner(VALID_OWNER) in test_isValidCustomAudience_emptyBiddingKeyList_returnsFalse() 99 .setOwner(VALID_OWNER) in test_isValidCustomAudience_nullBiddingKeys_returnsFalse() 124 .setOwner(VALID_OWNER) in test_isValidCustomAudience_emptyBiddingKeys_returnsFalse() 149 .setOwner(VALID_OWNER) in test_isValidCustomAudience_noAds_returnsFalse() 175 .setOwner(VALID_OWNER) in test_isValidCustomAudience_emptyAdRenderId_returnsFalse() 210 .setOwner(VALID_OWNER) in test_isValidCustomAudience_nullAdRenderId_returnsFalse() 271 .setOwner(VALID_OWNER) in test_isValidCustomAudience_atLeastOneNonNullNonEmptyKeyAndAdRenderId_returnsTrue()
|
D | CustomAudienceBiddingInfoTest.java | 46 .setOwner(CustomAudienceFixture.VALID_OWNER) 55 .setOwner(CustomAudienceFixture.VALID_OWNER)
|
D | JsFetcherTest.java | 94 private static final String OWNER = CustomAudienceFixture.VALID_OWNER; 256 CustomAudienceFixture.VALID_OWNER, in testSuccessfulGetBuyerLogicWithOverrideWithLogger() 276 CustomAudienceFixture.VALID_OWNER, in testSuccessfulGetBuyerLogicWithoutOverride() 311 CustomAudienceFixture.VALID_OWNER, in testSuccessfulGetBuyerLogicWithoutOverrideAndLogger()
|
D | AdSelectionScriptEngineTest.java | 156 CustomAudienceFixture.VALID_OWNER, 164 CustomAudienceFixture.VALID_OWNER, 642 CustomAudienceFixture.VALID_OWNER, in testGenerateBidV3SuccessfulCase() 703 CustomAudienceFixture.VALID_OWNER, in testGenerateBidV3WithCopierSuccessfulCase() 748 CustomAudienceFixture.VALID_OWNER, in testGenerateBidV3WithCopierWithAdCounterKeysSuccessfulCase() 1082 CustomAudienceFixture.VALID_OWNER, in testGenerateBidV3ReturnDebugReportingNoUrl() 1147 CustomAudienceFixture.VALID_OWNER, in testGenerateBidV3ReturnDebugReportingNoUrl_WhenDisabled() 1210 CustomAudienceFixture.VALID_OWNER, in testGenerateBidV3ReturnDebugReportingNoBadUrl()
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/customaudience/ |
D | DBCustomAudienceFixture.java | 38 .setOwner(CustomAudienceFixture.VALID_OWNER) in getValidBuilderByBuyer() 55 .setOwner(CustomAudienceFixture.VALID_OWNER) in getValidBuilderByBuyer() 71 return getValidBuilderByBuyerWithAdRenderId(buyer, name, CustomAudienceFixture.VALID_OWNER); in getValidBuilderByBuyerWithAdRenderId() 93 .setOwner(CustomAudienceFixture.VALID_OWNER) in getValidBuilderByBuyerNoFilters() 124 return getValidBuilderByBuyerWithAdRenderId(buyer, name, CustomAudienceFixture.VALID_OWNER) in getValidBuilderByBuyerWithOmitAdsEnabled()
|
D | DBCustomAudienceBackgroundFetchDataFixture.java | 33 .setOwner(CustomAudienceFixture.VALID_OWNER) in getValidBuilderByBuyer()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | FledgeAuthorizationFilterTest.java | 193 eq(CustomAudienceFixture.VALID_OWNER), eq(PackageManager.GET_PERMISSIONS)); in testAssertAppHasCaPermission_appHasPermission() 203 CustomAudienceFixture.VALID_OWNER, in testAssertAppHasCaPermission_appHasPermission() 218 eq(CustomAudienceFixture.VALID_OWNER), eq(PackageManager.GET_PERMISSIONS)); in testAssertAppHasPasPermission_appHasPermission() 228 CustomAudienceFixture.VALID_OWNER, in testAssertAppHasPasPermission_appHasPermission() 242 eq(CustomAudienceFixture.VALID_OWNER), eq(PackageManager.GET_PERMISSIONS)); in testAssertAppHasAnyPermission_appHasAllPermissions() 258 CustomAudienceFixture.VALID_OWNER, in testAssertAppHasAnyPermission_appHasAllPermissions() 276 eq(CustomAudienceFixture.VALID_OWNER), eq(PackageManager.GET_PERMISSIONS)); in testAssertAppHasAnyPermission_appHasOnePermission() 292 CustomAudienceFixture.VALID_OWNER, in testAssertAppHasAnyPermission_appHasOnePermission() 310 eq(CustomAudienceFixture.VALID_OWNER), eq(PackageManager.GET_PERMISSIONS)); in testAssertAppHasAnyPermission_appHasTwoPermissions() 326 CustomAudienceFixture.VALID_OWNER, in testAssertAppHasAnyPermission_appHasTwoPermissions() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/shell/customaudience/ |
D | CustomAudienceHelperTest.java | 56 .put(CustomAudienceHelper.OWNER, CustomAudienceFixture.VALID_OWNER) in testCustomAudienceFromJson_happyPath() 86 assertThat(customAudience.getOwner()).isEqualTo(CustomAudienceFixture.VALID_OWNER); in testCustomAudienceFromJson_happyPath() 110 .put(CustomAudienceHelper.OWNER, CustomAudienceFixture.VALID_OWNER) in testCustomAudienceBackgroundFetchDataFromJson_happyPath() 140 .isEqualTo(CustomAudienceFixture.VALID_OWNER); in testCustomAudienceBackgroundFetchDataFromJson_happyPath() 163 .put(CustomAudienceHelper.OWNER, CustomAudienceFixture.VALID_OWNER) in testGetBackgroundFetchDataFromJson_withoutDailyUpdate_throwsIllegalStateException()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/ |
D | CustomAudienceSignalsTest.java | 42 assertEquals(CustomAudienceFixture.VALID_OWNER, customAudienceSignals.getOwner()); in testBuildCustomAudienceSignals() 63 assertEquals(CustomAudienceFixture.VALID_OWNER, customAudienceSignals.getOwner()); in testBuildFromCustomAudience()
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/adselection/ |
D | CustomAudienceSignalsFixture.java | 33 .setOwner(CustomAudienceFixture.VALID_OWNER) in aCustomAudienceSignalsBuilder()
|