Skip to content

Commit

Permalink
Merge branch 'account/ccpa/enabled_old' into test
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/main/java/org/prebid/server/auction/PrivacyEnforcementService.java
  • Loading branch information
nickluck8 committed Aug 10, 2021
1 parent 112d881 commit 1bf9779
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down Expand Up @@ -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)));
Expand Down Expand Up @@ -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)));
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 1bf9779

Please sign in to comment.