Add test on DefaultPushService

This commit is contained in:
Benoit Marty 2024-05-22 12:34:47 +02:00
parent dc6e62a324
commit 505f6d4dae
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
}
}