提交 602f2d39 编写于 作者: Q qiaozzzh

【OpenHarmony 3.2.7.5】【安全子系统】【RK3568】ActsCryptoFrameworkJSNormalTest测试套补充用例

Signed-off-by: Nqiaozzzh <qmfzzz@163.com>
Change-Id: I8e1f82a06d0c1de47ccdd130abcfa35ea48d8513
上级 8d3bb77a
...@@ -15,13 +15,11 @@ ...@@ -15,13 +15,11 @@
import SecurityRandomJsunit from "./SecurityRandom.test.js"; import SecurityRandomJsunit from "./SecurityRandom.test.js";
import DigestAlgorithmJsunit from "./DigestAlgorithm.test.js"; import DigestAlgorithmJsunit from "./DigestAlgorithm.test.js";
import CertificateJsunit from "./Certificate.test.js";
import SymmetricCryptographyJsunit from "./SymmetricCryptography.test.js"; import SymmetricCryptographyJsunit from "./SymmetricCryptography.test.js";
import AsymmetricCryptographyJsunit from "./AsymmetricCryptography.test.js"; import AsymmetricCryptographyJsunit from "./AsymmetricCryptography.test.js";
export default function testsuite() { export default function testsuite() {
CertificateJsunit();
DigestAlgorithmJsunit(); DigestAlgorithmJsunit();
SymmetricCryptographyJsunit(); SymmetricCryptographyJsunit();
AsymmetricCryptographyJsunit(); AsymmetricCryptographyJsunit();
......
...@@ -48,7 +48,7 @@ async function testSecurityRandomEnumPromise() { ...@@ -48,7 +48,7 @@ async function testSecurityRandomEnumPromise() {
expect(401).assertEqual(cryptoFramework.Result.INVALID_PARAMS); expect(401).assertEqual(cryptoFramework.Result.INVALID_PARAMS);
expect(801).assertEqual(cryptoFramework.Result.NOT_SUPPORT); expect(801).assertEqual(cryptoFramework.Result.NOT_SUPPORT);
expect(17620001).assertEqual(cryptoFramework.Result.ERR_OUT_OF_MEMORY); expect(17620001).assertEqual(cryptoFramework.Result.ERR_OUT_OF_MEMORY);
expect(17620002).assertEqual(cryptoFramework.Result.ERR_INTERNAL_ERROR); expect(17620002).assertEqual(cryptoFramework.Result.ERR_EXTERNAL_ERROR);
expect(17630001).assertEqual(cryptoFramework.Result.ERR_CRYPTO_OPERATION); expect(17630001).assertEqual(cryptoFramework.Result.ERR_CRYPTO_OPERATION);
expect(17630002).assertEqual(cryptoFramework.Result.ERR_CERT_SIGNATURE_FAILURE); expect(17630002).assertEqual(cryptoFramework.Result.ERR_CERT_SIGNATURE_FAILURE);
expect(17630003).assertEqual(cryptoFramework.Result.ERR_CERT_NOT_YET_VALID); expect(17630003).assertEqual(cryptoFramework.Result.ERR_CERT_NOT_YET_VALID);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册