/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/ |
D | CustomAudienceTest.java | 79 CustomAudienceFixture.getValidBuilderForBuyer(CommonFixture.VALID_BUYER_1).build(); in testBuildValidCustomAudienceSuccess() 81 assertEquals(CommonFixture.VALID_BUYER_1, validCustomAudience.getBuyer()); in testBuildValidCustomAudienceSuccess() 90 CustomAudienceFixture.getValidDailyUpdateUriByBuyer(CommonFixture.VALID_BUYER_1), in testBuildValidCustomAudienceSuccess() 97 CommonFixture.VALID_BUYER_1), in testBuildValidCustomAudienceSuccess() 100 CustomAudienceFixture.getValidBiddingLogicUriByBuyer(CommonFixture.VALID_BUYER_1), in testBuildValidCustomAudienceSuccess() 103 AdDataFixture.getValidAdsByBuyer(CommonFixture.VALID_BUYER_1), in testBuildValidCustomAudienceSuccess() 110 CustomAudienceFixture.getValidBuilderForBuyer(CommonFixture.VALID_BUYER_1) in testBuildValidCustomAudienceSuccessWithPriority() 114 assertEquals(CommonFixture.VALID_BUYER_1, validCustomAudience.getBuyer()); in testBuildValidCustomAudienceSuccessWithPriority() 123 CustomAudienceFixture.getValidDailyUpdateUriByBuyer(CommonFixture.VALID_BUYER_1), in testBuildValidCustomAudienceSuccessWithPriority() 130 CommonFixture.VALID_BUYER_1), in testBuildValidCustomAudienceSuccessWithPriority() [all …]
|
D | UpdateAdCounterHistogramRequestTest.java | 50 CommonFixture.VALID_BUYER_1) in testBuildValidRequest_success() 56 assertThat(originalRequest.getCallerAdTech()).isEqualTo(CommonFixture.VALID_BUYER_1); in testBuildValidRequest_success() 65 CommonFixture.VALID_BUYER_1) in testEqualsIdentical() 71 CommonFixture.VALID_BUYER_1) in testEqualsIdentical() 83 CommonFixture.VALID_BUYER_1) in testEqualsDifferent() 101 CommonFixture.VALID_BUYER_1) in testEqualsNull() 114 CommonFixture.VALID_BUYER_1) in testHashCodeIdentical() 120 CommonFixture.VALID_BUYER_1) in testHashCodeIdentical() 132 CommonFixture.VALID_BUYER_1) in testHashCodeDifferent() 150 CommonFixture.VALID_BUYER_1) in testToString() [all …]
|
D | CustomAudienceApiCtsTest.java | 20 import static android.adservices.common.CommonFixture.VALID_BUYER_1; 155 joinCustomAudience(CustomAudienceFixture.getValidBuilderForBuyer(VALID_BUYER_1).build()); in testJoinCustomAudience_validCustomAudience_success() 163 VALID_BUYER_1, FLAG_AUCTION_SERVER_REQUEST_OMIT_ADS) in testJoinCustomAudience_validCustomAudience_successWithAuctionServerRequestFlags() 202 CustomAudienceFixture.getValidBuilderWithSubdomainsForBuyer(VALID_BUYER_1).build()); in testJoinCustomAudience_withValidSubdomains_success() 217 CommonFixture.VALID_BUYER_1) in testJoinCustomAudience_withManyValidSubdomains_success() 221 CommonFixture.VALID_BUYER_1.toString(), in testJoinCustomAudience_withManyValidSubdomains_success() 226 CommonFixture.VALID_BUYER_1.toString(), in testJoinCustomAudience_withManyValidSubdomains_success() 233 CommonFixture.VALID_BUYER_1.toString(), in testJoinCustomAudience_withManyValidSubdomains_success() 254 CustomAudienceFixture.getValidBuilderForBuyer(VALID_BUYER_1) in testJoinCustomAudience_invalidAdsMetadata_fail() 255 .setAds(AdDataFixture.getInvalidAdsByBuyer(VALID_BUYER_1)) in testJoinCustomAudience_invalidAdsMetadata_fail() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/ |
D | CustomAudienceBlobTest.java | 20 import static android.adservices.common.CommonFixture.VALID_BUYER_1; 74 CustomAudienceFixture.getValidFetchUriByBuyer(VALID_BUYER_1), 83 VALID_BUYER_1, 95 VALID_BUYER_1, 99 CustomAudienceFixture.getValidDailyUpdateUriByBuyer(VALID_BUYER_1), 100 getValidBiddingLogicUriByBuyer(VALID_BUYER_1), 102 DBTrustedBiddingDataFixture.getValidBuilderByBuyer(VALID_BUYER_1).build(), 103 DBAdDataFixture.getValidDbAdDataListByBuyerWithAdRenderId(VALID_BUYER_1), 124 assertEquals(mCustomAudienceBlob.getBuyer(), VALID_BUYER_1); in testOverrideFromFetchAndJoinCustomAudienceInput_validValues() local 146 VALID_BUYER_1, in testOverrideFromPartialCustomAudience_validValues() [all …]
|
D | CustomAudienceBlobValidatorTest.java | 23 import static android.adservices.common.CommonFixture.VALID_BUYER_1; 600 mCustomAudience.setBuyer(VALID_BUYER_1); in testValidator_validBuyer() 649 AdTechIdentifier buyerWithPath = AdTechIdentifier.fromString(VALID_BUYER_1 + "/path"); in testValidator_invalidBuyer_domainHasPath() 669 AdTechIdentifier buyerWithPort = AdTechIdentifier.fromString(VALID_BUYER_1 + ":80"); in testValidator_invalidBuyer_domainHasPort() 689 mCustomAudience.setBuyer(VALID_BUYER_1); in testValidator_validBiddingLogicUri() 690 mCustomAudience.setBiddingLogicUri(getValidBiddingLogicUriByBuyer(VALID_BUYER_1)); in testValidator_validBiddingLogicUri() 700 mCustomAudience.setBiddingLogicUri(getValidBiddingLogicUriByBuyer(VALID_BUYER_1)); in testValidator_invalidBiddingLogicUri_invalidBuyer_unset() 721 mCustomAudience.setBiddingLogicUri(getValidBiddingLogicUriByBuyer(VALID_BUYER_1)); in testValidator_invalidBiddingLogicUri_invalidBuyer_emptyIdentifier() 742 mCustomAudience.setBiddingLogicUri(getValidBiddingLogicUriByBuyer(VALID_BUYER_1)); in testValidator_invalidBiddingLogicUri_invalidBuyer_missingHost() 764 VALID_BUYER_1)); in testValidator_invalidBiddingLogicUri_invalidBuyer_missingHost() [all …]
|
D | CustomAudienceValidatorTest.java | 68 CommonFixture.VALID_BUYER_1) in testValidCustomAudience() 79 CommonFixture.VALID_BUYER_1) in testValidCustomAudienceWithNullFields() 89 AdTechIdentifier.fromString(CommonFixture.VALID_BUYER_1.toString() + "/path"); in testInvalidBuyer() 105 CommonFixture.VALID_BUYER_1), in testInvalidBuyer() 112 CommonFixture.VALID_BUYER_1), in testInvalidBuyer() 119 CommonFixture.VALID_BUYER_1), in testInvalidBuyer() 129 CommonFixture.VALID_BUYER_1)), in testInvalidBuyer() 139 CommonFixture.VALID_BUYER_1)), in testInvalidBuyer() 149 CommonFixture.VALID_BUYER_1)), in testInvalidBuyer() 159 CommonFixture.VALID_BUYER_1))); in testInvalidBuyer() [all …]
|
D | CustomAudienceUpdatableDataReaderTest.java | 59 DBTrustedBiddingDataFixture.getValidBuilderByBuyer(CommonFixture.VALID_BUYER_1).build(); 61 DBAdDataFixture.getValidDbAdDataListByBuyer(CommonFixture.VALID_BUYER_1); 63 DBAdDataFixture.getInvalidDbAdDataListByBuyer(CommonFixture.VALID_BUYER_1); 94 CommonFixture.VALID_BUYER_1, in testGetUserBiddingSignalsFromFullJsonObjectSuccess() 120 CommonFixture.VALID_BUYER_1, in testGetAuctionServerRequestFlagsSuccess() 144 CommonFixture.VALID_BUYER_1, in testGetAuctionServerRequestFlagsNoMatchInFlags() 165 CommonFixture.VALID_BUYER_1, in testGetAuctionServerRequestFlagsNoFlagsField() 186 CommonFixture.VALID_BUYER_1, in testGetAuctionServerRequestFlagsFlagsNotArray() 213 CommonFixture.VALID_BUYER_1, in testGetUserBiddingSignalsFromFullJsonObjectWithHarmlessJunkSuccess() 239 CommonFixture.VALID_BUYER_1, in testGetUserBiddingSignalsFromEmptyJsonObject() [all …]
|
D | CustomAudienceBiddingLogicUriValidatorTest.java | 19 import static android.adservices.common.CommonFixture.VALID_BUYER_1; 61 () -> mValidator.getValidationViolations(null, VALID_BUYER_1)); in testGetValidationViolation_nullBiddingLogicUri_throws() 70 getValidBiddingLogicUriByBuyer(VALID_BUYER_1), null)); in testGetValidationViolation_nullBuyer_throws() 77 () -> mValidator.addValidation(null, VALID_BUYER_1, new ImmutableList.Builder<>())); in testAddValidation_nullBiddingLogicUri_throws() 86 getValidBiddingLogicUriByBuyer(VALID_BUYER_1), in testAddValidation_nullBuyer_throws() 97 getValidBiddingLogicUriByBuyer(VALID_BUYER_1), in testAddValidation_nullViolations_throws() 98 VALID_BUYER_1, in testAddValidation_nullViolations_throws() 105 mValidator.validate(getValidBiddingLogicUriByBuyer(VALID_BUYER_1), VALID_BUYER_1); in testValidator_valid() local 117 () -> mValidator.validate(invalidUri, VALID_BUYER_1)); in testValidator_malformedUri() 132 VALID_BUYER_1, in testValidator_malformedUri() [all …]
|
D | TrustedBiddingDataValidatorTest.java | 19 import static android.adservices.common.CommonFixture.VALID_BUYER_1; 60 () -> mValidator.getValidationViolations(null, VALID_BUYER_1)); in testGetValidationViolation_nullTrustedBiddingData_throws() 69 getValidTrustedBiddingDataByBuyer(VALID_BUYER_1), null)); in testGetValidationViolation_nullBuyer_throws() 76 () -> mValidator.addValidation(null, VALID_BUYER_1, new ImmutableList.Builder<>())); in testAddValidation_nullTrustedBiddingData_throws() 85 getValidTrustedBiddingDataByBuyer(VALID_BUYER_1), in testAddValidation_nullBuyer_throws() 96 getValidTrustedBiddingDataByBuyer(VALID_BUYER_1), in testAddValidation_nullViolations_throws() 97 VALID_BUYER_1, in testAddValidation_nullViolations_throws() 104 mValidator.validate(getValidTrustedBiddingDataByBuyer(VALID_BUYER_1), VALID_BUYER_1); in testValidator_valid() local 117 () -> mValidator.validate(invalidTrustedBiddingData, VALID_BUYER_1)); in testValidator_malformedUri() 133 VALID_BUYER_1, in testValidator_malformedUri() [all …]
|
D | CustomAudienceDailyUpdateUriValidatorTest.java | 19 import static android.adservices.common.CommonFixture.VALID_BUYER_1; 60 () -> mValidator.getValidationViolations(null, VALID_BUYER_1)); in testGetValidationViolation_nullDailyUpdateUri_throws() 69 getValidDailyUpdateUriByBuyer(VALID_BUYER_1), null)); in testGetValidationViolation_nullBuyer_throws() 76 () -> mValidator.addValidation(null, VALID_BUYER_1, new ImmutableList.Builder<>())); in testAddValidation_nullDailyUpdateUri_throws() 85 getValidDailyUpdateUriByBuyer(VALID_BUYER_1), in testAddValidation_nullBuyer_throws() 96 getValidDailyUpdateUriByBuyer(VALID_BUYER_1), VALID_BUYER_1, null)); in testAddValidation_nullViolations_throws() 108 () -> mValidator.validate(invalidUri, VALID_BUYER_1)); in testValidator_malformedUri() 123 VALID_BUYER_1, in testValidator_malformedUri() 136 Uri tooLongUri = getValidDailyUpdateUriByBuyer(VALID_BUYER_1); in testValidator_exceedsSizeLimit() 142 () -> mValidatorWithSmallLimit.validate(tooLongUri, VALID_BUYER_1)); in testValidator_exceedsSizeLimit()
|
D | CustomAudienceFieldSizeValidatorTest.java | 59 CustomAudienceFixture.getValidBuilderForBuyer(CommonFixture.VALID_BUYER_1) in testNameTooLong() 73 CommonFixture.VALID_BUYER_1, in testBiddingLogicUriTooLong() 77 CustomAudienceFixture.getValidBuilderForBuyer(CommonFixture.VALID_BUYER_1) in testBiddingLogicUriTooLong() 91 CommonFixture.VALID_BUYER_1, in testDailyUpdateUriTooLong() 95 CustomAudienceFixture.getValidBuilderForBuyer(CommonFixture.VALID_BUYER_1) in testDailyUpdateUriTooLong() 112 CustomAudienceFixture.getValidBuilderForBuyer(CommonFixture.VALID_BUYER_1) in testUserBiddingSignalsTooBig() 132 CommonFixture.VALID_BUYER_1, in testTrustedBiddingDataTooBig() 137 CustomAudienceFixture.getValidBuilderForBuyer(CommonFixture.VALID_BUYER_1) in testTrustedBiddingDataTooBig() 154 .setRenderUri(getUriWithPathLength(CommonFixture.VALID_BUYER_1, 20)) in testAdsTooBig() 162 CustomAudienceFixture.getValidBuilderForBuyer(CommonFixture.VALID_BUYER_1) in testAdsTooBig() [all …]
|
D | CustomAudienceAdsValidatorTest.java | 19 import static android.adservices.common.CommonFixture.VALID_BUYER_1; 80 private final List<AdData> mValidAds = AdDataFixture.getValidFilterAdsByBuyer(VALID_BUYER_1); 113 assertThrows(NullPointerException.class, () -> mValidator.validate(null, VALID_BUYER_1)); in testValidate_nullAds_throws() 125 () -> mValidator.getValidationViolations(null, VALID_BUYER_1)); in testGetValidationViolations_nullAds_throws() 139 () -> mValidator.addValidation(null, VALID_BUYER_1, new ImmutableList.Builder<>())); in testAddValidation_nullAds_throws() 153 () -> mValidator.addValidation(mValidAds, VALID_BUYER_1, null)); in testAddValidation_nullViolations_throws() 159 mValidator.validate(mValidAds, VALID_BUYER_1); in testValidator_valid() 171 .setRenderUri(AdDataFixture.getValidRenderUriByBuyer(VALID_BUYER_1, 2)) in testValidator_malformedAds() 176 .setRenderUri(AdDataFixture.getValidRenderUriByBuyer(VALID_BUYER_1, 3)) in testValidator_malformedAds() 190 VALID_BUYER_1)); in testValidator_malformedAds() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/customaudience/ |
D | DBCustomAudienceTest.java | 64 DBCustomAudienceFixture.getValidBuilderByBuyer(CommonFixture.VALID_BUYER_1).build(), in testFromServiceObject_success() 67 CommonFixture.VALID_BUYER_1) in testFromServiceObject_success() 80 DBCustomAudienceFixture.getValidBuilderByBuyerNoFilters(CommonFixture.VALID_BUYER_1) in testFromServiceObject_successNoFilters() 83 CustomAudienceFixture.getValidBuilderForBuyer(CommonFixture.VALID_BUYER_1) in testFromServiceObject_successNoFilters() 96 DBCustomAudienceFixture.getValidBuilderByBuyerNoFilters(CommonFixture.VALID_BUYER_1) in testFromServiceObject_successNoRenderId() 106 CustomAudienceFixture.getValidBuilderForBuyer(CommonFixture.VALID_BUYER_1) in testFromServiceObject_successNoRenderId() 110 CommonFixture.VALID_BUYER_1, 0) in testFromServiceObject_successNoRenderId() 128 DBCustomAudienceFixture.getValidBuilderByBuyer(CommonFixture.VALID_BUYER_1) in testFromServiceObject_successWIthRenderId() 138 CustomAudienceFixture.getValidBuilderForBuyer(CommonFixture.VALID_BUYER_1) in testFromServiceObject_successWIthRenderId() 142 CommonFixture.VALID_BUYER_1, 0) in testFromServiceObject_successWIthRenderId() [all …]
|
D | DBCustomAudienceBackgroundFetchDataTest.java | 52 CommonFixture.VALID_BUYER_1) in testBuildFetchDataSuccess() 59 assertEquals(CommonFixture.VALID_BUYER_1, fetchData.getBuyer()); in testBuildFetchDataSuccess() 62 CustomAudienceFixture.getValidDailyUpdateUriByBuyer(CommonFixture.VALID_BUYER_1), in testBuildFetchDataSuccess() 74 .setBuyer(CommonFixture.VALID_BUYER_1) in testBuildFetchDataDefaultFailuresSuccess() 78 CommonFixture.VALID_BUYER_1)) in testBuildFetchDataDefaultFailuresSuccess() 83 assertEquals(CommonFixture.VALID_BUYER_1, fetchData.getBuyer()); in testBuildFetchDataDefaultFailuresSuccess() 86 CustomAudienceFixture.getValidDailyUpdateUriByBuyer(CommonFixture.VALID_BUYER_1), in testBuildFetchDataDefaultFailuresSuccess() 99 CommonFixture.VALID_BUYER_1) in testBuildFetchDataNegativeFailuresFail() 106 CommonFixture.VALID_BUYER_1) in testBuildFetchDataNegativeFailuresFail() 116 CommonFixture.VALID_BUYER_1, in testCreateFetchDataSuccess() [all …]
|
D | CustomAudienceConvertersTest.java | 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() 141 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 | 19 import static android.adservices.common.CommonFixture.VALID_BUYER_1; 57 .setBuyer(VALID_BUYER_1) in test_isValidCustomAudience_nullBiddingData_returnsFalse() 64 .setBiddingLogicUri(getValidTrustedBiddingUriByBuyer(VALID_BUYER_1)) in test_isValidCustomAudience_nullBiddingData_returnsFalse() 78 .setBuyer(VALID_BUYER_1) in test_isValidCustomAudience_emptyBiddingKeyList_returnsFalse() 85 .setBiddingLogicUri(getValidTrustedBiddingUriByBuyer(VALID_BUYER_1)) in test_isValidCustomAudience_emptyBiddingKeyList_returnsFalse() 100 .setBuyer(VALID_BUYER_1) in test_isValidCustomAudience_nullBiddingKeys_returnsFalse() 107 .setBiddingLogicUri(getValidTrustedBiddingUriByBuyer(VALID_BUYER_1)) in test_isValidCustomAudience_nullBiddingKeys_returnsFalse() 110 .setUri(getValidTrustedBiddingUriByBuyer(VALID_BUYER_1)) in test_isValidCustomAudience_nullBiddingKeys_returnsFalse() 125 .setBuyer(VALID_BUYER_1) in test_isValidCustomAudience_emptyBiddingKeys_returnsFalse() 132 .setBiddingLogicUri(getValidTrustedBiddingUriByBuyer(VALID_BUYER_1)) in test_isValidCustomAudience_emptyBiddingKeys_returnsFalse() [all …]
|
D | HistogramEventTest.java | 45 .setBuyer(CommonFixture.VALID_BUYER_1) in testBuildValidHistogramEvent_success() 54 assertThat(event.getBuyer()).isEqualTo(CommonFixture.VALID_BUYER_1); in testBuildValidHistogramEvent_success() 68 .setBuyer(CommonFixture.VALID_BUYER_1) in testBuildUnsetAdCounterKey_throws() 99 .setBuyer(CommonFixture.VALID_BUYER_1) in testBuildUnsetCustomAudienceOwnerWithWinType_throws() 112 .setBuyer(CommonFixture.VALID_BUYER_1) in testBuildUnsetCustomAudienceOwnerWithNonWinType_success() 120 assertThat(event.getBuyer()).isEqualTo(CommonFixture.VALID_BUYER_1); in testBuildUnsetCustomAudienceOwnerWithNonWinType_success() 135 .setBuyer(CommonFixture.VALID_BUYER_1) in testBuildUnsetCustomAudienceNameWithWinType_throws() 148 .setBuyer(CommonFixture.VALID_BUYER_1) in testBuildUnsetCustomAudienceNameWithNonWinType_success() 156 assertThat(event.getBuyer()).isEqualTo(CommonFixture.VALID_BUYER_1); in testBuildUnsetCustomAudienceNameWithNonWinType_success() 171 .setBuyer(CommonFixture.VALID_BUYER_1) in testBuildUnsetAdEventType_throws() [all …]
|
D | CustomAudienceBiddingInfoTest.java | 47 .setBuyer(CommonFixture.VALID_BUYER_1) 54 DBCustomAudienceFixture.getValidBuilderByBuyer(CommonFixture.VALID_BUYER_1) 56 .setBuyer(CommonFixture.VALID_BUYER_1) 72 CommonFixture.VALID_BUYER_1), in testCustomAudienceBiddingInfo() 78 CustomAudienceFixture.getValidBiddingLogicUriByBuyer(CommonFixture.VALID_BUYER_1)); in testCustomAudienceBiddingInfo() 90 CustomAudienceFixture.getValidBiddingLogicUriByBuyer(CommonFixture.VALID_BUYER_1)); in testCustomAudienceBiddingInfoFromCA() 102 CommonFixture.VALID_BUYER_1)) in testCustomAudienceBiddingInfoBuilder() 108 CustomAudienceFixture.getValidBiddingLogicUriByBuyer(CommonFixture.VALID_BUYER_1)); in testCustomAudienceBiddingInfoBuilder() 120 CommonFixture.VALID_BUYER_1)) in testCustomAudienceBiddingInfoBuilderWithContextualSignals() 126 CustomAudienceFixture.getValidBiddingLogicUriByBuyer(CommonFixture.VALID_BUYER_1), in testCustomAudienceBiddingInfoBuilderWithContextualSignals()
|
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/adselection/ |
D | UpdateAdCounterHistogramInputTest.java | 47 CommonFixture.VALID_BUYER_1, in testBuildValidInput_success() 54 expect.that(originalInput.getCallerAdTech()).isEqualTo(CommonFixture.VALID_BUYER_1); in testBuildValidInput_success() 64 CommonFixture.VALID_BUYER_1, in testParcelInput_success() 77 expect.that(requestFromParcel.getCallerAdTech()).isEqualTo(CommonFixture.VALID_BUYER_1); in testParcelInput_success() 87 CommonFixture.VALID_BUYER_1, in testEqualsIdentical() 94 CommonFixture.VALID_BUYER_1, in testEqualsIdentical() 108 CommonFixture.VALID_BUYER_1, in testEqualsDifferent() 129 CommonFixture.VALID_BUYER_1, in testEqualsNull() 142 CommonFixture.VALID_BUYER_1, in testToString() 152 CommonFixture.VALID_BUYER_1, in testToString() [all …]
|
D | RemoveAdCounterHistogramOverrideInputTest.java | 42 .setBuyer(CommonFixture.VALID_BUYER_1) in testBuildValidInput_success() 48 expect.that(originalInput.getBuyer()).isEqualTo(CommonFixture.VALID_BUYER_1); in testBuildValidInput_success() 57 .setBuyer(CommonFixture.VALID_BUYER_1) in testParcelValidInput_success() 69 expect.that(inputFromParcel.getBuyer()).isEqualTo(CommonFixture.VALID_BUYER_1); in testParcelValidInput_success() 87 .setBuyer(CommonFixture.VALID_BUYER_1) in testToString() 96 CommonFixture.VALID_BUYER_1); in testToString() 115 .setBuyer(CommonFixture.VALID_BUYER_1) in testBuildUnsetAdEventType() 124 .setBuyer(CommonFixture.VALID_BUYER_1) in testBuildUnsetAdCounterKey_success() 130 expect.that(originalInput.getBuyer()).isEqualTo(CommonFixture.VALID_BUYER_1); in testBuildUnsetAdCounterKey_success()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/ |
D | DBHistogramIdentifierTest.java | 48 .setBuyer(CommonFixture.VALID_BUYER_1) in testBuildValidIdentifier_success() 56 assertThat(originalIdentifier.getBuyer()).isEqualTo(CommonFixture.VALID_BUYER_1); in testBuildValidIdentifier_success() 68 .setBuyer(CommonFixture.VALID_BUYER_1) in testBuildUnsetForeignKey_success() 75 assertThat(originalIdentifier.getBuyer()).isEqualTo(CommonFixture.VALID_BUYER_1); in testBuildUnsetForeignKey_success() 101 .setBuyer(CommonFixture.VALID_BUYER_1) in testBuildUnsetCustomAudienceOwner_success() 108 assertThat(originalIdentifier.getBuyer()).isEqualTo(CommonFixture.VALID_BUYER_1); in testBuildUnsetCustomAudienceOwner_success() 120 .setBuyer(CommonFixture.VALID_BUYER_1) in testBuildUnsetCustomAudienceName_success() 127 assertThat(originalIdentifier.getBuyer()).isEqualTo(CommonFixture.VALID_BUYER_1); in testBuildUnsetCustomAudienceName_success() 139 .setBuyer(CommonFixture.VALID_BUYER_1) in testBuildUnsetSourceApp_success() 146 assertThat(originalIdentifier.getBuyer()).isEqualTo(CommonFixture.VALID_BUYER_1); in testBuildUnsetSourceApp_success() [all …]
|
D | CustomAudienceSignalsTest.java | 39 .setBuyer(CommonFixture.VALID_BUYER_1) in testBuildCustomAudienceSignals() 43 assertEquals(CommonFixture.VALID_BUYER_1, customAudienceSignals.getBuyer()); in testBuildCustomAudienceSignals() 60 DBCustomAudienceFixture.getValidBuilderByBuyer(CommonFixture.VALID_BUYER_1) in testBuildFromCustomAudience() 64 assertEquals(CommonFixture.VALID_BUYER_1, customAudienceSignals.getBuyer()); in testBuildFromCustomAudience() 81 .setBuyer(CommonFixture.VALID_BUYER_1) in testEqualCustomAudienceSignalsHaveSameHashCode() 86 .setBuyer(CommonFixture.VALID_BUYER_1) in testEqualCustomAudienceSignalsHaveSameHashCode() 97 .setBuyer(CommonFixture.VALID_BUYER_1) in testNotEqualCustomAudienceSignalsHaveDifferentHashCodes() 102 .setBuyer(CommonFixture.VALID_BUYER_1) in testNotEqualCustomAudienceSignalsHaveDifferentHashCodes()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | AdTechUriValidatorTest.java | 36 CommonFixture.VALID_BUYER_1.toString(), 45 Uri.parse("https://" + CommonFixture.VALID_BUYER_1 + "/valid/uri")) in testValidUri_hasNoViolation() 80 CommonFixture.VALID_BUYER_1, in testNotMatchHost_hasViolation() 90 Uri.parse("http://" + CommonFixture.VALID_BUYER_1 + "/not/https/")), in testNotHttpsHost_hasViolation() 104 + CommonFixture.VALID_BUYER_1 in testDomainContainingNotMatchingHost_hasNoViolations() 114 CommonFixture.VALID_BUYER_1, in testDomainContainingNotMatchingHost_hasNoViolations() 123 Uri.parse("https://subdomain." + CommonFixture.VALID_BUYER_1 + "/path/to/resource"); in testSubdomainMatchingHost_hasNoViolations() 135 + CommonFixture.VALID_BUYER_1 in testLongerSubdomainMatchingHost_hasNoViolations() 149 + CommonFixture.VALID_BUYER_1 in testNonSubdomainEndingWithSameSubstring_hasViolation() 159 CommonFixture.VALID_BUYER_1, in testNonSubdomainEndingWithSameSubstring_hasViolation() [all …]
|
D | FledgeAuthorizationFilterTest.java | 90 CommonFixture.getUriWithValidSubdomain(CommonFixture.VALID_BUYER_1.toString(), "/path"); 530 CommonFixture.VALID_BUYER_1)) in testAssertAdTechHasPermission_hasPermission() 538 CommonFixture.VALID_BUYER_1, in testAssertAdTechHasPermission_hasPermission() 544 .getEnrollmentDataForFledgeByAdTechIdentifier(CommonFixture.VALID_BUYER_1); in testAssertAdTechHasPermission_hasPermission() 555 CommonFixture.VALID_BUYER_1)) in testAssertAdTechHasSignalsPermission_hasSignalsPermission() 563 CommonFixture.VALID_BUYER_1, in testAssertAdTechHasSignalsPermission_hasSignalsPermission() 569 .getEnrollmentDataForPASByAdTechIdentifier(CommonFixture.VALID_BUYER_1); in testAssertAdTechHasSignalsPermission_hasSignalsPermission() 580 CommonFixture.VALID_BUYER_1)) in testAssertAdTechHasCAPermission_hasAdSelectionPermission() 583 CommonFixture.VALID_BUYER_1)) in testAssertAdTechHasCAPermission_hasAdSelectionPermission() 591 CommonFixture.VALID_BUYER_1, in testAssertAdTechHasCAPermission_hasAdSelectionPermission() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/signals/ |
D | DBProtectedSignalTest.java | 41 CommonFixture.VALID_BUYER_1, in testCreateSignal() 47 assertEquals(CommonFixture.VALID_BUYER_1, signal.getBuyer()); in testCreateSignal() 59 .setBuyer(CommonFixture.VALID_BUYER_1) in testBuildSignal() 66 assertEquals(CommonFixture.VALID_BUYER_1, signal.getBuyer()); in testBuildSignal() 78 .setBuyer(CommonFixture.VALID_BUYER_1) in testEqual() 87 .setBuyer(CommonFixture.VALID_BUYER_1) in testEqual() 101 .setBuyer(CommonFixture.VALID_BUYER_1) in testNotEqual() 110 .setBuyer(CommonFixture.VALID_BUYER_1) in testNotEqual() 124 .setBuyer(CommonFixture.VALID_BUYER_1) in testHashCode() 133 .setBuyer(CommonFixture.VALID_BUYER_1) in testHashCode()
|