/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/customaudience/ |
D | FetchAndJoinCustomAudienceInputTest.java | 35 CustomAudienceFixture.getValidFetchUriByBuyer(CommonFixture.VALID_BUYER_1, "1"); 41 VALID_FETCH_URI_1, CustomAudienceFixture.VALID_OWNER) in testBuildValidRequest_all_success() 42 .setName(CustomAudienceFixture.VALID_NAME) in testBuildValidRequest_all_success() 43 .setActivationTime(CustomAudienceFixture.VALID_ACTIVATION_TIME) in testBuildValidRequest_all_success() 44 .setExpirationTime(CustomAudienceFixture.VALID_EXPIRATION_TIME) in testBuildValidRequest_all_success() 45 .setUserBiddingSignals(CustomAudienceFixture.VALID_USER_BIDDING_SIGNALS) in testBuildValidRequest_all_success() 51 .isEqualTo(CustomAudienceFixture.VALID_NAME); in testBuildValidRequest_all_success() 54 .isEqualTo(CustomAudienceFixture.VALID_ACTIVATION_TIME); in testBuildValidRequest_all_success() 57 .isEqualTo(CustomAudienceFixture.VALID_EXPIRATION_TIME); in testBuildValidRequest_all_success() 60 .isEqualTo(CustomAudienceFixture.VALID_USER_BIDDING_SIGNALS); in testBuildValidRequest_all_success() [all …]
|
D | ScheduleCustomAudienceUpdateInputTest.java | 36 CustomAudienceFixture.getValidFetchUriByBuyer(CommonFixture.VALID_BUYER_1, "1"); 47 CustomAudienceFixture.VALID_OWNER, in testBuildValidRequest_All_Success() 56 .isEqualTo(CustomAudienceFixture.VALID_OWNER); in testBuildValidRequest_All_Success() 64 Uri uri2 = CustomAudienceFixture.getValidFetchUriByBuyer(CommonFixture.VALID_BUYER_2, "2"); in testBuildValidRequest_AllSetters_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() [all …]
|
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/ |
D | FetchAndJoinCustomAudienceRequestTest.java | 24 import android.adservices.customaudience.CustomAudienceFixture; 38 CustomAudienceFixture.getValidFetchUriByBuyer(CommonFixture.VALID_BUYER_1, "1"); 47 .setName(CustomAudienceFixture.VALID_NAME) in testBuildValidRequest_all_success() 48 .setActivationTime(CustomAudienceFixture.VALID_ACTIVATION_TIME) in testBuildValidRequest_all_success() 49 .setExpirationTime(CustomAudienceFixture.VALID_EXPIRATION_TIME) in testBuildValidRequest_all_success() 50 .setUserBiddingSignals(CustomAudienceFixture.VALID_USER_BIDDING_SIGNALS) in testBuildValidRequest_all_success() 54 assertThat(request.getName()).isEqualTo(CustomAudienceFixture.VALID_NAME); in testBuildValidRequest_all_success() 56 .isEqualTo(CustomAudienceFixture.VALID_ACTIVATION_TIME); in testBuildValidRequest_all_success() 58 .isEqualTo(CustomAudienceFixture.VALID_EXPIRATION_TIME); in testBuildValidRequest_all_success() 60 .isEqualTo(CustomAudienceFixture.VALID_USER_BIDDING_SIGNALS); in testBuildValidRequest_all_success() [all …]
|
D | CustomAudienceTest.java | 32 import android.adservices.customaudience.CustomAudienceFixture; 79 CustomAudienceFixture.getValidBuilderForBuyer(CommonFixture.VALID_BUYER_1).build(); in testBuildValidCustomAudienceSuccess() 82 assertEquals(CustomAudienceFixture.VALID_NAME, validCustomAudience.getName()); in testBuildValidCustomAudienceSuccess() 84 CustomAudienceFixture.VALID_ACTIVATION_TIME, in testBuildValidCustomAudienceSuccess() 87 CustomAudienceFixture.VALID_EXPIRATION_TIME, in testBuildValidCustomAudienceSuccess() 90 CustomAudienceFixture.getValidDailyUpdateUriByBuyer(CommonFixture.VALID_BUYER_1), in testBuildValidCustomAudienceSuccess() 93 CustomAudienceFixture.VALID_USER_BIDDING_SIGNALS, in testBuildValidCustomAudienceSuccess() 100 CustomAudienceFixture.getValidBiddingLogicUriByBuyer(CommonFixture.VALID_BUYER_1), in testBuildValidCustomAudienceSuccess() 110 CustomAudienceFixture.getValidBuilderForBuyer(CommonFixture.VALID_BUYER_1) in testBuildValidCustomAudienceSuccessWithPriority() 115 assertEquals(CustomAudienceFixture.VALID_NAME, validCustomAudience.getName()); in testBuildValidCustomAudienceSuccessWithPriority() [all …]
|
D | CustomAudienceApiCtsTest.java | 22 import static android.adservices.customaudience.CustomAudienceFixture.INVALID_BEYOND_MAX_EXPIRATION… 23 import static android.adservices.customaudience.CustomAudienceFixture.INVALID_DELAYED_ACTIVATION_TI… 24 import static android.adservices.customaudience.CustomAudienceFixture.VALID_ACTIVATION_TIME; 25 import static android.adservices.customaudience.CustomAudienceFixture.VALID_EXPIRATION_TIME; 26 import static android.adservices.customaudience.CustomAudienceFixture.VALID_NAME; 27 import static android.adservices.customaudience.CustomAudienceFixture.VALID_USER_BIDDING_SIGNALS; 28 import static android.adservices.customaudience.CustomAudienceFixture.getValidFetchUriByBuyer; 58 import android.adservices.customaudience.CustomAudienceFixture; 155 joinCustomAudience(CustomAudienceFixture.getValidBuilderForBuyer(VALID_BUYER_1).build()); in testJoinCustomAudience_validCustomAudience_success() 162 CustomAudienceFixture.getValidBuilderByBuyerWithAuctionServerRequestFlags( in testJoinCustomAudience_validCustomAudience_successWithAuctionServerRequestFlags() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/customaudience/ |
D | FetchCustomAudienceFixture.java | 24 import android.adservices.customaudience.CustomAudienceFixture; 40 CustomAudienceFixture.VALID_OWNER, in getFullSuccessfulJsonResponseString() 42 CustomAudienceFixture.VALID_NAME, in getFullSuccessfulJsonResponseString() 43 CustomAudienceFixture.VALID_ACTIVATION_TIME, in getFullSuccessfulJsonResponseString() 44 CustomAudienceFixture.VALID_EXPIRATION_TIME, in getFullSuccessfulJsonResponseString() 45 CustomAudienceFixture.getValidDailyUpdateUriByBuyer(buyer), in getFullSuccessfulJsonResponseString() 46 CustomAudienceFixture.getValidBiddingLogicUriByBuyer(buyer), in getFullSuccessfulJsonResponseString() 47 CustomAudienceFixture.VALID_USER_BIDDING_SIGNALS.toString(), in getFullSuccessfulJsonResponseString() 58 CustomAudienceFixture.VALID_OWNER, in getFullSuccessfulJsonResponseStringWithAdRenderId() 60 CustomAudienceFixture.VALID_NAME, in getFullSuccessfulJsonResponseStringWithAdRenderId() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/ |
D | CustomAudienceServiceImplTest.java | 62 import android.adservices.customaudience.CustomAudienceFixture; 115 CustomAudienceFixture.getValidBuilderForBuyer(CommonFixture.VALID_BUYER_1).build(); 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() [all …]
|
D | CustomAudienceTimestampValidatorTest.java | 22 import android.adservices.customaudience.CustomAudienceFixture; 48 CustomAudienceFixture.getValidBuilderForBuyer( in testAllValidTimes() 59 CustomAudienceFixture.getValidBuilderForBuyer(CommonFixture.VALID_BUYER_1) in testActivationTimeBeyondMaxAndExpireBeforeActivation() 61 CustomAudienceFixture.INVALID_DELAYED_ACTIVATION_TIME) in testActivationTimeBeyondMaxAndExpireBeforeActivation() 65 CustomAudienceFixture.CUSTOM_AUDIENCE_MAX_ACTIVATION_DELAY_IN, in testActivationTimeBeyondMaxAndExpireBeforeActivation() 67 CustomAudienceFixture.INVALID_DELAYED_ACTIVATION_TIME), in testActivationTimeBeyondMaxAndExpireBeforeActivation() 70 CustomAudienceFixture.INVALID_DELAYED_ACTIVATION_TIME, in testActivationTimeBeyondMaxAndExpireBeforeActivation() 71 CustomAudienceFixture.VALID_EXPIRATION_TIME)); in testActivationTimeBeyondMaxAndExpireBeforeActivation() 78 CustomAudienceFixture.getValidBuilderForBuyer(CommonFixture.VALID_BUYER_1) in testExpirationTimeBeforeNow() 80 CustomAudienceFixture.INVALID_BEFORE_NOW_EXPIRATION_TIME) in testExpirationTimeBeforeNow() [all …]
|
D | CustomAudienceQuantityCheckerTest.java | 23 import android.adservices.customaudience.CustomAudienceFixture; 60 () -> mChecker.check(null, CustomAudienceFixture.VALID_OWNER)); in testNullCustomAudience_throwNPE() 70 CustomAudienceFixture.getValidBuilderForBuyer( in testNullCallerPackageName_throwNPE() 79 when(mCustomAudienceDao.getCustomAudienceStats(CustomAudienceFixture.VALID_OWNER)) in testExistOwnerAndOwnerReachMax_success() 82 .setOwner(CustomAudienceFixture.VALID_OWNER) in testExistOwnerAndOwnerReachMax_success() 89 CustomAudienceFixture.getValidBuilderForBuyer(CommonFixture.VALID_BUYER_1).build(), 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() [all …]
|
D | CustomAudienceImplTest.java | 30 import android.adservices.customaudience.CustomAudienceFixture; 59 CustomAudienceFixture.getValidBuilderForBuyerFilters(CommonFixture.VALID_BUYER_1) 63 CustomAudienceFixture.getValidBuilderByBuyerWithAuctionServerRequestFlags( 122 VALID_CUSTOM_AUDIENCE, CustomAudienceFixture.VALID_OWNER, DEV_OPTIONS_DISABLED); in testJoinCustomAudience_runNormally() 127 CustomAudienceFixture.getValidDailyUpdateUriByBuyer( in testJoinCustomAudience_runNormally() 132 .check(VALID_CUSTOM_AUDIENCE, CustomAudienceFixture.VALID_OWNER); in testJoinCustomAudience_runNormally() 143 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_withDevOptionsEnabled() 149 CustomAudienceFixture.getValidDailyUpdateUriByBuyer( in testJoinCustomAudience_withDevOptionsEnabled() 154 .check(VALID_CUSTOM_AUDIENCE, CustomAudienceFixture.VALID_OWNER); in testJoinCustomAudience_withDevOptionsEnabled() 181 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudienceWithServerAuctionFlags_runNormallyFlagEnabled() [all …]
|
D | CustomAudienceValidatorTest.java | 26 import android.adservices.customaudience.CustomAudienceFixture; 67 CustomAudienceFixture.getValidBuilderForBuyer( in testValidCustomAudience() 78 CustomAudienceFixture.getValidBuilderForBuyer( in testValidCustomAudienceWithNullFields() 94 CustomAudienceFixture.getValidBuilderForBuyer(buyerWithPath).build()), in testInvalidBuyer() 166 CustomAudienceFixture.getValidBuilderForBuyer(CommonFixture.VALID_BUYER_1) in testInvalidDailyUpdateUriAndBiddingLogicUri() 168 CustomAudienceFixture.getValidDailyUpdateUriByBuyer( in testInvalidDailyUpdateUriAndBiddingLogicUri() 171 CustomAudienceFixture.getValidBiddingLogicUriByBuyer( in testInvalidDailyUpdateUriAndBiddingLogicUri() 194 CustomAudienceFixture.getValidBuilderForBuyer(CommonFixture.VALID_BUYER_1) in testInvalidTrustedBiddingData() 212 CustomAudienceFixture.getValidBuilderForBuyer(CommonFixture.VALID_BUYER_1) in testInvalidUserBiddingSignals() 227 CustomAudienceFixture.getValidBuilderForBuyer(CommonFixture.VALID_BUYER_1) in testActivationTimeBeyondMaxAndExpireBeforeActivation() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/customaudience/ |
D | DBCustomAudienceFixture.java | 23 import android.adservices.customaudience.CustomAudienceFixture; 38 .setOwner(CustomAudienceFixture.VALID_OWNER) in getValidBuilderByBuyer() 40 .setName(CustomAudienceFixture.VALID_NAME) in getValidBuilderByBuyer() 41 .setActivationTime(CustomAudienceFixture.VALID_ACTIVATION_TIME) in getValidBuilderByBuyer() 42 .setExpirationTime(CustomAudienceFixture.VALID_EXPIRATION_TIME) in getValidBuilderByBuyer() 45 .setUserBiddingSignals(CustomAudienceFixture.VALID_USER_BIDDING_SIGNALS) in getValidBuilderByBuyer() 48 .setBiddingLogicUri(CustomAudienceFixture.getValidBiddingLogicUriByBuyer(buyer)) in getValidBuilderByBuyer() 55 .setOwner(CustomAudienceFixture.VALID_OWNER) in getValidBuilderByBuyer() 58 .setActivationTime(CustomAudienceFixture.VALID_ACTIVATION_TIME) in getValidBuilderByBuyer() 59 .setExpirationTime(CustomAudienceFixture.VALID_EXPIRATION_TIME) in getValidBuilderByBuyer() [all …]
|
/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; 29 import android.adservices.customaudience.CustomAudienceFixture; 58 .setName(CustomAudienceFixture.VALID_NAME) in test_isValidCustomAudience_nullBiddingData_returnsFalse() 59 .setActivationTime(CustomAudienceFixture.VALID_ACTIVATION_TIME) in test_isValidCustomAudience_nullBiddingData_returnsFalse() 60 .setExpirationTime(CustomAudienceFixture.VALID_EXPIRATION_TIME) in test_isValidCustomAudience_nullBiddingData_returnsFalse() 79 .setName(CustomAudienceFixture.VALID_NAME) in test_isValidCustomAudience_emptyBiddingKeyList_returnsFalse() 80 .setActivationTime(CustomAudienceFixture.VALID_ACTIVATION_TIME) in test_isValidCustomAudience_emptyBiddingKeyList_returnsFalse() 81 .setExpirationTime(CustomAudienceFixture.VALID_EXPIRATION_TIME) in test_isValidCustomAudience_emptyBiddingKeyList_returnsFalse() 101 .setName(CustomAudienceFixture.VALID_NAME) in test_isValidCustomAudience_nullBiddingKeys_returnsFalse() 102 .setActivationTime(CustomAudienceFixture.VALID_ACTIVATION_TIME) in test_isValidCustomAudience_nullBiddingKeys_returnsFalse() [all …]
|
D | CustomAudienceBiddingInfoTest.java | 25 import android.adservices.customaudience.CustomAudienceFixture; 46 .setOwner(CustomAudienceFixture.VALID_OWNER) 51 .setUserBiddingSignals(CustomAudienceFixture.VALID_USER_BIDDING_SIGNALS) 55 .setOwner(CustomAudienceFixture.VALID_OWNER) 71 CustomAudienceFixture.getValidBiddingLogicUriByBuyer( in testCustomAudienceBiddingInfo() 78 CustomAudienceFixture.getValidBiddingLogicUriByBuyer(CommonFixture.VALID_BUYER_1)); in testCustomAudienceBiddingInfo() 90 CustomAudienceFixture.getValidBiddingLogicUriByBuyer(CommonFixture.VALID_BUYER_1)); in testCustomAudienceBiddingInfoFromCA() 101 CustomAudienceFixture.getValidBiddingLogicUriByBuyer( in testCustomAudienceBiddingInfoBuilder() 108 CustomAudienceFixture.getValidBiddingLogicUriByBuyer(CommonFixture.VALID_BUYER_1)); in testCustomAudienceBiddingInfoBuilder() 119 CustomAudienceFixture.getValidBiddingLogicUriByBuyer( in testCustomAudienceBiddingInfoBuilderWithContextualSignals() [all …]
|
D | HistogramEventTest.java | 26 import android.adservices.customaudience.CustomAudienceFixture; 47 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildValidHistogramEvent_success() 56 assertThat(event.getCustomAudienceName()).isEqualTo(CustomAudienceFixture.VALID_NAME); in testBuildValidHistogramEvent_success() 70 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildUnsetAdCounterKey_throws() 85 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildUnsetBuyer_throws() 100 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildUnsetCustomAudienceOwnerWithWinType_throws() 113 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildUnsetCustomAudienceOwnerWithNonWinType_success() 122 assertThat(event.getCustomAudienceName()).isEqualTo(CustomAudienceFixture.VALID_NAME); in testBuildUnsetCustomAudienceOwnerWithNonWinType_success() 173 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildUnsetAdEventType_throws() 188 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildUnsetTimestamp_throws() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/customaudience/ |
D | DBCustomAudienceTest.java | 27 import android.adservices.customaudience.CustomAudienceFixture; 66 CustomAudienceFixture.getValidBuilderForBuyerFilters( in testFromServiceObject_success() 69 CustomAudienceFixture.VALID_OWNER, in testFromServiceObject_success() 83 CustomAudienceFixture.getValidBuilderForBuyer(CommonFixture.VALID_BUYER_1) in testFromServiceObject_successNoFilters() 85 CustomAudienceFixture.VALID_OWNER, in testFromServiceObject_successNoFilters() 106 CustomAudienceFixture.getValidBuilderForBuyer(CommonFixture.VALID_BUYER_1) in testFromServiceObject_successNoRenderId() 116 CustomAudienceFixture.VALID_OWNER, in testFromServiceObject_successNoRenderId() 138 CustomAudienceFixture.getValidBuilderForBuyer(CommonFixture.VALID_BUYER_1) in testFromServiceObject_successWIthRenderId() 148 CustomAudienceFixture.VALID_OWNER, in testFromServiceObject_successWIthRenderId() 163 CustomAudienceFixture.getValidBuilderByBuyerWithAuctionServerRequestFlags( in testFromServiceObject_successWithServerAuctionFlagsEnabled() [all …]
|
D | DBCustomAudienceBackgroundFetchDataTest.java | 27 import android.adservices.customaudience.CustomAudienceFixture; 58 assertEquals(CustomAudienceFixture.VALID_OWNER, fetchData.getOwner()); in testBuildFetchDataSuccess() 60 assertEquals(CustomAudienceFixture.VALID_NAME, fetchData.getName()); in testBuildFetchDataSuccess() 62 CustomAudienceFixture.getValidDailyUpdateUriByBuyer(CommonFixture.VALID_BUYER_1), in testBuildFetchDataSuccess() 73 .setOwner(CustomAudienceFixture.VALID_OWNER) in testBuildFetchDataDefaultFailuresSuccess() 75 .setName(CustomAudienceFixture.VALID_NAME) in testBuildFetchDataDefaultFailuresSuccess() 77 CustomAudienceFixture.getValidDailyUpdateUriByBuyer( in testBuildFetchDataDefaultFailuresSuccess() 82 assertEquals(CustomAudienceFixture.VALID_OWNER, fetchData.getOwner()); in testBuildFetchDataDefaultFailuresSuccess() 84 assertEquals(CustomAudienceFixture.VALID_NAME, fetchData.getName()); in testBuildFetchDataDefaultFailuresSuccess() 86 CustomAudienceFixture.getValidDailyUpdateUriByBuyer(CommonFixture.VALID_BUYER_1), in testBuildFetchDataDefaultFailuresSuccess() [all …]
|
D | CustomAudienceOverrideTest.java | 24 import android.adservices.customaudience.CustomAudienceFixture; 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 | DBCustomAudienceQuarantineTest.java | 23 import android.adservices.customaudience.CustomAudienceFixture; 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()
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/customaudience/ |
D | CustomAudienceFixture.java | 38 public final class CustomAudienceFixture { class 102 .setName(CustomAudienceFixture.VALID_NAME) in getValidBuilderForBuyer() 103 .setActivationTime(CustomAudienceFixture.VALID_ACTIVATION_TIME) in getValidBuilderForBuyer() 104 .setExpirationTime(CustomAudienceFixture.VALID_EXPIRATION_TIME) in getValidBuilderForBuyer() 105 .setDailyUpdateUri(CustomAudienceFixture.getValidDailyUpdateUriByBuyer(buyer)) in getValidBuilderForBuyer() 106 .setUserBiddingSignals(CustomAudienceFixture.VALID_USER_BIDDING_SIGNALS) in getValidBuilderForBuyer() 108 .setBiddingLogicUri(CustomAudienceFixture.getValidBiddingLogicUriByBuyer(buyer)) in getValidBuilderForBuyer() 147 .setName(CustomAudienceFixture.VALID_NAME) in getValidBuilderForBuyerFilters() 148 .setActivationTime(CustomAudienceFixture.VALID_ACTIVATION_TIME) in getValidBuilderForBuyerFilters() 149 .setExpirationTime(CustomAudienceFixture.VALID_EXPIRATION_TIME) in getValidBuilderForBuyerFilters() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/shell/customaudience/ |
D | CustomAudienceHelperTest.java | 25 import android.adservices.customaudience.CustomAudienceFixture; 56 .put(CustomAudienceHelper.OWNER, CustomAudienceFixture.VALID_OWNER) in testCustomAudienceFromJson_happyPath() 58 .put(CustomAudienceHelper.NAME, CustomAudienceFixture.VALID_NAME) in testCustomAudienceFromJson_happyPath() 61 CustomAudienceFixture.VALID_EXPIRATION_TIME) in testCustomAudienceFromJson_happyPath() 67 CustomAudienceFixture.VALID_ACTIVATION_TIME) in testCustomAudienceFromJson_happyPath() 73 CustomAudienceFixture.VALID_USER_BIDDING_SIGNALS) in testCustomAudienceFromJson_happyPath() 76 CustomAudienceFixture.getValidBiddingLogicUriByBuyer(BUYER)) in testCustomAudienceFromJson_happyPath() 86 assertThat(customAudience.getOwner()).isEqualTo(CustomAudienceFixture.VALID_OWNER); in testCustomAudienceFromJson_happyPath() 88 assertThat(customAudience.getName()).isEqualTo(CustomAudienceFixture.VALID_NAME); in testCustomAudienceFromJson_happyPath() 91 .isEqualTo(CustomAudienceFixture.VALID_EXPIRATION_TIME); in testCustomAudienceFromJson_happyPath() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/ |
D | DBHistogramIdentifierTest.java | 26 import android.adservices.customaudience.CustomAudienceFixture; 50 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildValidIdentifier_success() 60 .isEqualTo(CustomAudienceFixture.VALID_NAME); in testBuildValidIdentifier_success() 70 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildUnsetForeignKey_success() 79 .isEqualTo(CustomAudienceFixture.VALID_NAME); in testBuildUnsetForeignKey_success() 91 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildUnsetBuyer_throws() 102 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildUnsetCustomAudienceOwner_success() 111 .isEqualTo(CustomAudienceFixture.VALID_NAME); in testBuildUnsetCustomAudienceOwner_success() 141 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildUnsetSourceApp_success() 150 .isEqualTo(CustomAudienceFixture.VALID_NAME); in testBuildUnsetSourceApp_success() [all …]
|
D | CustomAudienceSignalsTest.java | 23 import android.adservices.customaudience.CustomAudienceFixture; 42 assertEquals(CustomAudienceFixture.VALID_OWNER, customAudienceSignals.getOwner()); in testBuildCustomAudienceSignals() 44 assertEquals(CustomAudienceFixture.VALID_NAME, customAudienceSignals.getName()); in testBuildCustomAudienceSignals() 46 CustomAudienceFixture.VALID_ACTIVATION_TIME, in testBuildCustomAudienceSignals() 49 CustomAudienceFixture.VALID_EXPIRATION_TIME, in testBuildCustomAudienceSignals() 52 CustomAudienceFixture.VALID_USER_BIDDING_SIGNALS, in testBuildCustomAudienceSignals() 63 assertEquals(CustomAudienceFixture.VALID_OWNER, customAudienceSignals.getOwner()); in testBuildFromCustomAudience() 65 assertEquals(CustomAudienceFixture.VALID_NAME, customAudienceSignals.getName()); in testBuildFromCustomAudience() 67 CustomAudienceFixture.VALID_ACTIVATION_TIME, in testBuildFromCustomAudience() 70 CustomAudienceFixture.VALID_EXPIRATION_TIME, in testBuildFromCustomAudience() [all …]
|
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/utils/ |
D | CustomAudienceTestFixture.java | 24 import android.adservices.customaudience.CustomAudienceFixture; 76 CustomAudienceFixture.VALID_ACTIVATION_TIME, in createCustomAudience() 77 CustomAudienceFixture.VALID_EXPIRATION_TIME); in createCustomAudience() 91 CustomAudienceFixture.VALID_ACTIVATION_TIME, in createCustomAudienceWithAdCost() 92 CustomAudienceFixture.VALID_EXPIRATION_TIME, in createCustomAudienceWithAdCost() 103 buyer + CustomAudienceFixture.VALID_NAME, in createCustomAudience() 136 .setDailyUpdateUri(CustomAudienceFixture.getValidDailyUpdateUriByBuyer(buyer)) in createCustomAudience() 137 .setUserBiddingSignals(CustomAudienceFixture.VALID_USER_BIDDING_SIGNALS) in createCustomAudience() 169 .setName(buyer + CustomAudienceFixture.VALID_NAME) in createCustomAudienceWithAdCost() 172 .setDailyUpdateUri(CustomAudienceFixture.getValidDailyUpdateUriByBuyer(buyer)) in createCustomAudienceWithAdCost() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/adselection/ |
D | CustomAudienceSignalsFixture.java | 20 import android.adservices.customaudience.CustomAudienceFixture; 33 .setOwner(CustomAudienceFixture.VALID_OWNER) in aCustomAudienceSignalsBuilder() 35 .setName(CustomAudienceFixture.VALID_NAME) in aCustomAudienceSignalsBuilder() 36 .setActivationTime(CustomAudienceFixture.VALID_ACTIVATION_TIME) in aCustomAudienceSignalsBuilder() 37 .setExpirationTime(CustomAudienceFixture.VALID_EXPIRATION_TIME) in aCustomAudienceSignalsBuilder() 38 .setUserBiddingSignals(CustomAudienceFixture.VALID_USER_BIDDING_SIGNALS); in aCustomAudienceSignalsBuilder()
|