/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/ |
D | AdDataTest.java | 25 import android.adservices.common.AdDataFixture; 49 .setMetadata(AdDataFixture.VALID_METADATA) in testBuildValidAdDataSuccess() 50 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in testBuildValidAdDataSuccess() 52 .setAdRenderId(AdDataFixture.VALID_RENDER_ID) in testBuildValidAdDataSuccess() 56 assertThat(validAdData.getMetadata()).isEqualTo(AdDataFixture.VALID_METADATA); in testBuildValidAdDataSuccess() 58 .containsExactlyElementsIn(AdDataFixture.getAdCounterKeys()); in testBuildValidAdDataSuccess() 61 assertThat(validAdData.getAdRenderId()).isEqualTo(AdDataFixture.VALID_RENDER_ID); in testBuildValidAdDataSuccess() 69 .setMetadata(AdDataFixture.VALID_METADATA) in testParcelValidAdDataWithUnsetKeysAndFiltersSuccess() 78 assertThat(fromParcel.getMetadata()).isEqualTo(AdDataFixture.VALID_METADATA); in testParcelValidAdDataWithUnsetKeysAndFiltersSuccess() 89 .setMetadata(AdDataFixture.VALID_METADATA) in testParcelValidAdDataWithUnsetRenderIdSuccess() [all …]
|
D | CustomAudienceTest.java | 28 import android.adservices.common.AdDataFixture; 103 AdDataFixture.getValidAdsByBuyer(CommonFixture.VALID_BUYER_1), in testBuildValidCustomAudienceSuccess() 136 AdDataFixture.getValidAdsByBuyer(CommonFixture.VALID_BUYER_1), in testBuildValidCustomAudienceSuccessWithPriority() 168 AdDataFixture.getValidAdsByBuyer(CommonFixture.VALID_BUYER_1), in testBuildValidCustomAudienceSuccessWithoutPriority() 201 .isEqualTo(AdDataFixture.getValidAdsByBuyer(CommonFixture.VALID_BUYER_1)); in testBuildValidCustomAudienceSuccessWithAuctionServerRequestFlags() 237 .isEqualTo(AdDataFixture.getValidAdsByBuyer(CommonFixture.VALID_BUYER_1)); in testBuildValidDelayedActivationCustomAudienceSuccess() 324 .setAds(AdDataFixture.getValidAdsByBuyer(CommonFixture.VALID_BUYER_1)) in testNonNullValueNotSetBuildFails()
|
D | CustomAudienceApiCtsTest.java | 52 import android.adservices.common.AdDataFixture; 255 .setAds(AdDataFixture.getInvalidAdsByBuyer(VALID_BUYER_1)) in testJoinCustomAudience_invalidAdsMetadata_fail() 278 AdDataFixture.getInvalidAdsByBuyer( in testJoinCustomAudience_invalidAdsRenderUris_fail() 297 AdDataFixture.getValidAdDataBuilderByBuyer(VALID_BUYER_1, 0) in testJoinCustomAudience_adRenderIdDisabled_invalidAdRenderIds_success() 313 AdDataFixture.getValidAdDataBuilderByBuyer(VALID_BUYER_1, 0) in testJoinCustomAudience_adRenderIdEnabled_invalidAdRenderIds_fail() 337 AdDataFixture.getValidAdDataByBuyer(VALID_BUYER_1, 1), in testJoinCustomAudience_invalidNumberOfAds_fail() 338 AdDataFixture.getValidAdDataByBuyer(VALID_BUYER_1, 2), in testJoinCustomAudience_invalidNumberOfAds_fail() 339 AdDataFixture.getValidAdDataByBuyer(VALID_BUYER_1, 3))) in testJoinCustomAudience_invalidNumberOfAds_fail()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/customaudience/ |
D | CustomAudienceConvertersTest.java | 26 import android.adservices.common.AdDataFixture; 59 AdDataFixture.getValidFilterAdsByBuyer(CommonFixture.VALID_BUYER_1).stream() in testSerializeAndDeserialize_runNormally() 70 AdDataFixture.getValidAdsByBuyer(CommonFixture.VALID_BUYER_1).stream() in testSerializeAndDeserialize_runNormallyNoFilters() 83 AdDataFixture.getValidFilterAdsByBuyer(CommonFixture.VALID_BUYER_1).stream() in testSerializeAndDeserialize_filtersDisabled() 87 AdDataFixture.getValidAdsByBuyer(CommonFixture.VALID_BUYER_1).stream() in testSerializeAndDeserialize_filtersDisabled() 100 AdDataFixture.getValidFilterAdsByBuyer(CommonFixture.VALID_BUYER_1).stream() in testSerializeAndDeserialize_toJsonFiltersDisabled() 104 AdDataFixture.getValidAdsByBuyer(CommonFixture.VALID_BUYER_1).stream() in testSerializeAndDeserialize_toJsonFiltersDisabled() 117 AdDataFixture.getValidFilterAdsByBuyer(CommonFixture.VALID_BUYER_1).stream() in testSerializeAndDeserialize_fromJsonFiltersDisabled() 121 AdDataFixture.getValidAdsByBuyer(CommonFixture.VALID_BUYER_1).stream() in testSerializeAndDeserialize_fromJsonFiltersDisabled() 136 AdDataFixture.getValidAdDataBuilderByBuyer(CommonFixture.VALID_BUYER_1, 1) in testSerializeAndDeserialize_toJsonRenderIdDisabled() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | AuctionServerCustomAudienceFiltererTest.java | 27 import android.adservices.common.AdDataFixture; 193 AdDataFixture.getValidRenderUriByBuyer( in test_isValidCustomAudience_emptyAdRenderId_returnsFalse() 195 .setMetadata(AdDataFixture.VALID_METADATA) in test_isValidCustomAudience_emptyAdRenderId_returnsFalse() 196 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in test_isValidCustomAudience_emptyAdRenderId_returnsFalse() 228 AdDataFixture.getValidRenderUriByBuyer( in test_isValidCustomAudience_nullAdRenderId_returnsFalse() 230 .setMetadata(AdDataFixture.VALID_METADATA) in test_isValidCustomAudience_nullAdRenderId_returnsFalse() 231 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in test_isValidCustomAudience_nullAdRenderId_returnsFalse() 249 AdDataFixture.getValidRenderUriByBuyer(VALID_BUYER_1, 1)) in test_isValidCustomAudience_atLeastOneNonNullNonEmptyKeyAndAdRenderId_returnsTrue() 250 .setMetadata(AdDataFixture.VALID_METADATA) in test_isValidCustomAudience_atLeastOneNonNullNonEmptyKeyAndAdRenderId_returnsTrue() 251 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in test_isValidCustomAudience_atLeastOneNonNullNonEmptyKeyAndAdRenderId_returnsTrue() [all …]
|
D | AdCounterKeyCopierImplTest.java | 24 import android.adservices.common.AdDataFixture; 70 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in testCopyAdCounterKeys_DBAdDataToAdDataBuilder() 73 AdDataFixture.getValidAdDataBuilderByBuyer(CommonFixture.VALID_BUYER_1, 0) in testCopyAdCounterKeys_DBAdDataToAdDataBuilder() 80 assertThat(outputAdData.getAdCounterKeys()).isEqualTo(AdDataFixture.getAdCounterKeys()); in testCopyAdCounterKeys_DBAdDataToAdDataBuilder() 86 AdDataFixture.getValidAdDataBuilderByBuyer(CommonFixture.VALID_BUYER_1, 0) in testCopyAdCounterKeys_AdDataToRecordArg_NullBuilderThrows() 87 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in testCopyAdCounterKeys_AdDataToRecordArg_NullBuilderThrows() 108 AdDataFixture.getValidAdDataBuilderByBuyer(CommonFixture.VALID_BUYER_1, 0) in testCopyAdCounterKeys_AdDataToRecordArg() 109 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in testCopyAdCounterKeys_AdDataToRecordArg() 117 new JSONArray(AdDataFixture.getAdCounterKeys())) in testCopyAdCounterKeys_AdDataToRecordArg() 155 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in testCopyAdCounterKeys_DBAdDataToRecordArg() [all …]
|
D | AdCounterKeyCopierNoOpImplTest.java | 24 import android.adservices.common.AdDataFixture; 68 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in testCopyAdCounterKeys_DBAdDataToAdDataBuilder() 71 AdDataFixture.getValidAdDataBuilderByBuyer(CommonFixture.VALID_BUYER_1, 0) in testCopyAdCounterKeys_DBAdDataToAdDataBuilder() 84 AdDataFixture.getValidAdDataBuilderByBuyer(CommonFixture.VALID_BUYER_1, 0) in testCopyAdCounterKeys_AdDataToRecordArg_NullBuilderThrows() 85 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in testCopyAdCounterKeys_AdDataToRecordArg_NullBuilderThrows() 106 AdDataFixture.getValidAdDataBuilderByBuyer(CommonFixture.VALID_BUYER_1, 0) in testCopyAdCounterKeys_AdDataToRecordArg() 107 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in testCopyAdCounterKeys_AdDataToRecordArg() 146 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in testCopyAdCounterKeys_DBAdDataToRecordArg() 179 sourceObject.put("ad_counter_keys", new JSONArray(AdDataFixture.getAdCounterKeys())); in testCopyAdCounterKeys_JsonObjectToAdDataBuilder() 181 AdDataFixture.getValidAdDataBuilderByBuyer(CommonFixture.VALID_BUYER_1, 0) in testCopyAdCounterKeys_JsonObjectToAdDataBuilder()
|
D | AdCounterHistogramUpdaterImplTest.java | 29 import android.adservices.common.AdDataFixture; 57 FledgeRoomConverters.serializeIntegerSet(AdDataFixture.getAdCounterKeys()); 315 for (Integer key : AdDataFixture.getAdCounterKeys()) { in testUpdateWinHistogram_withAdCounterKeysPersists() 425 for (Integer key : AdDataFixture.getAdCounterKeys()) { in testUpdateNonWinHistogram_withAdCounterKeysPersists() 468 for (Integer key : AdDataFixture.getAdCounterKeys()) { in testUpdateNonWinHistogram_withAdCounterKeysPersists_auctionServerOff() 515 for (Integer key : AdDataFixture.getAdCounterKeys()) { in testUpdateNonWinHistogram_withAdCounterKeysPersists_auctionServerOn() 563 for (Integer key : AdDataFixture.getAdCounterKeys()) { in testUpdateNonWinHistogram_withAdCounterKeysPersists_unifiedFlagOn()
|
D | AdDataArgumentUtilTest.java | 29 import android.adservices.common.AdDataFixture; 52 AdDataFixture.getValidAdDataByBuyer(CommonFixture.VALID_BUYER_1, 0); 54 AdDataFixture.getValidAdDataBuilderByBuyer(CommonFixture.VALID_BUYER_1, 0) 55 .setAdCounterKeys(AdDataFixture.getAdCounterKeys())
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/common/ |
D | DBAdDataFixture.java | 20 import android.adservices.common.AdDataFixture; 35 AdDataFixture.getValidFilterAdDataByBuyer(CommonFixture.VALID_BUYER_1, 0); in getValidDbAdDataBuilder() 43 AdDataFixture.getValidFilterAdDataByBuyer(CommonFixture.VALID_BUYER_1, 0); in getValidDbAdDataNoFiltersBuilder() 51 AdData mirrorAdData = AdDataFixture.getValidFilterAdDataByBuyer(buyer, sequenceNumber); in getValidDbAdDataNoFiltersBuilder() 58 return AdDataFixture.getValidFilterAdsByBuyer(buyer).stream() in getValidDbAdDataListByBuyer() 64 return AdDataFixture.getValidFilterAdsWithAdRenderIdByBuyer(buyer).stream() in getValidDbAdDataListByBuyerWithAdRenderId() 72 return AdDataFixture.getValidFilterAdsWithInvalidAdRenderIdByBuyer(buyer).stream() in getValidDbAdDataListByBuyerWithInvalidAdRenderId() 78 return AdDataFixture.getValidAdsByBuyer(buyer).stream() in getValidDbAdDataListByBuyerNoFilters() 84 return AdDataFixture.getInvalidAdsByBuyer(buyer).stream() in getInvalidDbAdDataListByBuyer()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | FrequencyCapAdDataValidatorImplTest.java | 25 import android.adservices.common.AdDataFixture; 63 AdDataFixture.getValidFilterAdDataByBuyer( in testAddValidation_nullViolationsThrows() 73 AdDataFixture.getValidFilterAdDataByBuyer(CommonFixture.VALID_BUYER_1, 0), in testAddValidation_validKeysAndFiltersNoViolationsFound() 83 AdDataFixture.getAdDataWithExceededFrequencyCapLimits( in testAddValidation_excessiveNumKeysAndFiltersReturnsViolations() 128 AdDataFixture.getValidFilterAdDataBuilderByBuyer(CommonFixture.VALID_BUYER_1, 0) in testAddValidation_nullKeyedFrequencyCapReturnsViolations() 160 AdDataFixture.getValidFilterAdDataBuilderByBuyer(CommonFixture.VALID_BUYER_1, 0) in testAddValidation_KeyedFrequencyCapsWithNegativeFieldsReturnsViolations() 197 AdDataFixture.getValidFilterAdDataBuilderByBuyer(CommonFixture.VALID_BUYER_1, 0) in testAddValidation_KeyedFrequencyCapsWithZeroFieldsReturnsViolations() 234 AdDataFixture.getValidFilterAdDataBuilderByBuyer(CommonFixture.VALID_BUYER_1, 0) in testAddValidation_KeyedFrequencyCapsWithExcessiveIntervalReturnsViolations() 262 AdDataFixture.getValidAdDataByBuyer(CommonFixture.VALID_BUYER_1, 0), in testAddValidation_noKeysOrFiltersNoViolationsFound()
|
D | FrequencyCapAdDataValidatorNoOpImplTest.java | 24 import android.adservices.common.AdDataFixture; 54 AdDataFixture.getValidFilterAdDataByBuyer( in testAddValidation_nullViolationsThrows() 64 AdDataFixture.getValidFilterAdDataByBuyer(CommonFixture.VALID_BUYER_1, 0), in testAddValidation_validKeysAndFiltersNoViolationsFound() 74 AdDataFixture.getAdDataWithExceededFrequencyCapLimits( in testAddValidation_excessiveNumKeysAndFiltersReturnsViolations() 115 AdDataFixture.getValidAdDataByBuyer(CommonFixture.VALID_BUYER_1, 0), in testAddValidation_noKeysOrFiltersNoViolationsFound()
|
D | AdDataValidatorTest.java | 22 import android.adservices.common.AdDataFixture; 51 AdDataFixture.getValidAdsByBuyer(CommonFixture.VALID_BUYER_1) in testValidAdData() 99 AdDataFixture.getAdDataWithExceededFrequencyCapLimits( in testExceededFrequencyCapLimits() 120 AdDataFixture.getValidAdDataBuilderByBuyer(CommonFixture.VALID_BUYER_1, 0) in testInvalidRenderId()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/ |
D | DBAdSelectionTest.java | 26 import android.adservices.common.AdDataFixture; 73 .setAdCounterIntKeys(AdDataFixture.getAdCounterKeys()) in testBuildDBAdSelection() 86 .containsExactlyElementsIn(AdDataFixture.getAdCounterKeys()); in testBuildDBAdSelection() 104 .setAdCounterIntKeys(AdDataFixture.getAdCounterKeys()) in testFailsToBuildRemarketingAdWithNullBiddingLogicUri() 226 .setAdCounterIntKeys(AdDataFixture.getAdCounterKeys()) in testBuildDBAdSelectionWithNullSellerContextualSignals() 239 .containsExactlyElementsIn(AdDataFixture.getAdCounterKeys()); in testBuildDBAdSelectionWithNullSellerContextualSignals() 310 .setAdCounterIntKeys(AdDataFixture.getAdCounterKeys()) in testBuildDBAdSelectionWithUnsetSellerContextualSignals() 322 .containsExactlyElementsIn(AdDataFixture.getAdCounterKeys()); in testBuildDBAdSelectionWithUnsetSellerContextualSignals() 338 .setAdCounterIntKeys(AdDataFixture.getAdCounterKeys()) in testEqualDBAdSelectionObjectsHaveSameHashCode() 352 .setAdCounterIntKeys(AdDataFixture.getAdCounterKeys()) in testEqualDBAdSelectionObjectsHaveSameHashCode() [all …]
|
D | AuctionServerAdSelectionDaoTest.java | 20 import android.adservices.common.AdDataFixture; 78 Set<Integer> adCounterKeys = AdDataFixture.getAdCounterKeys(); in testInsertAndRead_validInput_success() 112 Set<Integer> adCounterKeys = AdDataFixture.getAdCounterKeys(); in testUpdate_validInput_success() 139 Set<Integer> adCounterKeys = AdDataFixture.getAdCounterKeys(); in testInsert_duplicateAdSelectionId_aborts() 165 Set<Integer> adCounterKeys = AdDataFixture.getAdCounterKeys(); in testDelete_retrievingDeletedId_fails()
|
D | DBAdSelectionHistogramInfoTest.java | 23 import android.adservices.common.AdDataFixture; 34 FledgeRoomConverters.serializeIntegerSet(AdDataFixture.getAdCounterKeys()); 58 assertThat(histogramInfo.getAdCounterKeys()).isEqualTo(AdDataFixture.getAdCounterKeys()); in testGetAdCounterKeysDeserializesCorrectly()
|
D | DBAdSelectionResultTest.java | 22 import android.adservices.common.AdDataFixture; 38 AdDataFixture.getValidRenderUriByBuyer(CommonFixture.VALID_BUYER_1, 1); 70 .setAdCounterIntKeys(AdDataFixture.getAdCounterKeys()) in testBuild_withWinningCustomAudience_success()
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/customaudience/ |
D | CustomAudienceFixture.java | 19 import static android.adservices.common.AdDataFixture.getValidFilterAdDataWithAdRenderIdByBuyer; 23 import android.adservices.common.AdDataFixture; 109 .setAds(AdDataFixture.getValidAdsByBuyer(buyer)); in getValidBuilderForBuyer() 137 AdDataFixture.getValidAdDataWithSubdomainBuilderByBuyer(buyer, 0) in getValidBuilderWithSubdomainsForBuyer() 139 AdDataFixture.getValidAdDataWithSubdomainBuilderByBuyer(buyer, 1) in getValidBuilderWithSubdomainsForBuyer() 154 .setAds(AdDataFixture.getValidFilterAdsByBuyer(buyer)); in getValidBuilderForBuyerFilters() 169 .setAds(AdDataFixture.getValidFilterAdsWithAdRenderIdByBuyer(buyer)); in getValidBuilderForBuyerFiltersWithAdRenderId()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/common/ |
D | FledgeRoomConvertersTest.java | 24 import android.adservices.common.AdDataFixture; 153 FledgeRoomConverters.serializeIntegerSet(AdDataFixture.getAdCounterKeys()); in testSerializeDeserializeIntegerSet() 158 .containsExactlyElementsIn(AdDataFixture.getAdCounterKeys()); in testSerializeDeserializeIntegerSet() 164 new JSONArray(AdDataFixture.getAdCounterKeys()).put("invalid").toString(); in testSerializeDeserializeIntegerSet_invalidIntegerSkipped() 169 .containsExactlyElementsIn(AdDataFixture.getAdCounterKeys()); in testSerializeDeserializeIntegerSet_invalidIntegerSkipped()
|
D | DBAdDataTest.java | 27 import android.adservices.common.AdDataFixture; 46 AdDataFixture.getValidFilterAdDataBuilderByBuyer(CommonFixture.VALID_BUYER_1, 1) 120 AdData original = AdDataFixture.getValidFilterAdDataByBuyer(CommonFixture.VALID_BUYER_1, 1); in testFromServiceObjectBothFilteringDisabled() 135 AdData original = AdDataFixture.getValidFilterAdDataByBuyer(CommonFixture.VALID_BUYER_1, 1); in testFromServiceObjectAppInstallFilteringDisabledFrequencyCapEnabled() 147 AdData original = AdDataFixture.getValidFilterAdDataByBuyer(CommonFixture.VALID_BUYER_1, 1); in testFromServiceObjectFrequencyCapFilteringDisabledAppInstallEnabled() 159 AdData original = AdDataFixture.getValidFilterAdDataByBuyer(CommonFixture.VALID_BUYER_1, 1); in testFromServiceObjectBothFiltersEnabled() 173 AdDataFixture.getValidFilterAdDataBuilderByBuyer(CommonFixture.VALID_BUYER_1, 1) in testFromServiceObjectAdRenderIdDisabled()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/ |
D | CustomAudienceValidatorTest.java | 22 import android.adservices.common.AdDataFixture; 90 List<AdData> adDataList = AdDataFixture.getValidAdsByBuyer(buyerWithPath); in testInvalidBuyer() 276 .setRenderUri(AdDataFixture.getValidRenderUriByBuyer(ANOTHER_BUYER, 1)) in testInvalidAdData() 282 AdDataFixture.getValidRenderUriByBuyer( in testInvalidAdData() 289 AdDataFixture.getValidRenderUriByBuyer( in testInvalidAdData() 343 AdDataFixture.getAdDataWithExceededFrequencyCapLimits( in testExceededFrequencyCapLimits() 376 AdDataFixture.getValidAdDataBuilderByBuyer(CommonFixture.VALID_BUYER_1, 0) in testInvalidRenderId()
|
D | CustomAudienceAdsValidatorTest.java | 39 import android.adservices.common.AdDataFixture; 80 private final List<AdData> mValidAds = AdDataFixture.getValidFilterAdsByBuyer(VALID_BUYER_1); 166 .setRenderUri(AdDataFixture.getValidRenderUriByBuyer(VALID_BUYER_2, 1)) in testValidator_malformedAds() 171 .setRenderUri(AdDataFixture.getValidRenderUriByBuyer(VALID_BUYER_1, 2)) in testValidator_malformedAds() 176 .setRenderUri(AdDataFixture.getValidRenderUriByBuyer(VALID_BUYER_1, 3)) in testValidator_malformedAds()
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/data/adselection/ |
D | DBAdSelectionFixture.java | 19 import android.adservices.common.AdDataFixture; 50 .setAdCounterIntKeys(AdDataFixture.getAdCounterKeys()); in getValidDbAdSelectionBuilder()
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/adselection/ |
D | SignedContextualAdsFixture.java | 22 import android.adservices.common.AdDataFixture; 58 private static final AdData VALID_AD_DATA = AdDataFixture.getValidAdDataByBuyer(BUYER, 0); 105 AdDataFixture.getValidFilterAdDataByBuyer( in aContextualAdsWithEmptySignatureBuilder()
|
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/adselection/ |
D | AdWithBidTest.java | 22 import android.adservices.common.AdDataFixture; 35 AdDataFixture.getValidAdDataByBuyer(CommonFixture.VALID_BUYER_1, 0);
|