Update tests
This commit is contained in:
parent
1c78f96148
commit
12e7172eb6
4 changed files with 186 additions and 8 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue