/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | AdTechUriValidatorTest.java | 44 .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()
|
D | CoordinatorOriginUriValidatorTest.java | 44 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()
|
D | AdTechIdentifierValidatorTest.java | 32 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()
|
D | JsonValidatorTest.java | 35 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()
|
D | AdDataValidatorTest.java | 50 .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()
|
D | AdRenderIdValidatorTest.java | 41 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/ |
D | CustomAudienceTimestampValidatorTest.java | 47 .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()
|
D | CustomAudienceValidatorTest.java | 66 .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 …]
|
D | CustomAudienceFieldSizeValidatorTest.java | 58 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()
|
D | CustomAudienceDailyUpdateUriValidatorTest.java | 60 () -> mValidator.getValidationViolations(null, VALID_BUYER_1)); in testGetValidationViolation_nullDailyUpdateUri_throws() 68 mValidator.getValidationViolations( in testGetValidationViolation_nullBuyer_throws()
|
D | CustomAudienceBiddingLogicUriValidatorTest.java | 61 () -> mValidator.getValidationViolations(null, VALID_BUYER_1)); in testGetValidationViolation_nullBiddingLogicUri_throws() 69 mValidator.getValidationViolations( in testGetValidationViolation_nullBuyer_throws()
|
D | TrustedBiddingDataValidatorTest.java | 60 () -> mValidator.getValidationViolations(null, VALID_BUYER_1)); in testGetValidationViolation_nullTrustedBiddingData_throws() 68 mValidator.getValidationViolations( in testGetValidationViolation_nullBuyer_throws()
|
D | CustomAudienceExpirationTimeValidatorTest.java | 83 () -> mValidator.getValidationViolations(null, VALID_ACTIVATION_TIME)); in testGetValidationViolations_nullExpirationTime_throws() 90 () -> mValidator.getValidationViolations(VALID_EXPIRATION_TIME, null)); in testGetValidationViolations_nullCalculatedActivationTime_throws()
|
D | CustomAudienceAdsValidatorTest.java | 125 () -> 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/ |
D | AuctionResultValidatorTest.java | 95 mAuctionResultValidator.getValidationViolations( in testValidate_negativeBid() 105 mAuctionResultValidator.getValidationViolations( in testValidate_negativeScore() 114 mAuctionResultValidator.getValidationViolations( in testValidate_buyerEmpty() 125 mAuctionResultValidator.getValidationViolations( in testValidate_buyerNotEnrolled()
|
D | AdSelectionConfigValidatorTest.java | 439 adSelectionConfigValidator.getValidationViolations(adSelectionConfig), in testContextualAdsRenderUriEtldMismatch() 481 assertThat(adSelectionConfigValidator.getValidationViolations(adSelectionConfig)) in testContextualAdsExceededFrequencyCapLimits()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/ |
D | Validator.java | 40 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/ |
D | CustomAudienceBiddingLogicUriValidator.java | 59 Collection<String> violations = getValidationViolations(biddingLogicUri, buyer); in validate() 77 public Collection<String> getValidationViolations( in getValidationViolations() method in CustomAudienceBiddingLogicUriValidator
|
D | CustomAudienceDailyUpdateUriValidator.java | 59 Collection<String> violations = getValidationViolations(dailyUpdateUri, buyer); in validate() 77 public Collection<String> getValidationViolations( in getValidationViolations() method in CustomAudienceDailyUpdateUriValidator
|
D | TrustedBiddingDataValidator.java | 63 Collection<String> violations = getValidationViolations(trustedBiddingData, buyer); in validate() 81 public Collection<String> getValidationViolations( in getValidationViolations() method in TrustedBiddingDataValidator
|
D | CustomAudienceExpirationTimeValidator.java | 64 getValidationViolations(expirationTime, calculatedActivationTime); in validate() 82 public Collection<String> getValidationViolations( in getValidationViolations() method in CustomAudienceExpirationTimeValidator
|
D | CustomAudienceAdsValidator.java | 80 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/ |
D | DebugReportProcessor.java | 264 .getValidationViolations(uri) in hasValidUriForAdTech()
|