Skip to content

Commit

Permalink
Fixed compile-error due to uncommited changes for #308
Browse files Browse the repository at this point in the history
  • Loading branch information
vestrel00 committed Sep 7, 2023
1 parent 034565f commit b3dcbec
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/src/main/java/contacts/test/TestContacts.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ import contacts.test.entities.TestDataRegistration
@Suppress("FunctionName")
fun TestContacts(
context: Context,
callerIsSyncAdapter: Boolean = false,
customDataRegistry: CustomDataRegistry = CustomDataRegistry()
): Contacts = TestContacts(Contacts(context, customDataRegistry = customDataRegistry)).also {
): Contacts = TestContacts(Contacts(context, callerIsSyncAdapter, customDataRegistry)).also {
customDataRegistry.register(TestDataRegistration())
}

Expand All @@ -27,8 +28,9 @@ object TestContactsFactory {
@JvmOverloads
fun create(
context: Context,
callerIsSyncAdapter: Boolean = false,
customDataRegistry: CustomDataRegistry = CustomDataRegistry()
): Contacts = TestContacts(context, customDataRegistry)
): Contacts = TestContacts(context, callerIsSyncAdapter, customDataRegistry)
}

// Note that we cannot use "by" to delegate calls to the internal query because function calls will
Expand Down Expand Up @@ -100,6 +102,8 @@ private class TestContacts(private val contactsApi: Contacts) : Contacts {

override val applicationContext = contactsApi.applicationContext

override val callerIsSyncAdapter = contactsApi.callerIsSyncAdapter

override var loggerRegistry = contactsApi.loggerRegistry

override val customDataRegistry = contactsApi.customDataRegistry
Expand Down

0 comments on commit b3dcbec

Please sign in to comment.