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:
bw-ghapp[bot]
2025-12-30 18:12:39 +00:00
committed by GitHub
parent 3bc538c1f8
commit 2d228b8496
27 changed files with 1402 additions and 518 deletions

View File

@@ -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,
)