From d737c380a3be25b6422e4dd0333357da8bbd9d4c Mon Sep 17 00:00:00 2001 From: yuanyuhang Date: Tue, 26 Jul 2022 17:50:46 +0800 Subject: [PATCH] aaaa Signed-off-by: yuanyuhang --- .../js/test/Cipher/SecurityHuksRSABasicCallbackJsunit.test.js | 1 + .../main/js/test/HMAC/SecurityHuksAccessControlJsunit.test.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/security/security_huks_basic/huks_cipher_callback_BasicTest/entry/src/main/js/test/Cipher/SecurityHuksRSABasicCallbackJsunit.test.js b/security/security_huks_basic/huks_cipher_callback_BasicTest/entry/src/main/js/test/Cipher/SecurityHuksRSABasicCallbackJsunit.test.js index 8f378af3d..b6a8d2edf 100644 --- a/security/security_huks_basic/huks_cipher_callback_BasicTest/entry/src/main/js/test/Cipher/SecurityHuksRSABasicCallbackJsunit.test.js +++ b/security/security_huks_basic/huks_cipher_callback_BasicTest/entry/src/main/js/test/Cipher/SecurityHuksRSABasicCallbackJsunit.test.js @@ -38,6 +38,7 @@ async function publicGenerateKeyFunc(srcKeyAlies, genHuksOptionsNONC) { expect(data.errorCode == 0).assertTrue(); expect(data.outData == null).assertTrue(); expect(data.properties == null).assertTrue(); + expect(huks.getSdkVersion(genHuksOptionsNONC) != null).assertTrue(); }) .catch((err) => { console.log('test generateKey err information: ' + JSON.stringify(err)); diff --git a/security/security_huks_basic/huks_hmac_callback_BasicTest/entry/src/main/js/test/HMAC/SecurityHuksAccessControlJsunit.test.js b/security/security_huks_basic/huks_hmac_callback_BasicTest/entry/src/main/js/test/HMAC/SecurityHuksAccessControlJsunit.test.js index 28d05baf4..0cd554d8f 100644 --- a/security/security_huks_basic/huks_hmac_callback_BasicTest/entry/src/main/js/test/HMAC/SecurityHuksAccessControlJsunit.test.js +++ b/security/security_huks_basic/huks_hmac_callback_BasicTest/entry/src/main/js/test/HMAC/SecurityHuksAccessControlJsunit.test.js @@ -309,6 +309,8 @@ describe('SecurityHuksAccessControlJsunit', function () { expect(4).assertEqual(huks.HuksKeyFlag.HUKS_KEY_FLAG_DERIVE_KEY); expect(0).assertEqual(huks.HuksKeyStorageType.HUKS_STORAGE_TEMP); expect(1).assertEqual(huks.HuksKeyStorageType.HUKS_STORAGE_PERSISTENT); + expect(0).assertEqual(huks.HuksSendType.HUKS_SEND_TYPE_ASYNC); + expect(1).assertEqual(huks.HuksSendType.HUKS_SEND_TYPE_SYNC); expect(0).assertEqual(huks.HuksTagType.HUKS_TAG_TYPE_INVALID); expect(268435456).assertEqual(huks.HuksTagType.HUKS_TAG_TYPE_INT); expect(536870912).assertEqual(huks.HuksTagType.HUKS_TAG_TYPE_UINT); -- GitLab