Implement missing methods in Fake class.
This commit is contained in:
committed by
Benoit Marty
parent
0ee2861452
commit
89d4969833
@@ -65,6 +65,16 @@ class FakeAuthenticationService : MatrixAuthenticationService {
|
||||
loginError?.let { Result.failure(it) } ?: Result.success(A_USER_ID)
|
||||
}
|
||||
|
||||
private val cacheIdxFlow = MutableStateFlow(0)
|
||||
|
||||
override fun cacheIdx(): Flow<Int> {
|
||||
return cacheIdxFlow
|
||||
}
|
||||
|
||||
override fun incrementCacheIdx() {
|
||||
cacheIdxFlow.value++
|
||||
}
|
||||
|
||||
override suspend fun getOidcUrl(): Result<OidcDetails> = simulateLongTask {
|
||||
oidcError?.let { Result.failure(it) } ?: Result.success(A_OIDC_DATA)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user