/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/ |
D | DbHelperTest.java | 152 Mockito.doNothing().when(topicsDbMigratorV7).performMigration(db); in testOnUpgrade_topicsV7Migration() 161 Mockito.verify(topicsDbMigratorV7, Mockito.never()).performMigration(db); in testOnUpgrade_topicsV7Migration() 165 Mockito.verify(topicsDbMigratorV7).performMigration(db); in testOnUpgrade_topicsV7Migration() 175 Mockito.doNothing().when(topicsDbMigratorV8).performMigration(db); in testOnUpgrade_topicsV8Migration() 184 Mockito.verify(topicsDbMigratorV8, Mockito.never()).performMigration(db); in testOnUpgrade_topicsV8Migration() 188 Mockito.verify(topicsDbMigratorV8).performMigration(db); in testOnUpgrade_topicsV8Migration() 214 Mockito.doNothing().when(topicsDbMigratorV9).performMigration(db); in testOnUpgrade_topicsV9Migration() 223 Mockito.verify(topicsDbMigratorV9, Mockito.never()).performMigration(db); in testOnUpgrade_topicsV9Migration() 227 Mockito.verify(topicsDbMigratorV9, times(1)).performMigration(db); in testOnUpgrade_topicsV9Migration() 231 Mockito.verify(topicsDbMigratorV9, times(2)).performMigration(db); in testOnUpgrade_topicsV9Migration() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/shared/ |
D | SharedDbHelperTest.java | 252 Mockito.doNothing().when(sharedDbMigratorV4).performMigration(db); in testOnUpgrade_sharedDbMigrationV4() 257 verify(sharedDbMigratorV4, Mockito.never()).performMigration(db); in testOnUpgrade_sharedDbMigrationV4() 261 verify(sharedDbMigratorV4).performMigration(db); in testOnUpgrade_sharedDbMigrationV4() 273 Mockito.doNothing().when(sharedDbMigratorV2).performMigration(db); in testOnUpgrade_sharedDbMigration_V2_V3_V4() 274 Mockito.doNothing().when(sharedDbMigratorV3).performMigration(db); in testOnUpgrade_sharedDbMigration_V2_V3_V4() 275 Mockito.doNothing().when(sharedDbMigratorV4).performMigration(db); in testOnUpgrade_sharedDbMigration_V2_V3_V4() 283 verify(sharedDbMigratorV2, Mockito.never()).performMigration(db); in testOnUpgrade_sharedDbMigration_V2_V3_V4() 284 verify(sharedDbMigratorV3, Mockito.never()).performMigration(db); in testOnUpgrade_sharedDbMigration_V2_V3_V4() 285 verify(sharedDbMigratorV4, Mockito.never()).performMigration(db); in testOnUpgrade_sharedDbMigration_V2_V3_V4() 289 verify(sharedDbMigratorV2, times(1)).performMigration(db); in testOnUpgrade_sharedDbMigration_V2_V3_V4() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/migration/ |
D | AbstractMeasurementDbMigrator.java | 33 public void performMigration(SQLiteDatabase db, int oldVersion, int newVersion) { in performMigration() method in AbstractMeasurementDbMigrator 42 performMigration(db); in performMigration() 50 protected abstract void performMigration(@NonNull SQLiteDatabase db); in performMigration() method in AbstractMeasurementDbMigrator
|
D | IMeasurementDbMigrator.java | 34 void performMigration(SQLiteDatabase db, int oldVersion, int newVersion); in performMigration() method
|
D | MeasurementDbMigratorV22.java | 33 protected void performMigration(@NonNull SQLiteDatabase db) { in performMigration() method in MeasurementDbMigratorV22
|
D | MeasurementDbMigratorV17.java | 32 protected void performMigration(@NonNull SQLiteDatabase db) { in performMigration() method in MeasurementDbMigratorV17
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/shared/migration/ |
D | AbstractSharedDbMigrator.java | 36 public void performMigration(SQLiteDatabase db, int oldVersion, int newVersion) { in performMigration() method in AbstractSharedDbMigrator 43 performMigration(db); in performMigration() 51 protected abstract void performMigration(@NonNull SQLiteDatabase db); in performMigration() method in AbstractSharedDbMigrator
|
D | ISharedDbMigrator.java | 34 void performMigration(SQLiteDatabase db, int oldVersion, int newVersion); in performMigration() method
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/topics/migration/ |
D | AbstractTopicsDbMigrator.java | 56 public void performMigration(SQLiteDatabase db, int oldVersion, int newVersion) in performMigration() method in AbstractTopicsDbMigrator 63 performMigration(db); in performMigration() 80 protected abstract void performMigration(SQLiteDatabase db); in performMigration() method in AbstractTopicsDbMigrator
|
D | ITopicsDbMigrator.java | 35 void performMigration(SQLiteDatabase db, int oldVersion, int newVersion); in performMigration() method
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/shared/migration/ |
D | SharedDbMigratorTestBase.java | 81 getTestSubject().performMigration(mDb, (getTargetVersion() + 1), (getTargetVersion() + 2)); in performMigration_alreadyOnHigherVersion_skipMigration() 91 getTestSubject().performMigration(mDb, (getTargetVersion() - 2), (getTargetVersion() - 1)); in performMigration_lowerRequestedVersion_skipMigration() 135 getTestSubject().performMigration(actualDb, prevVersion, getTargetVersion()); in performMigration_migrateFromPrevToTargetVersion_dbIsAsExpected()
|
D | SharedDbMigratorV3Test.java | 70 getTestSubject().performMigration(db, 2, 3); in performMigration_v2ToV3_addLastFetchTimeColumn() 107 getTestSubject().performMigration(db, 3, 3); in performMigration_v3ToV3()
|
D | SharedDbMigratorV4Test.java | 78 getTestSubject().performMigration(db, 3, 4); in performMigration_v3ToV4_addEnrolledSiteEnrolledAPIsColumns() 138 getTestSubject().performMigration(db, 4, 4); in performMigration_v4ToV4()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/migration/ |
D | MeasurementDbMigratorTestBase.java | 80 getTestSubject().performMigration(mDb, (getTargetVersion() + 1), (getTargetVersion() + 2)); in performMigration_alreadyOnHigherVersion_skipMigration() 89 getTestSubject().performMigration(mDb, (getTargetVersion() - 2), (getTargetVersion() - 1)); in performMigration_lowerRequestedVersion_skipMigration() 131 getTestSubject().performMigration(actualDb, prevVersion, getTargetVersion()); in performMigration_migrateFromPrevToTargetVersion_dbIsAsExpected()
|
D | MeasurementDbMigratorV6Test.java | 82 new MeasurementDbMigratorV2().performMigration(db, 1, 2); in performMigration_success_v3ToV6() 83 new MeasurementDbMigratorV3().performMigration(db, 2, 3); in performMigration_success_v3ToV6() 96 new MeasurementDbMigratorV6().performMigration(db, 3, 6); in performMigration_success_v3ToV6() 125 new MeasurementDbMigratorV2().performMigration(db, 1, 2); in performMigration_twiceToSameVersion() 126 new MeasurementDbMigratorV3().performMigration(db, 2, 3); in performMigration_twiceToSameVersion() 139 new MeasurementDbMigratorV6().performMigration(db, 3, 6); in performMigration_twiceToSameVersion() 141 new MeasurementDbMigratorV6().performMigration(db, 6, 6); in performMigration_twiceToSameVersion() 171 new MeasurementDbMigratorV2().performMigration(db, 1, 2); in performMigration_success_checkAllFields_V3toV6() 172 new MeasurementDbMigratorV3().performMigration(db, 2, 3); in performMigration_success_checkAllFields_V3toV6() 248 new MeasurementDbMigratorV6().performMigration(db, 3, 6); in performMigration_success_checkAllFields_V3toV6()
|
D | MeasurementDbMigratorV14Test.java | 82 getTestSubject().performMigration(db, 13, 14); in performMigration_v13ToV14WithData_maintainsDataIntegrity() 122 getTestSubject().performMigration(db, 13, 14); in performMigration_enrollmentIdNotFound_removesSource() 173 getTestSubject().performMigration(db, 13, 14); in performMigration_whenReportingUrlNotFoundOrEmpty_removesSource() 212 getTestSubject().performMigration(db, 13, 14); in performMigration_whenEnrollmentIdNotFound_removesTrigger() 264 getTestSubject().performMigration(db, 13, 14); in performMigration_whenReportingUrlNotFoundOrEmpty_removesTrigger() 316 getTestSubject().performMigration(db, 13, 14); in performMigration_whenEnrollmentIdNotFound_removesEventReport() 382 getTestSubject().performMigration(db, 13, 14); in performMigration_whenReportingUrlNotFoundOrEmpty_removesEventReport() 433 getTestSubject().performMigration(db, 13, 14); in performMigration_whenEnrollmentIdNotFound_removesAggregateReport() 497 getTestSubject().performMigration(db, 13, 14); in performMigration_whenReportingUrlNotFoundOrEmpty_removesAggregateReport()
|
D | MeasurementDbMigratorV3Test.java | 126 new MeasurementDbMigratorV2().performMigration(db, 1, 2); in performMigration_success_v2ToV3() 131 new MeasurementDbMigratorV3().performMigration(db, 2, 3); in performMigration_success_v2ToV3() 170 new MeasurementDbMigratorV2().performMigration(db, 1, 2); in performMigration_twiceToSameVersion() 174 new MeasurementDbMigratorV3().performMigration(db, 2, 3); in performMigration_twiceToSameVersion() 177 new MeasurementDbMigratorV3().performMigration(db, 3, 3); in performMigration_twiceToSameVersion() 208 new MeasurementDbMigratorV2().performMigration(db, 1, 2); in insertAndRetrieveAsyncData_afterV3Migration() 212 new MeasurementDbMigratorV3().performMigration(db, 2, 3); in insertAndRetrieveAsyncData_afterV3Migration() 232 new MeasurementDbMigratorV2().performMigration(db, 1, 2); in performMigration_insertionCantHappenDueToColumnsMismatch_createsNewTable() 270 new MeasurementDbMigratorV3().performMigration(db, 2, 3); in performMigration_insertionCantHappenDueToColumnsMismatch_createsNewTable() 286 new MeasurementDbMigratorV2().performMigration(db, 1, 2); in performMigration_success_checkAllFields_V2toV3() [all …]
|
D | MeasurementDbMigratorTestBaseDeprecated.java | 63 getTestSubject().performMigration(mDb, (getTargetVersion() + 1), (getTargetVersion() + 2)); in performMigration_alreadyOnHigherVersion_skipMigration() 72 getTestSubject().performMigration(mDb, (getTargetVersion() - 2), (getTargetVersion() - 1)); in performMigration_lowerRequestedVersion_skipMigration()
|
D | MeasurementDbMigratorV15Test.java | 87 getTestSubject().performMigration(db, 14, 15); in performMigration_v14ToV15WithData_maintainsDataIntegrity() 111 getTestSubject().performMigration(db, 14, 15); in performMigration_whenEnrollmentIdNotFound_removesDebugReport() 164 getTestSubject().performMigration(db, 14, 15); in performMigration_whenReportingUrlNotFoundOrEmpty_removesDebugReport()
|
D | MeasurementDbMigratorV26Test.java | 58 getTestSubject().performMigration(db, 25, 26); in performMigration_v25ToV26WithData_ClearsReportRetries() 79 getTestSubject().performMigration(db, 25, 26); in performMigration_v25ToV26WithData_AddsAndPopulatesColumns()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/topics/migration/ |
D | AbstractTopicsDbMigratorTest.java | 46 .performMigration(mDb, /* oldVersion */ 1, /* newVersion */ 2); in testPerformMigration_onUpgrade() 54 public void performMigration(SQLiteDatabase db) {} in initMigrator()
|
D | TopicsDbMigratorV7Test.java | 91 new TopicsDbMigratorV7().performMigration(db); in testDbMigrationFromV6ToV7() 116 new TopicsDbMigratorV7().performMigration(db); in testDbMigrationFromV6ToV7()
|
D | TopicsDbMigratorV9Test.java | 93 new TopicsDbMigratorV9().performMigration(db); in testDbMigrationFromV8ToV9() 128 new TopicsDbMigratorV9().performMigration(db); in testDbMigrationFromV8ToV9()
|
D | TopicsDbMigratorV8Test.java | 88 new TopicsDbMigratorV8().performMigration(db); in testDbMigrationFromV7ToV8() 122 new TopicsDbMigratorV8().performMigration(db); in testDbMigrationFromV7ToV8()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/ |
D | DbHelper.java | 163 .forEach(dbMigrator -> dbMigrator.performMigration(db, oldVersion, newVersion)); in onUpgrade() 167 .forEach(dbMigrator -> dbMigrator.performMigration(db, oldVersion, newVersion)); in onUpgrade()
|