Home
last modified time | relevance | path

Searched refs:getValidationViolations (Results 1 – 23 of 23) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DAdTechUriValidatorTest.java44 .getValidationViolations( in testValidUri_hasNoViolation()
52 mValidator.getValidationViolations(null), in testNullUri_hasViolation()
63 mValidator.getValidationViolations(Uri.parse("/a/b/c")), in testNoHostUri_hasViolation()
75 mValidator.getValidationViolations(Uri.parse("https://" + uriHost + "/not/match")), in testNotMatchHost_hasViolation()
89 mValidator.getValidationViolations( in testNotHttpsHost_hasViolation()
108 .that(mValidator.getValidationViolations(mismatchingUri)) in testDomainContainingNotMatchingHost_hasNoViolations()
126 .that(mValidator.getValidationViolations(subdomainUri)) in testSubdomainMatchingHost_hasNoViolations()
139 .that(mValidator.getValidationViolations(subdomainUri)) in testLongerSubdomainMatchingHost_hasNoViolations()
153 .that(mValidator.getValidationViolations(mismatchingUri)) in testNonSubdomainEndingWithSameSubstring_hasViolation()
175 .that(mValidator.getValidationViolations(subdomainUri)) in testSubdomainWithMixedCaseMatchingHost_hasNoViolations()
DCoordinatorOriginUriValidatorTest.java44 Assert.assertTrue(mValidator.getValidationViolations(Uri.parse(INVALID_URL)).isEmpty()); in test_multiCloudFlagOff_invalidUri_hasNoViolation()
50 mValidator.getValidationViolations(Uri.parse(SCHEME + HOSTNAME)).isEmpty()); in test_validUri_hasNoViolation()
55 Assert.assertTrue(mValidator.getValidationViolations(null).isEmpty()); in test_nullUri_hasNoViolation()
61 mValidator.getValidationViolations(Uri.parse(INVALID_URL)), in test_noHostUri_hasViolation()
68 mValidator.getValidationViolations(Uri.parse("http://" + HOSTNAME)), in test_notHttpsScheme_hasViolation()
75 mValidator.getValidationViolations(Uri.parse(SCHEME + HOSTNAME + PATH)), in test_hasPath_hasViolation()
82 mValidator.getValidationViolations(Uri.parse(SCHEME + "google.com")), in test_urlNotAllowlisted_hasViolation()
DAdTechIdentifierValidatorTest.java32 mAdTechIdentifierValidator.getValidationViolations("domain.com").isEmpty()); in testValidIdentifier()
38 mAdTechIdentifierValidator.getValidationViolations(null), in testNullIdentifier()
48 mAdTechIdentifierValidator.getValidationViolations(""), in testEmptyIdentifier()
58 mAdTechIdentifierValidator.getValidationViolations("test@"), in testMissingHost()
68 mAdTechIdentifierValidator.getValidationViolations("a/b/c"), in testMissingDomainIdentifier()
78 mAdTechIdentifierValidator.getValidationViolations("localhost:3000"), in testDomainHasPort()
DJsonValidatorTest.java35 mJsonValidator.getValidationViolations(null); in testNullJson()
41 assertTrue(mJsonValidator.getValidationViolations("{\"a\":5}").isEmpty()); in testValidJsonObject()
47 mJsonValidator.getValidationViolations("[\"a\", \"b\"]"), in testValidJsonArray()
54 mJsonValidator.getValidationViolations("invalid[json]field"), in testInvalidJson()
DAdDataValidatorTest.java50 .getValidationViolations( in testValidAdData()
65 mValidator.getValidationViolations(adData), in testInvalidUri()
86 mValidator.getValidationViolations(adData), in testInvalidMetadata()
113 assertThat(mValidator.getValidationViolations(adDataWithExceededFrequencyCapLimits)) in testExceededFrequencyCapLimits()
131 assertThat(validator.getValidationViolations(adDataWithInvalidRenderId)).isNotEmpty(); in testInvalidRenderId()
DAdRenderIdValidatorTest.java41 assertThat(validator.getValidationViolations(VERY_LONG_ID)).isEmpty(); in testCreateInstance_disabled_returnsNoViolations()
52 assertThat(validator.getValidationViolations(VERY_LONG_ID)).isNotEmpty(); in testCreateInstance_enabled_returnsViolations()
64 assertThat(validator.getValidationViolations(SHORT_ID)).isEmpty(); in testCreateInstance_enabled_shortId_returnsNoViolations()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/
DCustomAudienceTimestampValidatorTest.java47 .getValidationViolations( in testAllValidTimes()
58 mValidator.getValidationViolations( in testActivationTimeBeyondMaxAndExpireBeforeActivation()
77 mValidator.getValidationViolations( in testExpirationTimeBeforeNow()
90 mValidator.getValidationViolations( in testExpirationTimeBeforeActivation()
108 .getValidationViolations( in testNullActivationTimeAndNullExpirationTime()
121 .getValidationViolations( in testNullActivationTimeExpireBeforeMax()
134 mValidator.getValidationViolations( in testNullActivationTimeWithExpireAfterMax()
152 .getValidationViolations( in testNullExpirationTimeWithValidActivationTime()
165 mValidator.getValidationViolations( in testNullExpirationTimeWithBeyondMaxActivationTime()
DCustomAudienceValidatorTest.java66 .getValidationViolations( in testValidCustomAudience()
77 .getValidationViolations( in testValidCustomAudienceWithNullFields()
93 mValidator.getValidationViolations( in testInvalidBuyer()
165 mValidator.getValidationViolations( in testInvalidDailyUpdateUriAndBiddingLogicUri()
193 mValidator.getValidationViolations( in testInvalidTrustedBiddingData()
211 mValidator.getValidationViolations( in testInvalidUserBiddingSignals()
226 mValidator.getValidationViolations( in testActivationTimeBeyondMaxAndExpireBeforeActivation()
245 mValidator.getValidationViolations( in testExpirationTimeBeforeNow()
258 mValidator.getValidationViolations( in testExpirationTimeBeforeActivation()
294 mValidator.getValidationViolations( in testInvalidAdData()
[all …]
DCustomAudienceFieldSizeValidatorTest.java58 mValidator.getValidationViolations( in testNameTooLong()
76 mValidator.getValidationViolations( in testBiddingLogicUriTooLong()
94 mValidator.getValidationViolations( in testDailyUpdateUriTooLong()
111 mValidator.getValidationViolations( in testUserBiddingSignalsTooBig()
136 mValidator.getValidationViolations( in testTrustedBiddingDataTooBig()
161 mValidator.getValidationViolations( in testAdsTooBig()
186 mValidator.getValidationViolations( in testAdsCountTooBig()
DCustomAudienceDailyUpdateUriValidatorTest.java60 () -> mValidator.getValidationViolations(null, VALID_BUYER_1)); in testGetValidationViolation_nullDailyUpdateUri_throws()
68 mValidator.getValidationViolations( in testGetValidationViolation_nullBuyer_throws()
DCustomAudienceBiddingLogicUriValidatorTest.java61 () -> mValidator.getValidationViolations(null, VALID_BUYER_1)); in testGetValidationViolation_nullBiddingLogicUri_throws()
69 mValidator.getValidationViolations( in testGetValidationViolation_nullBuyer_throws()
DTrustedBiddingDataValidatorTest.java60 () -> mValidator.getValidationViolations(null, VALID_BUYER_1)); in testGetValidationViolation_nullTrustedBiddingData_throws()
68 mValidator.getValidationViolations( in testGetValidationViolation_nullBuyer_throws()
DCustomAudienceExpirationTimeValidatorTest.java83 () -> mValidator.getValidationViolations(null, VALID_ACTIVATION_TIME)); in testGetValidationViolations_nullExpirationTime_throws()
90 () -> mValidator.getValidationViolations(VALID_EXPIRATION_TIME, null)); in testGetValidationViolations_nullCalculatedActivationTime_throws()
DCustomAudienceAdsValidatorTest.java125 () -> mValidator.getValidationViolations(null, VALID_BUYER_1)); in testGetValidationViolations_nullAds_throws()
132 () -> mValidator.getValidationViolations(mValidAds, null)); in testGetValidationViolations_nullBuyer_throws()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAuctionResultValidatorTest.java95 mAuctionResultValidator.getValidationViolations( in testValidate_negativeBid()
105 mAuctionResultValidator.getValidationViolations( in testValidate_negativeScore()
114 mAuctionResultValidator.getValidationViolations( in testValidate_buyerEmpty()
125 mAuctionResultValidator.getValidationViolations( in testValidate_buyerNotEnrolled()
DAdSelectionConfigValidatorTest.java439 adSelectionConfigValidator.getValidationViolations(adSelectionConfig), in testContextualAdsRenderUriEtldMismatch()
481 assertThat(adSelectionConfigValidator.getValidationViolations(adSelectionConfig)) in testContextualAdsExceededFrequencyCapLimits()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DValidator.java40 Collection<String> violations = getValidationViolations(object); in validate()
55 default Collection<String> getValidationViolations(T object) { in getValidationViolations() method
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/
DCustomAudienceBiddingLogicUriValidator.java59 Collection<String> violations = getValidationViolations(biddingLogicUri, buyer); in validate()
77 public Collection<String> getValidationViolations( in getValidationViolations() method in CustomAudienceBiddingLogicUriValidator
DCustomAudienceDailyUpdateUriValidator.java59 Collection<String> violations = getValidationViolations(dailyUpdateUri, buyer); in validate()
77 public Collection<String> getValidationViolations( in getValidationViolations() method in CustomAudienceDailyUpdateUriValidator
DTrustedBiddingDataValidator.java63 Collection<String> violations = getValidationViolations(trustedBiddingData, buyer); in validate()
81 public Collection<String> getValidationViolations( in getValidationViolations() method in TrustedBiddingDataValidator
DCustomAudienceExpirationTimeValidator.java64 getValidationViolations(expirationTime, calculatedActivationTime); in validate()
82 public Collection<String> getValidationViolations( in getValidationViolations() method in CustomAudienceExpirationTimeValidator
DCustomAudienceAdsValidator.java80 Collection<String> violations = getValidationViolations(ads, buyer); in validate()
98 public Collection<String> getValidationViolations( in getValidationViolations() method in CustomAudienceAdsValidator
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DDebugReportProcessor.java264 .getValidationViolations(uri) in hasValidUriForAdTech()