未验证 提交 9c813def 编写于 作者: O openharmony_ci 提交者: Gitee

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

Merge pull request !5790 from qiaozzzh/20220929_1
......@@ -15,13 +15,11 @@
import SecurityRandomJsunit from "./SecurityRandom.test.js";
import DigestAlgorithmJsunit from "./DigestAlgorithm.test.js";
import CertificateJsunit from "./Certificate.test.js";
import SymmetricCryptographyJsunit from "./SymmetricCryptography.test.js";
import AsymmetricCryptographyJsunit from "./AsymmetricCryptography.test.js";
export default function testsuite() {
CertificateJsunit();
DigestAlgorithmJsunit();
SymmetricCryptographyJsunit();
AsymmetricCryptographyJsunit();
......
......@@ -48,7 +48,7 @@ async function testSecurityRandomEnumPromise() {
expect(401).assertEqual(cryptoFramework.Result.INVALID_PARAMS);
expect(801).assertEqual(cryptoFramework.Result.NOT_SUPPORT);
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(17630002).assertEqual(cryptoFramework.Result.ERR_CERT_SIGNATURE_FAILURE);
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.
先完成此消息的编辑!
想要评论请 注册