Home
last modified time | relevance | path

Searched refs:DECISION_LOGIC_JS (Results 1 – 9 of 9) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/
DDBAdSelectionOverrideTest.java30 private static final String DECISION_LOGIC_JS = "function test() { return \"hello world\"; }"; field in DBAdSelectionOverrideTest
46 .setDecisionLogicJS(DECISION_LOGIC_JS) in testBuildDBAdSelectionOverride()
52 assertEquals(DECISION_LOGIC_JS, dbAdSelectionOverride.getDecisionLogicJS()); in testBuildDBAdSelectionOverride()
63 .setDecisionLogicJS(DECISION_LOGIC_JS) in testThrowsExceptionWithNoAdSelectionId()
76 .setDecisionLogicJS(DECISION_LOGIC_JS) in testThrowsExceptionWithNoAppPackageName()
102 .setDecisionLogicJS(DECISION_LOGIC_JS) in testThrowsExceptionWithNoTrustedScoringSignals()
113 DECISION_LOGIC_JS, in testDBAdSelectionOverrideCreate()
118 assertEquals(DECISION_LOGIC_JS, dbAdSelectionOverride.getDecisionLogicJS()); in testDBAdSelectionOverrideCreate()
DDBBuyerDecisionOverrideTest.java35 private static final String DECISION_LOGIC_JS = field in DBBuyerDecisionOverrideTest
46 .setDecisionLogic(DECISION_LOGIC_JS) in testBuildDBBuyerDecisionOverride()
53 assertEquals(DECISION_LOGIC_JS, override.getDecisionLogic()); in testBuildDBBuyerDecisionOverride()
61 AD_SELECTION_CONFIG_ID, APP_PACKAGE_NAME, BUYER, DECISION_LOGIC_JS); in testDBBuyerDecisionOverrideCreate()
65 assertEquals(DECISION_LOGIC_JS, override.getDecisionLogic()); in testDBBuyerDecisionOverrideCreate()
76 .setDecisionLogic(DECISION_LOGIC_JS) in testThrowsExceptionWithNoAdSelectionId()
89 .setDecisionLogic(DECISION_LOGIC_JS) in testThrowsExceptionWithNoAppPackageName()
101 .setDecisionLogic(DECISION_LOGIC_JS) in testThrowsExceptionWithNoBuyer()
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/
DAddAdSelectionOverrideRequestTest.java40 private static final String DECISION_LOGIC_JS = "function test() { return \"hello world\"; }"; field in AddAdSelectionOverrideRequestTest
47 private static final DecisionLogic DECISION_LOGIC = new DecisionLogic(DECISION_LOGIC_JS);
64 DECISION_LOGIC_JS, in testBuildsAddAdSelectionOverrideRequest()
68 assertThat(request.getDecisionLogicJs()).isEqualTo(DECISION_LOGIC_JS); in testBuildsAddAdSelectionOverrideRequest()
DAdSelectionOverrideRequestTest.java37 private static final String DECISION_LOGIC_JS = "function test() { return \"hello world\"; }"; field in AdSelectionOverrideRequestTest
53 AD_SELECTION_CONFIG, DECISION_LOGIC_JS, TRUSTED_SCORING_SIGNALS); in testBuildValidAddAdSelectionOverrideRequestSuccess()
56 assertEquals(request.getDecisionLogicJs(), DECISION_LOGIC_JS); in testBuildValidAddAdSelectionOverrideRequestSuccess() local
DPerBuyerDecisionLogicTest.java43 private static final String DECISION_LOGIC_JS = "function test() { return \"hello world\"; }"; field in PerBuyerDecisionLogicTest
44 private static final DecisionLogic DECISION_LOGIC = new DecisionLogic(DECISION_LOGIC_JS);
DTestAdSelectionManagerTest.java83 private static final String DECISION_LOGIC_JS = "function test() { return \"hello world\"; }"; field in TestAdSelectionManagerTest
191 AD_SELECTION_CONFIG, DECISION_LOGIC_JS, TRUSTED_SCORING_SIGNALS); in testAddOverrideFailsWithDebugModeDisabled()
339 AD_SELECTION_FROM_OUTCOMES_CONFIG, DECISION_LOGIC_JS, SELECTION_SIGNALS); in testAddFromOutcomesOverrideFailsWithDebugModeDisabled()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/devapi/
DAdSelectionDevOverridesHelperTest.java50 private static final String DECISION_LOGIC_JS = "function test() {return 'hello';}"; field in AdSelectionDevOverridesHelperTest
61 .setDecisionLogicJS(DECISION_LOGIC_JS)
69 .setDecisionLogic(DECISION_LOGIC_JS)
123 .isEqualTo(DECISION_LOGIC_JS); in testGetDecisionLogicOverrideFindsMatchingOverride()
128 .containsEntry(CommonFixture.VALID_BUYER_1, DECISION_LOGIC_JS); in testGetDecisionLogicOverrideFindsMatchingOverride()
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/debuggablects/
DAdSelectionManagerDebuggableTest.java46 private static final String DECISION_LOGIC_JS = "function test() { return \"hello world\"; }"; field in AdSelectionManagerDebuggableTest
92 AD_SELECTION_CONFIG, DECISION_LOGIC_JS, TRUSTED_SCORING_SIGNALS); in testAddOverrideSucceeds()
121 AD_SELECTION_CONFIG, DECISION_LOGIC_JS, TRUSTED_SCORING_SIGNALS); in testRemoveExistingOverrideSucceeds()
/packages/modules/AdServices/adservices/tests/cts/endtoends/customaudience/src/com/android/adservices/tests/cts/customaudience/
DCustomAudienceTest.java148 private static final String DECISION_LOGIC_JS = field in CustomAudienceTest
661 return new MockResponse().setBody(DECISION_LOGIC_JS); in getMockWebServer()