/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/customaudience/ |
D | DBCustomAudienceTest.java | 70 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testFromServiceObject_success() 86 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testFromServiceObject_successNoFilters() 117 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testFromServiceObject_successNoRenderId() 149 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testFromServiceObject_successWIthRenderId() 168 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testFromServiceObject_successWithServerAuctionFlagsEnabled() 186 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testFromServiceObject_withServerAuctionFlags_serverAuctionFlagsDisabled_success() 201 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testFromServiceObject_nullCustomAudience() 218 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testFromServiceObject_nullCallerPackageName() 252 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testFromServiceObject_nullDefaultExpireIn() 269 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testFromServiceObject_nullConversionStrategy() [all …]
|
D | DBCustomAudienceBackgroundFetchDataTest.java | 53 .setEligibleUpdateTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testBuildFetchDataSuccess() 64 assertEquals(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, fetchData.getEligibleUpdateTime()); in testBuildFetchDataSuccess() 79 .setEligibleUpdateTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testBuildFetchDataDefaultFailuresSuccess() 88 assertEquals(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, fetchData.getEligibleUpdateTime()); in testBuildFetchDataDefaultFailuresSuccess() 120 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testCreateFetchDataSuccess() 131 assertEquals(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, fetchData.getEligibleUpdateTime()); in testCreateFetchDataSuccess() 146 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testCreateDebuggableFetchDataSuccess() 157 assertEquals(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, fetchData.getEligibleUpdateTime()); in testCreateDebuggableFetchDataSuccess()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/signals/ |
D | DBSignalsUpdateMetadataTest.java | 40 DBSignalsUpdateMetadata.create(buyer, CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI); in testCreateSignalsUpdateMetadata() 43 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testCreateSignalsUpdateMetadata() 53 .setLastSignalsUpdatedTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testBuildSignalsUpdateMetadata() 57 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testBuildSignalsUpdateMetadata() 76 .setLastSignalsUpdatedTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testEquals() 81 .setLastSignalsUpdatedTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testEquals() 93 .setLastSignalsUpdatedTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testNotEquals() 98 .setLastSignalsUpdatedTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testNotEquals() 109 .setLastSignalsUpdatedTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testHashCode() 114 .setLastSignalsUpdatedTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testHashCode()
|
D | ProtectedSignalsDaoTest.java | 168 .setCreationTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testTwoBuyers() 177 .setCreationTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testTwoBuyers() 199 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testInsertAndDelete() 205 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testInsertAndDelete() 210 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testInsertAndDelete() 216 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testInsertAndDelete() 231 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testDeleteSignalsBeforeTime() 239 .setLastSignalsUpdatedTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testDeleteSignalsBeforeTime() 249 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI)); in testDeleteSignalsBeforeTime() 253 .setLastSignalsUpdatedTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testDeleteSignalsBeforeTime() [all …]
|
D | DBProtectedSignalTest.java | 44 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testCreateSignal() 50 assertEquals(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, signal.getCreationTime()); in testCreateSignal() 62 .setCreationTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testBuildSignal() 69 assertEquals(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, signal.getCreationTime()); in testBuildSignal() 81 .setCreationTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testEqual() 90 .setCreationTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testEqual() 104 .setCreationTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testNotEqual() 113 .setCreationTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testNotEqual() 127 .setCreationTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testHashCode() 136 .setCreationTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testHashCode()
|
D | DBProtectedSignalFixture.java | 34 .setCreationTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in getBuilder() 42 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI.plus(Duration.ofDays(1)))
|
D | DBEncoderLogicFixture.java | 35 .setCreationTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in anEncoderLogicBuilder()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | AuctionServerCustomAudienceFiltererTest.java | 61 .setCreationTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in test_isValidCustomAudience_nullBiddingData_returnsFalse() 63 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in test_isValidCustomAudience_nullBiddingData_returnsFalse() 82 .setCreationTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in test_isValidCustomAudience_emptyBiddingKeyList_returnsFalse() 84 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in test_isValidCustomAudience_emptyBiddingKeyList_returnsFalse() 104 .setCreationTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in test_isValidCustomAudience_nullBiddingKeys_returnsFalse() 106 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in test_isValidCustomAudience_nullBiddingKeys_returnsFalse() 129 .setCreationTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in test_isValidCustomAudience_emptyBiddingKeys_returnsFalse() 131 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in test_isValidCustomAudience_emptyBiddingKeys_returnsFalse() 154 .setCreationTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in test_isValidCustomAudience_noAds_returnsFalse() 156 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in test_isValidCustomAudience_noAds_returnsFalse() [all …]
|
D | HistogramEventTest.java | 49 .setTimestamp(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testBuildValidHistogramEvent_success() 58 assertThat(event.getTimestamp()).isEqualTo(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI); in testBuildValidHistogramEvent_success() 72 .setTimestamp(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testBuildUnsetAdCounterKey_throws() 87 .setTimestamp(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testBuildUnsetBuyer_throws() 102 .setTimestamp(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testBuildUnsetCustomAudienceOwnerWithWinType_throws() 115 .setTimestamp(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testBuildUnsetCustomAudienceOwnerWithNonWinType_success() 124 assertThat(event.getTimestamp()).isEqualTo(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI); in testBuildUnsetCustomAudienceOwnerWithNonWinType_success() 138 .setTimestamp(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testBuildUnsetCustomAudienceNameWithWinType_throws() 151 .setTimestamp(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testBuildUnsetCustomAudienceNameWithNonWinType_success() 160 assertThat(event.getTimestamp()).isEqualTo(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI); in testBuildUnsetCustomAudienceNameWithNonWinType_success() [all …]
|
D | UpdateAdCounterHistogramWorkerTest.java | 132 eq(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI)); in testWorkerUpdatesHistogramAndNotifiesSuccess() 274 eq(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI)); in testWorkerInvalidArgumentFailureStopsAndNotifiesFailure() 313 eq(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI)); in testWorkerSuccessWithCallbackErrorLogsUnknownError() 361 eq(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI)); in testWorkerFailureWithCallbackErrorLogsUnknownError()
|
D | CustomAudienceBiddingInfoTest.java | 60 .setCreationTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) 61 .setLastAdsAndBiddingDataUpdatedTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI)
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/ |
D | DBHistogramEventDataTest.java | 51 .setTimestamp(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testBuildValidEventData_success() 61 .isEqualTo(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI); in testBuildValidEventData_success() 71 .setTimestamp(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testBuildUnsetRowId_success() 81 .isEqualTo(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI); in testBuildUnsetRowId_success() 92 .setTimestamp(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testBuildUnsetForeignKey_throws() 104 .setTimestamp(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testBuildUnsetAdEventType_throws() 129 .setTimestamp(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testBuildUnsetAdCounterKey_throws() 147 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testCreateValidEventData_success() 156 .isEqualTo(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI); in testCreateValidEventData_success() 167 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testCreateNullRowId_success() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/customaudience/ |
D | DBCustomAudienceFixture.java | 43 .setCreationTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in getValidBuilderByBuyer() 44 .setLastAdsAndBiddingDataUpdatedTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in getValidBuilderByBuyer() 60 .setCreationTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in getValidBuilderByBuyer() 61 .setLastAdsAndBiddingDataUpdatedTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in getValidBuilderByBuyer() 82 .setCreationTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in getValidBuilderByBuyerWithAdRenderId() 83 .setLastAdsAndBiddingDataUpdatedTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in getValidBuilderByBuyerWithAdRenderId() 98 .setCreationTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in getValidBuilderByBuyerNoFilters() 99 .setLastAdsAndBiddingDataUpdatedTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in getValidBuilderByBuyerNoFilters()
|
D | DBCustomAudienceBackgroundFetchDataFixture.java | 40 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in getValidBuilderByBuyer()
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/adselection/ |
D | HistogramEventFixture.java | 61 .setTimestamp(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI.minusSeconds(1)) 72 .setTimestamp(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI.minusSeconds(1)) 78 .setTimestamp(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI.minusSeconds(1)) 83 .setTimestamp(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI.plusSeconds(1)) 89 .setTimestamp(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI.plusSeconds(1)) 102 .setTimestamp(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in getValidHistogramEventBuilder()
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/customaudience/ |
D | FetchCustomAudienceFixture.java | 119 .setCreationTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in getFullSuccessfulDBCustomAudience() 120 .setLastAdsAndBiddingDataUpdatedTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in getFullSuccessfulDBCustomAudience() 144 .setCreationTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in getFullSuccessfulDBCustomAudienceWithAdRenderId() 145 .setLastAdsAndBiddingDataUpdatedTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in getFullSuccessfulDBCustomAudienceWithAdRenderId() 170 .setCreationTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in getFullSuccessfulDBCustomAudienceWithAuctionServerRequestFlags() 171 .setLastAdsAndBiddingDataUpdatedTime(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in getFullSuccessfulDBCustomAudienceWithAuctionServerRequestFlags()
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/customaudience/ |
D | CustomAudienceFixture.java | 54 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI; 56 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI.plus( 59 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI.plus( 69 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI.minusSeconds(DAY_IN_SECONDS); 75 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI.minusSeconds(DAY_IN_SECONDS); 77 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI.minusSeconds(DAY_IN_SECONDS * 72);
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/ |
D | CustomAudienceTimestampValidatorTest.java | 66 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testActivationTimeBeyondMaxAndExpireBeforeActivation() 143 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testNullActivationTimeWithExpireAfterMax() 144 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testNullActivationTimeWithExpireAfterMax() 174 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testNullExpirationTimeWithBeyondMaxActivationTime()
|
D | CustomAudienceImplTest.java | 119 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI); in testJoinCustomAudience_runNormally() 139 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI); in testJoinCustomAudience_withDevOptionsEnabled() 177 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI); in testJoinCustomAudienceWithServerAuctionFlags_runNormallyFlagEnabled() 217 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI); in testJoinCustomAudienceWithServerAuctionFlags_runNormallyFlagDisabled() 241 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI); in testJoinCustomAudienceWithSubdomains_runNormally() 281 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testJoinCustomAudienceWithSubdomains_runNormally()
|
D | CustomAudienceExpirationTimeValidatorTest.java | 20 import static android.adservices.common.CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI; 199 FIXED_NOW_TRUNCATED_TO_MILLI, in testValidator_exceedsExpiryLimit() 200 FIXED_NOW_TRUNCATED_TO_MILLI, in testValidator_exceedsExpiryLimit()
|
D | CustomAudienceActivationTimeValidatorTest.java | 20 import static android.adservices.common.CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI; 123 FIXED_NOW_TRUNCATED_TO_MILLI, in testValidator_exceedsDelayLimit()
|
/packages/modules/AdServices/adservices/tests/unittest/framework/src/com/android/adservices/ |
D | AdServicesParcelableUtilTest.java | 340 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testWriteInstantListToParcelThenRead_success() 341 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI.plusMillis(500)); in testWriteInstantListToParcelThenRead_success() 357 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, in testWriteInstantListToParcel_skipsErrors() 359 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI.plusMillis(500)); in testWriteInstantListToParcel_skipsErrors() 362 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI.toEpochMilli(), in testWriteInstantListToParcel_skipsErrors() 363 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI.plusMillis(500).toEpochMilli()); in testWriteInstantListToParcel_skipsErrors()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | FledgeMaintenanceTasksWorkerTests.java | 114 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI.minusSeconds( in testClearExpiredAdSelectionData_removesExpiredData() 178 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI.minusSeconds( in testClearExpiredAdSelectionData_serverAuctionDisabled_doesntClearDataFromUnifiedFlow() 246 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI.minusSeconds( in testClearExpiredAdSelectionData_serverAuctionDisabled_unifiedTablesEnabled_ClearsUnifiedTables() 292 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI.minusSeconds( in testClearExpiredFrequencyCapHistogramData_adFilteringEnabled_doesMaintenance() 334 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI.minusSeconds( in testClearExpiredFrequencyCapHistogramData_enrollmentDisabled_skipsBuyerMaintenance() 415 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI.minusSeconds( in testClearExpiredAdSelectionDataDebugReportingDisabledDoesNotClearDebugReportData()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/shell/customaudience/ |
D | CustomAudienceHelperTest.java | 64 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testCustomAudienceFromJson_happyPath() 70 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI) in testCustomAudienceFromJson_happyPath() 93 .isEqualTo(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI); in testCustomAudienceFromJson_happyPath() 95 .isEqualTo(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI); in testCustomAudienceFromJson_happyPath()
|
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/adselection/ |
D | SetAdCounterHistogramOverrideRequestTest.java | 41 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, 42 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI.plusMillis(500));
|