/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/ |
D | AdSelectionEntryDaoTest.java | 86 private static final long AD_SELECTION_ID_1 = 1; field in AdSelectionEntryDaoTest 115 .setAdSelectionId(AD_SELECTION_ID_1) 127 .setAdSelectionId(AD_SELECTION_ID_1) 140 .setAdSelectionId(AD_SELECTION_ID_1) 176 .setAdSelectionId(AD_SELECTION_ID_1) 289 .setAdSelectionId(AD_SELECTION_ID_1) 296 .setAdSelectionId(AD_SELECTION_ID_1) 303 .setAdSelectionId(AD_SELECTION_ID_1) 311 .setAdSelectionId(AD_SELECTION_ID_1) 347 .setAdSelectionId(AD_SELECTION_ID_1) [all …]
|
D | DBReportingDataTest.java | 32 private static final long AD_SELECTION_ID_1 = 1L; field in DBReportingDataTest 51 .setAdSelectionId(AD_SELECTION_ID_1) in testBuild_success() 56 assertEquals(AD_SELECTION_ID_1, reportingData.getAdSelectionId()); in testBuild_success() 65 AD_SELECTION_ID_1, SELLER_REPORTING_URI_1, BUYER_REPORTING_URI_1); in testCreate_success() 67 assertEquals(AD_SELECTION_ID_1, reportingData.getAdSelectionId()); in testCreate_success() 76 .setAdSelectionId(AD_SELECTION_ID_1) in testBuild_sellerEmptyUri_success() 81 assertEquals(AD_SELECTION_ID_1, reportingData.getAdSelectionId()); in testBuild_sellerEmptyUri_success() 90 .setAdSelectionId(AD_SELECTION_ID_1) in testBuild_buyerEmptyUri_success() 95 assertEquals(AD_SELECTION_ID_1, reportingData.getAdSelectionId()); in testBuild_buyerEmptyUri_success() 103 DBReportingData.create(AD_SELECTION_ID_1, Uri.EMPTY, BUYER_REPORTING_URI_1); in testCreate_sellerEmptyUri_success() [all …]
|
D | DBAdSelectionInitializationTest.java | 35 private static final long AD_SELECTION_ID_1 = 1L; field in DBAdSelectionInitializationTest 59 .setAdSelectionId(AD_SELECTION_ID_1) in testBuild_unsetCreationInstant_throwsISE() 69 .setAdSelectionId(AD_SELECTION_ID_1) in testBuild_allFieldsSet_success() 75 assertEquals(AD_SELECTION_ID_1, dbAdSelectionInitialization.getAdSelectionId()); in testBuild_allFieldsSet_success() 89 AD_SELECTION_ID_1, in testCreate_nullCreationInstant_throwsNPE() 100 AD_SELECTION_ID_1, in testCreate_allFieldsSet_success() 105 assertEquals(AD_SELECTION_ID_1, dbAdSelectionInitialization.getAdSelectionId()); in testCreate_allFieldsSet_success()
|
D | DBAdSelectionResultTest.java | 34 private static final long AD_SELECTION_ID_1 = 1L; field in DBAdSelectionResultTest 52 .setAdSelectionId(AD_SELECTION_ID_1) in testBuild_withoutWinningCustomAudience_success() 58 assertEquals(AD_SELECTION_ID_1, result.getAdSelectionId()); in testBuild_withoutWinningCustomAudience_success() 75 .setAdSelectionId(AD_SELECTION_ID_1) in testBuild_withWinningCustomAudience_success() 82 assertEquals(AD_SELECTION_ID_1, result.getAdSelectionId()); in testBuild_withWinningCustomAudience_success()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/kanon/ |
D | KAnonMessageEntityTest.java | 33 private static final long AD_SELECTION_ID_1 = 1; field in KAnonMessageEntityTest 45 .setAdSelectionId(AD_SELECTION_ID_1) in testBuilderKAnonMessageEntity_buildsSuccessfully() 55 assertThat(kAnonMessageEntity.getAdSelectionId()).isEqualTo(AD_SELECTION_ID_1); in testBuilderKAnonMessageEntity_buildsSuccessfully() 66 .setAdSelectionId(AD_SELECTION_ID_1) in testBuilderKAnonMessageEntity_withoutMessageId_buildsSuccessfully() 75 assertThat(kAnonMessageEntity.getAdSelectionId()).isEqualTo(AD_SELECTION_ID_1); in testBuilderKAnonMessageEntity_withoutMessageId_buildsSuccessfully() 82 .setAdSelectionId(AD_SELECTION_ID_1) in testBuilderKAnonMessageEntity_withoutClientExpiryInstant_buildsSuccessfully() 89 assertThat(kAnonMessageEntity.getAdSelectionId()).isEqualTo(AD_SELECTION_ID_1); in testBuilderKAnonMessageEntity_withoutClientExpiryInstant_buildsSuccessfully() 99 .setAdSelectionId(AD_SELECTION_ID_1) in testBuilderKAnonMessageEntity_withoutHashSet_throwsError() 113 .setAdSelectionId(AD_SELECTION_ID_1) in testBuilderKAnonMessageEntity_withoutStatus_throwsError()
|
D | KAnonMessageManagerTest.java | 56 private static final long AD_SELECTION_ID_1 = 1; field in KAnonMessageManagerTest 64 .setAdSelectionId(AD_SELECTION_ID_1) 83 .setAdSelectionId(AD_SELECTION_ID_1) 154 assertThat(AD_SELECTION_ID_1).isIn(fetchedAdSelectionIds); in testFetchNKAnonMessagesWithStatus_shouldFetchListOfCorrectMessages() 167 assertThat(fetchedKAnonMessage.get(0).getAdSelectionId()).isEqualTo(AD_SELECTION_ID_1); in testFetchKAnonMessagesWithMessage_shouldFetchCorrectMessage()
|
D | KAnonSignJoinBackgroundJobWorkerTest.java | 64 private static final long AD_SELECTION_ID_1 = 1; field in KAnonSignJoinBackgroundJobWorkerTest 69 .setAdSelectionId(AD_SELECTION_ID_1)
|
D | KAnonSignJoinManagerTest.java | 87 private static final long AD_SELECTION_ID_1 = 1; field in KAnonSignJoinManagerTest 91 .setAdSelectionId(AD_SELECTION_ID_1) 97 .setAdSelectionId(AD_SELECTION_ID_1)
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/kanon/ |
D | DBKAnonMessageTest.java | 30 private static final long AD_SELECTION_ID_1 = 1; field in DBKAnonMessageTest 41 .setAdSelectionId(AD_SELECTION_ID_1) in testBuildKAnonMessage_validMessage_buildsSuccessfully() 52 assertThat(dbkAnonMessage.getAdSelectionId()).isEqualTo(AD_SELECTION_ID_1); in testBuildKAnonMessage_validMessage_buildsSuccessfully() 66 .setAdSelectionId(AD_SELECTION_ID_1) in testBuildKAnonMessage_unsetMessageId_buildsSuccessfully() 76 assertThat(dbkAnonMessage.getAdSelectionId()).isEqualTo(AD_SELECTION_ID_1); in testBuildKAnonMessage_unsetMessageId_buildsSuccessfully() 90 .setAdSelectionId(AD_SELECTION_ID_1) in testBuildKAnonMessage_unsetCreatedAt_throwsError() 103 .setAdSelectionId(AD_SELECTION_ID_1) in testBuildKAnonMessage_unsetKAnonHashSet_throwsError() 118 .setAdSelectionId(AD_SELECTION_ID_1) in testBuildKAnonMessage_unsetExpiryInstant_throwsError() 132 .setAdSelectionId(AD_SELECTION_ID_1) in testBuildKAnonMessage_unsetStatus_throwsError()
|
D | KAnonMessageDaoTest.java | 38 private static final long AD_SELECTION_ID_1 = 1; field in KAnonMessageDaoTest 45 .setAdSelectionId(AD_SELECTION_ID_1) 209 .setAdSelectionId(AD_SELECTION_ID_1) in testRemoveExpiredEntities_removesExpiredEntities() 219 .setAdSelectionId(AD_SELECTION_ID_1) in testRemoveExpiredEntities_removesExpiredEntities() 229 .setAdSelectionId(AD_SELECTION_ID_1) in testRemoveExpiredEntities_removesExpiredEntities() 238 .setAdSelectionId(AD_SELECTION_ID_1) in testRemoveExpiredEntities_removesExpiredEntities()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | AdSelectionFromOutcomesE2ETest.java | 184 private static final long AD_SELECTION_ID_1 = 12345L; field in AdSelectionFromOutcomesE2ETest 408 AD_SELECTION_ID_1, 10.0, in testSelectAdsFromOutcomesPickHighestSuccess() 415 List.of(AD_SELECTION_ID_1, AD_SELECTION_ID_2, AD_SELECTION_ID_3), in testSelectAdsFromOutcomesPickHighestSuccess() 468 AD_SELECTION_ID_1, 10.0, in testSelectAdsFromOutcomesPickHighestSuccessDifferentTables() 555 AD_SELECTION_ID_1, 10.0, in testSelectAdsFromOutcomesPickHighestSuccessUnifiedTables() 562 List.of(AD_SELECTION_ID_1, AD_SELECTION_ID_2, AD_SELECTION_ID_3), in testSelectAdsFromOutcomesPickHighestSuccessUnifiedTables() 640 Map<Long, Double> adSelectionIdToBidMap = Map.of(AD_SELECTION_ID_1, 10.0); in testSelectAdsFromOutcomesWaterfallMediationAdBidHigherThanBidFloorSuccess() 645 Collections.singletonList(AD_SELECTION_ID_1), in testSelectAdsFromOutcomesWaterfallMediationAdBidHigherThanBidFloorSuccess() 655 assertEquals(resultsCallback.mAdSelectionResponse.getAdSelectionId(), AD_SELECTION_ID_1); in testSelectAdsFromOutcomesWaterfallMediationAdBidHigherThanBidFloorSuccess() local 687 Map<Long, Double> adSelectionIdToBidMap = Map.of(AD_SELECTION_ID_1, 10.0); in testSelectAdsFromOutcomesWaterfallMediationPrebuiltUriSuccess() [all …]
|
D | OutcomeSelectionRunnerTest.java | 104 private static final long AD_SELECTION_ID_1 = 1; field in OutcomeSelectionRunnerTest 112 .setAdSelectionId(AD_SELECTION_ID_1) 323 doAnswer((ignored) -> getSelectedOutcomeWithDelay(AD_SELECTION_ID_1, mFlags)) in testRunOutcomeSelectionOrchestrationTimeoutFailure()
|
D | AdSelectionScriptEngineTest.java | 173 private static final long AD_SELECTION_ID_1 = 12345L; field in AdSelectionScriptEngineTest 182 .setAdSelectionId(AD_SELECTION_ID_1)
|
D | AdSelectionServiceImplTest.java | 239 private static final long AD_SELECTION_ID_1 = 12345L; field in AdSelectionServiceImplTest 10015 AD_SELECTION_ID_1, 10.0, in testOverrideAdSelectionConfigRemoteOverridesSuccess() 10022 List.of(AD_SELECTION_ID_1, AD_SELECTION_ID_2, AD_SELECTION_ID_3), in testOverrideAdSelectionConfigRemoteOverridesSuccess() 10088 assertEquals(AD_SELECTION_ID_1, selectionCallback.mAdSelectionResponse.getAdSelectionId()); in testOverrideAdSelectionConfigRemoteOverridesSuccess()
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/adselection/ |
D | DataHandlersFixture.java | 50 public static final long AD_SELECTION_ID_1 = 1L; field in DataHandlersFixture 96 .setAdSelectionId(AD_SELECTION_ID_1) 111 getAdSelectionResultBidAndUri(AD_SELECTION_ID_1, WIN_BID_1, WIN_RENDER_URI_1); 134 .setAdSelectionId(AD_SELECTION_ID_1) 147 .setAdSelectionId(AD_SELECTION_ID_1)
|