mirror of
https://github.com/bitwarden/android.git
synced 2026-04-28 11:58:40 -05:00
Update SDK to 2.0.0-4254-6c954013 (#6218)
Co-authored-by: bw-ghapp[bot] <178206702+bw-ghapp[bot]@users.noreply.github.com> Co-authored-by: Carlos Gonçalves <cgoncalves@bitwarden.com>
This commit is contained in:
@@ -7,9 +7,9 @@ fun createMockAccountKeysJson(
|
||||
number: Int,
|
||||
): AccountKeysJson =
|
||||
AccountKeysJson(
|
||||
signatureKeyPair = createMockSignatureKeyPair(number = number),
|
||||
publicKeyEncryptionKeyPair = createMockPublicKeyEncryptionKeyPair(number = number),
|
||||
securityState = createMockSecurityState(number = number),
|
||||
signatureKeyPair = createMockSignatureKeyPair(number = number),
|
||||
)
|
||||
|
||||
/**
|
||||
@@ -53,3 +53,18 @@ fun createMockSignatureKeyPair(
|
||||
wrappedSigningKey = wrappedSigningKey,
|
||||
verifyingKey = verifyingKey,
|
||||
)
|
||||
|
||||
/**
|
||||
* Create a mock set of account keys with null nested fields for testing null-safety.
|
||||
*/
|
||||
fun createMockAccountKeysJsonWithNullFields(
|
||||
number: Int,
|
||||
): AccountKeysJson =
|
||||
AccountKeysJson(
|
||||
publicKeyEncryptionKeyPair = createMockPublicKeyEncryptionKeyPair(
|
||||
number = number,
|
||||
signedPublicKey = null,
|
||||
),
|
||||
securityState = null,
|
||||
signatureKeyPair = null,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user