/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/ |
D | CustomAudienceUpdatableDataTest.java | 74 .setAttemptedUpdateTime(CommonFixture.FIXED_NOW) in testBuildUpdatableDataSuccess() 85 assertEquals(CommonFixture.FIXED_NOW, updatableDataFromBuilder.getAttemptedUpdateTime()); in testBuildUpdatableDataSuccess() 100 CommonFixture.FIXED_NOW, in testBuildUpdatableDataSuccess() 126 .setAttemptedUpdateTime(CommonFixture.FIXED_NOW) in testBuildUpdatableDataSuccessWithAuctionServerFlagsEnabled() 138 assertEquals(CommonFixture.FIXED_NOW, updatableDataFromBuilder.getAttemptedUpdateTime()); in testBuildUpdatableDataSuccessWithAuctionServerFlagsEnabled() 157 CommonFixture.FIXED_NOW, in testBuildUpdatableDataSuccessWithAuctionServerFlagsEnabled() 184 .setAttemptedUpdateTime(CommonFixture.FIXED_NOW) in testBuildUpdatableDataSuccessWithJunkWithAuctionServerFlagsEnabled() 196 assertEquals(CommonFixture.FIXED_NOW, updatableDataFromBuilder.getAttemptedUpdateTime()); in testBuildUpdatableDataSuccessWithJunkWithAuctionServerFlagsEnabled() 216 CommonFixture.FIXED_NOW, in testBuildUpdatableDataSuccessWithJunkWithAuctionServerFlagsEnabled() 242 .setAttemptedUpdateTime(CommonFixture.FIXED_NOW) in testBuildUpdatableDataSuccessWithAuctionServerFlagsDisabled() [all …]
|
D | BackgroundFetchWorkerTest.java | 282 .setEligibleUpdateTime(CommonFixture.FIXED_NOW) in testRunBackgroundFetchThrowsTimeoutDuringUpdates() 320 CommonFixture.FIXED_NOW, 1) 325 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW); 356 CommonFixture.FIXED_NOW, 1) 361 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW); 386 .setEligibleUpdateTime(CommonFixture.FIXED_NOW) 398 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW); 423 .setEligibleUpdateTime(CommonFixture.FIXED_NOW); 436 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW); 465 .setEligibleUpdateTime(CommonFixture.FIXED_NOW); [all …]
|
D | BackgroundFetchRunnerTest.java | 155 mBackgroundFetchRunnerSpy.deleteExpiredCustomAudiences(CommonFixture.FIXED_NOW); in testDeleteExpiredCustomAudiences() 157 verify(mCustomAudienceDaoMock).deleteAllExpiredCustomAudienceData(CommonFixture.FIXED_NOW); in testDeleteExpiredCustomAudiences() 276 Instant originalEligibleUpdateTime = CommonFixture.FIXED_NOW.minusMillis(60L * 1000L); in testUpdateCustomAudienceWithEmptyUpdate() 280 CommonFixture.FIXED_NOW, mFlags); in testUpdateCustomAudienceWithEmptyUpdate() 295 .updateCustomAudience(CommonFixture.FIXED_NOW, originalFetchData) in testUpdateCustomAudienceWithEmptyUpdate() 314 Instant originalEligibleUpdateTime = CommonFixture.FIXED_NOW.minusMillis(60L * 1000L); in testUpdateCustomAudienceWithFailedUpdate() 330 .updateCustomAudience(CommonFixture.FIXED_NOW, originalFetchData) in testUpdateCustomAudienceWithFailedUpdate() 354 CommonFixture.FIXED_NOW, in testFetchAndValidateSuccessfulEmptyCustomAudienceUpdatableData() 382 CommonFixture.FIXED_NOW, in testFetchAndValidateSuccessfulFullCustomAudienceUpdatableData() 444 CommonFixture.FIXED_NOW, in testFetchAndValidateSuccessfulFullCustomAudienceUpdatableDataWithAuctionServerRequestFlagsEnabled() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/signals/ |
D | DBEncoderEndpointTest.java | 42 buyer, CommonFixture.getUri(buyer, PATH), CommonFixture.FIXED_NOW); in testCreateEndPoint() 45 assertEquals(CommonFixture.FIXED_NOW, endpoint.getCreationTime()); in testCreateEndPoint() 55 .setCreationTime(CommonFixture.FIXED_NOW) in testBuildEndPoint() 59 assertEquals(CommonFixture.FIXED_NOW, endpoint.getCreationTime()); in testBuildEndPoint() 78 .setCreationTime(CommonFixture.FIXED_NOW) in testEquals() 84 .setCreationTime(CommonFixture.FIXED_NOW) in testEquals() 97 .setCreationTime(CommonFixture.FIXED_NOW) in testNotEquals() 103 .setCreationTime(CommonFixture.FIXED_NOW) in testNotEquals() 115 .setCreationTime(CommonFixture.FIXED_NOW) in testHashCode() 121 .setCreationTime(CommonFixture.FIXED_NOW) in testHashCode()
|
D | DBEncoderLogicMetadataTest.java | 42 Instant time = CommonFixture.FIXED_NOW; in testCreateEncodingLogic() 57 Instant time = CommonFixture.FIXED_NOW; in testBuildEncodingLogic() 86 Instant time = CommonFixture.FIXED_NOW; in testEquals() 111 Instant time = CommonFixture.FIXED_NOW; in testNotEquals() 136 Instant time = CommonFixture.FIXED_NOW; in testHashCode()
|
D | DBEncodedPayloadTest.java | 42 Instant time = CommonFixture.FIXED_NOW; in testCreateEncodedPayload() 56 Instant time = CommonFixture.FIXED_NOW; in testBuildEncodedPayload()
|
D | ProtectedSignalsDatabaseMigrationTest.java | 95 contentValuesV2.put("creation_time", CommonFixture.FIXED_NOW.toEpochMilli()); in testMigration2To3() 110 contentValuesV3.put("creation_time", CommonFixture.FIXED_NOW.toEpochMilli()); in testMigration2To3()
|
D | DBEncodedPayloadFixture.java | 38 .setCreationTime(CommonFixture.FIXED_NOW) in anEncodedPayloadBuilder()
|
D | DBEncoderEndpointFixture.java | 39 .setCreationTime(CommonFixture.FIXED_NOW); in anEndpointBuilder()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/customaudience/ |
D | DBCustomAudienceBackgroundFetchDataTest.java | 167 CommonFixture.FIXED_NOW.plusSeconds( in testComputeNextEligibleUpdateTimeWithInputFlags() 173 CommonFixture.FIXED_NOW, testFlags); in testComputeNextEligibleUpdateTimeWithInputFlags() 183 CommonFixture.FIXED_NOW.plusSeconds(configuredBaseIntervalS); in testComputeNextEligibleUpdateTimeWithPhFlags() 188 CommonFixture.FIXED_NOW, flags); in testComputeNextEligibleUpdateTimeWithPhFlags() 205 .setEligibleUpdateTime(CommonFixture.FIXED_NOW) in testCopyWithFullSuccessfulUpdatableDataResetsFailureCounts() 210 Instant attemptedUpdateTime = CommonFixture.FIXED_NOW.plusSeconds(10); in testCopyWithFullSuccessfulUpdatableDataResetsFailureCounts() 236 .setEligibleUpdateTime(CommonFixture.FIXED_NOW) in testCopyWithFailedUpdatableDataUpdatesValidationFailureCount() 241 Instant attemptedUpdateTime = CommonFixture.FIXED_NOW.plusSeconds(10); in testCopyWithFailedUpdatableDataUpdatesValidationFailureCount() 267 .setEligibleUpdateTime(CommonFixture.FIXED_NOW) in testCopyWithResponseValidationFailureUpdatesValidationFailureCount() 272 Instant attemptedUpdateTime = CommonFixture.FIXED_NOW.plusSeconds(10); in testCopyWithResponseValidationFailureUpdatesValidationFailureCount() [all …]
|
D | DBPartialCustomAudienceTest.java | 33 private static final Instant VALID_ACTIVATION_TIME = CommonFixture.FIXED_NOW;
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/ |
D | ProtectedSignalsArgumentUtilTest.java | 48 public static final Instant FIXED_NOW = CommonFixture.FIXED_NOW; field in ProtectedSignalsArgumentUtilTest 73 + FIXED_NOW.getEpochSecond() in testJSArgument() 95 + FIXED_NOW.getEpochSecond() in testSingleSignal() 130 + FIXED_NOW.getEpochSecond() in testMultipleSignals() 135 + FIXED_NOW.getEpochSecond() in testMultipleSignals() 139 + FIXED_NOW.getEpochSecond() in testMultipleSignals() 153 .setCreationTime(FIXED_NOW) in handleEmptyValue() 161 + FIXED_NOW.getEpochSecond() in handleEmptyValue() 172 .setCreationTime(FIXED_NOW) in generateSignal()
|
D | ProtectedSignalTest.java | 40 .setCreationTime(CommonFixture.FIXED_NOW) in testCreateProtectedSignal() 44 assertEquals(CommonFixture.FIXED_NOW, signal.getCreationTime()); in testCreateProtectedSignal()
|
D | SignalsMaintenanceTasksWorkerTest.java | 77 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW); in setup() 78 mNow = CommonFixture.FIXED_NOW; in setup() 79 mExpirationTime = CommonFixture.FIXED_NOW.minusSeconds(ProtectedSignal.EXPIRATION_SECONDS); in setup()
|
D | ProtectedSignalsFixture.java | 30 private static final Instant NOW = CommonFixture.FIXED_NOW;
|
D | UpdateProcessingOrchestratorTest.java | 77 private static final Instant NOW = CommonFixture.FIXED_NOW; 402 .setCreationTime(CommonFixture.FIXED_NOW) in createSignal() 413 .setCreationTime(CommonFixture.FIXED_NOW) in createSignal()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/ |
D | AdSelectionDebugReportDaoTest.java | 21 import static android.adservices.common.CommonFixture.FIXED_NOW; 47 DBAdSelectionDebugReport.create(null, DEBUG_URI, false, FIXED_NOW.toEpochMilli()); 71 DBAdSelectionDebugReport.create(1234L, DEBUG_URI, true, FIXED_NOW.toEpochMilli()); in testPersistAdSelectionDebugReportingHandlesDuplicateEntries() 77 mAdSelectionDebugReportDao.getDebugReportsBeforeTime(FIXED_NOW, 1); in testPersistAdSelectionDebugReportingHandlesDuplicateEntries() 89 mAdSelectionDebugReportDao.getDebugReportsBeforeTime(FIXED_NOW, 1); in testGetDebugReportsBeforeTime() 120 mAdSelectionDebugReportDao.deleteDebugReportsBeforeTime(FIXED_NOW); in testDeleteDebugReportsBeforeTime() 143 mAdSelectionDebugReportDao.getDebugReportsBeforeTime(FIXED_NOW, largeLimit); in testGetDebugReportsBeforeTimeHonorsLimit() 145 mAdSelectionDebugReportDao.getDebugReportsBeforeTime(FIXED_NOW, lowLimit); in testGetDebugReportsBeforeTimeHonorsLimit() 147 mAdSelectionDebugReportDao.getDebugReportsBeforeTime(FIXED_NOW, zeroLimit); in testGetDebugReportsBeforeTimeHonorsLimit()
|
D | ConsentedDebugConfigurationDaoTest.java | 19 import static android.adservices.common.CommonFixture.FIXED_NOW; 46 private static final Instant CREATION_TIMESTAMP = FIXED_NOW; 78 FIXED_NOW, 1); in testGetAllActiveConsentedDebugConfigurations() 116 FIXED_NOW, 1); in testGetAllActiveConsentedDebugConfigurations_fetchesRecentlyCreated() 148 FIXED_NOW, 1); in testGetAllActiveConsentedDebugConfigurations_doesNotFetchExpiredEntries() 161 FIXED_NOW, 1); in testDeleteAllConsentedDebugConfigurations() 165 FIXED_NOW, 1); in testDeleteAllConsentedDebugConfigurations() 196 FIXED_NOW, largeLimit); in testDeleteExistingConsentedDebugConfigurationsAndPersist() 201 FIXED_NOW, largeLimit); in testDeleteExistingConsentedDebugConfigurationsAndPersist()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | AdCounterHistogramUpdaterImplTest.java | 335 CommonFixture.FIXED_NOW)); in testUpdateNonWinHistogram_nullCallerPackageNameThrows() 347 CommonFixture.FIXED_NOW)); in testUpdateNonWinHistogram_invalidAdEventTypeThrows() 359 CommonFixture.FIXED_NOW)); in testUpdateNonWinHistogram_winAdEventTypeThrows() 384 CommonFixture.FIXED_NOW); in testUpdateNonWinHistogram_missingAdSelectionStops() 399 CommonFixture.FIXED_NOW); in testUpdateNonWinHistogram_nullAdCounterKeysStops() 416 CommonFixture.FIXED_NOW); in testUpdateNonWinHistogram_withAdCounterKeysPersists() 422 .setTimestamp(CommonFixture.FIXED_NOW) in testUpdateNonWinHistogram_withAdCounterKeysPersists() 459 CommonFixture.FIXED_NOW); in testUpdateNonWinHistogram_withAdCounterKeysPersists_auctionServerOff() 465 .setTimestamp(CommonFixture.FIXED_NOW) in testUpdateNonWinHistogram_withAdCounterKeysPersists_auctionServerOff() 506 CommonFixture.FIXED_NOW); in testUpdateNonWinHistogram_withAdCounterKeysPersists_auctionServerOn() [all …]
|
D | AdCounterHistogramUpdaterNoOpImplTest.java | 59 CommonFixture.FIXED_NOW)); in testUpdateNonWinHistogram_nullCallerPackageNameThrows()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/encryption/ |
D | BackgroundKeyFetchWorkerTest.java | 157 DBEncryptionKeyFixture.getKeysExpiringInTtl(CommonFixture.FIXED_NOW, 1L)); in setup() 159 getEncryptionConfigs(CommonFixture.FIXED_NOW, 0L)); in setup() 285 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW); 288 verify(mKeyManagerSpy).getExpiredAdSelectionEncryptionKeyTypes(CommonFixture.FIXED_NOW); 337 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW.plusSeconds(100)); 384 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW.plusSeconds(100)); 434 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW.plusSeconds(100)); 508 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW.plusSeconds(100)); 562 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW); 596 DBEncryptionKeyFixture.getKeysExpiringInTtl(CommonFixture.FIXED_NOW, 6L)); [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/common/ |
D | CommonFixture.java | 52 public static final Instant FIXED_NOW = Instant.now(); field in CommonFixture 54 FIXED_NOW.truncatedTo(ChronoUnit.MILLIS); 55 public static final Instant FIXED_EARLIER_ONE_DAY = FIXED_NOW.minus(1, ChronoUnit.DAYS); 56 public static final Instant FIXED_NEXT_ONE_DAY = FIXED_NOW.plus(1, ChronoUnit.DAYS); 58 Clock.fixed(FIXED_NOW.truncatedTo(ChronoUnit.MILLIS), ZoneOffset.UTC);
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/debug/ |
D | ConsentedDebugConfigurationGeneratorFactoryTest.java | 19 import static android.adservices.common.CommonFixture.FIXED_NOW; 41 private static final Instant CREATION_TIMESTAMP = FIXED_NOW;
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/customaudience/ |
D | CustomAudienceUpdatableDataFixture.java | 355 .setAttemptedUpdateTime(CommonFixture.FIXED_NOW) in getValidBuilderFullSuccessfulResponse() 365 .setAttemptedUpdateTime(CommonFixture.FIXED_NOW) in getValidBuilderEmptySuccessfulResponse() 375 .setAttemptedUpdateTime(CommonFixture.FIXED_NOW) in getValidBuilderEmptyFailedResponse()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/shell/adselection/ |
D | ConsentedDebugShellCommandTest.java | 295 Instant creationTimestamp = CommonFixture.FIXED_NOW; in test_view_success() 297 Instant expiryTimestamp = CommonFixture.FIXED_NOW.plus(expiryDuration); in test_view_success()
|