Add test on DefaultFirebaseNewTokenHandler

This commit is contained in:
Benoit Marty 2024-05-22 18:35:02 +02:00
parent 310c309e1e
commit 9762962586
5 changed files with 247 additions and 10 deletions

View file

@ -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? {