diff --git a/src/main/java/org/prebid/server/auction/PrivacyEnforcementService.java b/src/main/java/org/prebid/server/auction/PrivacyEnforcementService.java index 24921fce13a..00db1076012 100644 --- a/src/main/java/org/prebid/server/auction/PrivacyEnforcementService.java +++ b/src/main/java/org/prebid/server/auction/PrivacyEnforcementService.java @@ -10,9 +10,8 @@ import io.vertx.core.http.HttpServerRequest; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.ListUtils; -import org.apache.commons.lang3.BooleanUtils; -import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.ObjectUtils; +import org.apache.commons.lang3.StringUtils; import org.prebid.server.auction.model.AuctionContext; import org.prebid.server.auction.model.BidderPrivacyResult; import org.prebid.server.auction.model.IpAddress; @@ -38,7 +37,6 @@ import org.prebid.server.settings.model.AccountCcpaConfig; import org.prebid.server.settings.model.AccountGdprConfig; import org.prebid.server.settings.model.EnabledForRequestType; -import org.prebid.server.util.HttpUtil; import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; diff --git a/src/test/java/org/prebid/server/auction/PrivacyEnforcementServiceTest.java b/src/test/java/org/prebid/server/auction/PrivacyEnforcementServiceTest.java index a0d7ea89abe..6fd41eb9fe8 100644 --- a/src/test/java/org/prebid/server/auction/PrivacyEnforcementServiceTest.java +++ b/src/test/java/org/prebid/server/auction/PrivacyEnforcementServiceTest.java @@ -453,7 +453,8 @@ public void shouldMaskForCcpaWhenUsPolicyIsValidAndCoppaIsZero() { public void shouldMaskForCcpaWhenAccountHasCppaConfigEnabledForRequestType() { // given privacyEnforcementService = new PrivacyEnforcementService( - bidderCatalog, privacyExtractor, tcfDefinerService, ipAddressHelper, metrics, false); + bidderCatalog, privacyExtractor, tcfDefinerService, implicitParametersExtractor, ipAddressHelper, + metrics, true, false); given(tcfDefinerService.resultForBidderNames(anySet(), any(), any(), any())) .willReturn(Future.succeededFuture(TcfResponse.of(true, emptyMap(), null))); @@ -502,7 +503,8 @@ public void shouldMaskForCcpaWhenAccountHasCppaConfigEnabledForRequestType() { public void shouldMaskForCcpaWhenAccountHasCppaEnforcedTrue() { // given privacyEnforcementService = new PrivacyEnforcementService( - bidderCatalog, privacyExtractor, tcfDefinerService, ipAddressHelper, metrics, false); + bidderCatalog, privacyExtractor, tcfDefinerService, implicitParametersExtractor, ipAddressHelper, + metrics, true, false); given(tcfDefinerService.resultForBidderNames(anySet(), any(), any(), any())) .willReturn(Future.succeededFuture(TcfResponse.of(true, emptyMap(), null))); @@ -547,7 +549,8 @@ public void shouldMaskForCcpaWhenAccountHasCppaEnforcedTrue() { public void shouldMaskForCcpaWhenAccountHasCcpaConfigEnabled() { // given privacyEnforcementService = new PrivacyEnforcementService( - bidderCatalog, privacyExtractor, tcfDefinerService, ipAddressHelper, metrics, false); + bidderCatalog, privacyExtractor, tcfDefinerService, implicitParametersExtractor, ipAddressHelper, + metrics, true, false); given(tcfDefinerService.resultForBidderNames(anySet(), any(), any(), any())) .willReturn(Future.succeededFuture(TcfResponse.of(true, emptyMap(), null))); @@ -1475,7 +1478,8 @@ public void isCcpaEnforcedShouldReturnFalseWhenEnforcedPropertyIsTrue() { public void isCcpaEnforcedShouldReturnFalseWhenAccountCcpaConfigHasEnabledTrue() { // given privacyEnforcementService = new PrivacyEnforcementService( - bidderCatalog, privacyExtractor, tcfDefinerService, ipAddressHelper, metrics, false); + bidderCatalog, privacyExtractor, tcfDefinerService, implicitParametersExtractor, ipAddressHelper, + metrics, true, false); final Ccpa ccpa = Ccpa.of("1YYY"); final Account account = Account.builder().ccpa(AccountCcpaConfig.builder().enabled(true).build()).build();