1 /*
2  * Copyright 2023 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package androidx.room
18 
19 import androidx.room.migration.AutoMigrationSpec
20 import androidx.room.migration.Migration
21 import androidx.sqlite.SQLiteConnection
22 import kotlin.reflect.KClass
23 
24 internal class BuilderTest_TestDatabase_Impl : BuilderTest.TestDatabase() {
createOpenDelegatenull25     override fun createOpenDelegate(): RoomOpenDelegateMarker {
26         return object : RoomOpenDelegate(0, "", "") {
27             override fun onCreate(connection: SQLiteConnection) {}
28 
29             override fun onPreMigrate(connection: SQLiteConnection) {}
30 
31             override fun onValidateSchema(connection: SQLiteConnection): ValidationResult {
32                 return ValidationResult(true, null)
33             }
34 
35             override fun onPostMigrate(connection: SQLiteConnection) {}
36 
37             override fun onOpen(connection: SQLiteConnection) {}
38 
39             override fun createAllTables(connection: SQLiteConnection) {}
40 
41             override fun dropAllTables(connection: SQLiteConnection) {}
42         }
43     }
44 
createInvalidationTrackernull45     override fun createInvalidationTracker(): InvalidationTracker {
46         return InvalidationTracker(this, emptyMap(), emptyMap())
47     }
48 
createAutoMigrationsnull49     override fun createAutoMigrations(
50         autoMigrationSpecs: Map<KClass<out AutoMigrationSpec>, AutoMigrationSpec>
51     ): List<Migration> {
52         return emptyList()
53     }
54 
getRequiredAutoMigrationSpecClassesnull55     override fun getRequiredAutoMigrationSpecClasses(): Set<KClass<out AutoMigrationSpec>> {
56         return emptySet()
57     }
58 
getRequiredTypeConverterClassesnull59     override fun getRequiredTypeConverterClasses(): Map<KClass<*>, List<KClass<*>>> {
60         return emptyMap()
61     }
62 }
63