Add test on DefaultPushService
This commit is contained in:
parent
dc6e62a324
commit
505f6d4dae
6 changed files with 259 additions and 8 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue