mirror of
https://github.com/bitwarden/android.git
synced 2025-12-10 00:06:22 -06:00
Display the CipherKeyEncryption flag in debug menu (#5923)
This commit is contained in:
parent
d74040e7b9
commit
cf5d208516
@ -16,7 +16,7 @@ import io.mockk.mockk
|
||||
import io.mockk.runs
|
||||
import io.mockk.verify
|
||||
import kotlinx.collections.immutable.ImmutableMap
|
||||
import kotlinx.collections.immutable.persistentMapOf
|
||||
import kotlinx.collections.immutable.toImmutableMap
|
||||
import kotlinx.coroutines.flow.flowOf
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import org.junit.jupiter.api.Assertions.assertEquals
|
||||
@ -143,15 +143,15 @@ class DebugMenuViewModelTest : BaseViewModelTest() {
|
||||
)
|
||||
}
|
||||
|
||||
private val DEFAULT_MAP_VALUE: ImmutableMap<FlagKey<Any>, Any> = persistentMapOf(
|
||||
FlagKey.CredentialExchangeProtocolImport to true,
|
||||
FlagKey.CredentialExchangeProtocolExport to true,
|
||||
)
|
||||
private val DEFAULT_MAP_VALUE: ImmutableMap<FlagKey<Any>, Any> = FlagKey
|
||||
.activePasswordManagerFlags
|
||||
.associateWith { true }
|
||||
.toImmutableMap()
|
||||
|
||||
private val UPDATED_MAP_VALUE: ImmutableMap<FlagKey<Any>, Any> = persistentMapOf(
|
||||
FlagKey.CredentialExchangeProtocolImport to false,
|
||||
FlagKey.CredentialExchangeProtocolExport to false,
|
||||
)
|
||||
private val UPDATED_MAP_VALUE: ImmutableMap<FlagKey<Any>, Any> = FlagKey
|
||||
.activePasswordManagerFlags
|
||||
.associateWith { false }
|
||||
.toImmutableMap()
|
||||
|
||||
private val DEFAULT_STATE = DebugMenuState(
|
||||
featureFlags = DEFAULT_MAP_VALUE,
|
||||
|
||||
@ -13,7 +13,7 @@ import io.mockk.mockk
|
||||
import io.mockk.runs
|
||||
import io.mockk.verify
|
||||
import kotlinx.collections.immutable.ImmutableMap
|
||||
import kotlinx.collections.immutable.persistentMapOf
|
||||
import kotlinx.collections.immutable.toImmutableMap
|
||||
import kotlinx.coroutines.flow.flowOf
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import org.junit.jupiter.api.Assertions.assertEquals
|
||||
@ -79,13 +79,15 @@ class DebugMenuViewModelTest : BaseViewModelTest() {
|
||||
)
|
||||
}
|
||||
|
||||
private val DEFAULT_MAP_VALUE: ImmutableMap<FlagKey<Any>, Any> = persistentMapOf(
|
||||
FlagKey.BitwardenAuthenticationEnabled to true,
|
||||
)
|
||||
private val DEFAULT_MAP_VALUE: ImmutableMap<FlagKey<Any>, Any> = FlagKey
|
||||
.activeAuthenticatorFlags
|
||||
.associateWith { true }
|
||||
.toImmutableMap()
|
||||
|
||||
private val UPDATED_MAP_VALUE: ImmutableMap<FlagKey<Any>, Any> = persistentMapOf(
|
||||
FlagKey.BitwardenAuthenticationEnabled to false,
|
||||
)
|
||||
private val UPDATED_MAP_VALUE: ImmutableMap<FlagKey<Any>, Any> = FlagKey
|
||||
.activeAuthenticatorFlags
|
||||
.associateWith { false }
|
||||
.toImmutableMap()
|
||||
|
||||
private val DEFAULT_STATE = DebugMenuState(
|
||||
featureFlags = DEFAULT_MAP_VALUE,
|
||||
|
||||
@ -32,6 +32,7 @@ sealed class FlagKey<out T : Any> {
|
||||
listOf(
|
||||
CredentialExchangeProtocolImport,
|
||||
CredentialExchangeProtocolExport,
|
||||
CipherKeyEncryption,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user