Home
last modified time | relevance | path

Searched refs:CoordinatorOriginUriValidator (Results 1 – 6 of 6) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DCoordinatorOriginUriValidatorTest.java26 private CoordinatorOriginUriValidator mValidator;
37 mValidator = CoordinatorOriginUriValidator.createEnabledInstance(ALLOWLIST); in setup()
42 mValidator = CoordinatorOriginUriValidator.createDisabledInstance(); in test_multiCloudFlagOff_invalidUri_hasNoViolation()
62 String.format(CoordinatorOriginUriValidator.URI_SHOULD_HAVE_PRESENT_HOST)); in test_noHostUri_hasViolation()
69 String.format(CoordinatorOriginUriValidator.URI_SHOULD_USE_HTTPS)); in test_notHttpsScheme_hasViolation()
76 String.format(CoordinatorOriginUriValidator.URI_SHOULD_NOT_HAVE_PATH)); in test_hasPath_hasViolation()
83 String.format(CoordinatorOriginUriValidator.URI_SHOULD_BELONG_TO_ALLOWLIST)); in test_urlNotAllowlisted_hasViolation()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DMultiCloudTestStrategyFactory.java26 import com.android.adservices.service.common.CoordinatorOriginUriValidator;
39 public CoordinatorOriginUriValidator getCoordinatorOriginUriValidator() { in getCoordinatorOriginUriValidator()
40 return CoordinatorOriginUriValidator.createDisabledInstance(); in getCoordinatorOriginUriValidator()
70 public CoordinatorOriginUriValidator getCoordinatorOriginUriValidator() { in getCoordinatorOriginUriValidator()
71 return CoordinatorOriginUriValidator.createEnabledInstance(mAllowList); in getCoordinatorOriginUriValidator()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DCoordinatorOriginUriValidator.java31 public interface CoordinatorOriginUriValidator extends Validator<Uri> { interface
44 CoordinatorOriginUriValidator VALIDATOR_NO_OP = (object, violations) -> {};
47 static CoordinatorOriginUriValidator createDisabledInstance() { in createDisabledInstance()
52 static CoordinatorOriginUriValidator createEnabledInstance(String allowlist) { in createEnabledInstance()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DMultiCloudSupportStrategyFactory.java30 import com.android.adservices.service.common.CoordinatorOriginUriValidator;
46 public CoordinatorOriginUriValidator getCoordinatorOriginUriValidator() { in getCoordinatorOriginUriValidator()
47 return CoordinatorOriginUriValidator.createEnabledInstance(mAllowlist); in getCoordinatorOriginUriValidator()
93 public CoordinatorOriginUriValidator getCoordinatorOriginUriValidator() { in getCoordinatorOriginUriValidator()
94 return CoordinatorOriginUriValidator.createDisabledInstance(); in getCoordinatorOriginUriValidator()
DMultiCloudSupportStrategy.java25 import com.android.adservices.service.common.CoordinatorOriginUriValidator;
35 CoordinatorOriginUriValidator getCoordinatorOriginUriValidator(); in getCoordinatorOriginUriValidator()
DGetAdSelectionDataRunner.java54 import com.android.adservices.service.common.CoordinatorOriginUriValidator;
126 @NonNull private final CoordinatorOriginUriValidator mCoordinatorOriginUriValidator;