Home
last modified time | relevance | path

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

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/
DRoomSchemaMigrationGuardrailTest.java113 for (DatabaseWithVersion databaseWithVersion : databaseClassesWithNewestVersion) { in validateDatabaseMigrationAllowedChanges()
114 validateClassMatchAndNewFieldOnly(databaseWithVersion); in validateDatabaseMigrationAllowedChanges()
115 validateDatabaseMigrationTestExists(databaseWithVersion); in validateDatabaseMigrationAllowedChanges()
119 private void validateDatabaseMigrationTestExists(DatabaseWithVersion databaseWithVersion) { in validateDatabaseMigrationTestExists() argument
120 if (databaseWithVersion.mVersion == 1) { in validateDatabaseMigrationTestExists()
124 databaseWithVersion.mRoomDatabaseClass)) { in validateDatabaseMigrationTestExists()
128 String databaseClassName = databaseWithVersion.mRoomDatabaseClass.getCanonicalName(); in validateDatabaseMigrationTestExists()
132 for (int i = 1; i < databaseWithVersion.mVersion; i++) { in validateDatabaseMigrationTestExists()
134 new DatabaseWithVersion(databaseWithVersion.mRoomDatabaseClass, i))) { in validateDatabaseMigrationTestExists()
173 private void validateClassMatchAndNewFieldOnly(DatabaseWithVersion databaseWithVersion) { in validateClassMatchAndNewFieldOnly() argument
[all …]