Update tests

This commit is contained in:
Benoit Marty 2024-11-06 10:11:50 +01:00
parent 1c78f96148
commit 12e7172eb6
4 changed files with 186 additions and 8 deletions

View file

@ -0,0 +1,22 @@
/*
* Copyright 2024 New Vector Ltd.
*
* SPDX-License-Identifier: AGPL-3.0-only
* Please see LICENSE in the repository root for full details.
*/
package io.element.android.features.call.test
import io.element.android.features.call.api.CurrentCall
import io.element.android.features.call.api.CurrentCallObserver
import kotlinx.coroutines.flow.MutableStateFlow
class FakeCurrentCallObserver(
initialValue: CurrentCall = CurrentCall.None,
) : CurrentCallObserver {
override val currentCall = MutableStateFlow(initialValue)
fun setCurrentCall(value: CurrentCall) {
currentCall.value = value
}
}