Add test on DefaultFirebaseNewTokenHandler
This commit is contained in:
parent
310c309e1e
commit
9762962586
5 changed files with 247 additions and 10 deletions
|
|
@ -20,8 +20,9 @@ import io.element.android.libraries.pushstore.api.UserPushStore
|
|||
import kotlinx.coroutines.flow.Flow
|
||||
import kotlinx.coroutines.flow.MutableStateFlow
|
||||
|
||||
class FakeUserPushStore : UserPushStore {
|
||||
class FakeUserPushStore(
|
||||
private var pushProviderName: String? = null
|
||||
) : UserPushStore {
|
||||
private var currentRegisteredPushKey: String? = null
|
||||
private val notificationEnabledForDevice = MutableStateFlow(true)
|
||||
override suspend fun getPushProviderName(): String? {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue