Add test on DefaultPushService

This commit is contained in:
Benoit Marty
2024-05-22 12:34:47 +02:00
parent 851887b115
commit 84c8a8577b
6 changed files with 259 additions and 8 deletions

View File

@@ -20,8 +20,10 @@ import io.element.android.libraries.matrix.api.core.SessionId
import io.element.android.libraries.pushstore.api.UserPushStore
import io.element.android.libraries.pushstore.api.UserPushStoreFactory
class FakeUserPushStoreFactory : UserPushStoreFactory {
class FakeUserPushStoreFactory(
val userPushStore: UserPushStore = FakeUserPushStore()
) : UserPushStoreFactory {
override fun getOrCreate(userId: SessionId): UserPushStore {
return FakeUserPushStore()
return userPushStore
}
}