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

!5898 修改huks InnerKits错误码

Merge pull request !5898 from wkyrong/master
...@@ -84,7 +84,7 @@ HWTEST_F(HksOthersTest, HksOthersTest002, TestSize.Level1) ...@@ -84,7 +84,7 @@ HWTEST_F(HksOthersTest, HksOthersTest002, TestSize.Level1)
HWTEST_F(HksOthersTest, HksOthersTest003, TestSize.Level1) HWTEST_F(HksOthersTest, HksOthersTest003, TestSize.Level1)
{ {
int32_t ret = HksAttestKey(NULL, NULL, NULL); int32_t ret = HksAttestKey(NULL, NULL, NULL);
ASSERT_TRUE(ret == HKS_ERROR_NOT_SUPPORTED); ASSERT_TRUE(ret == HKS_ERROR_API_NOT_SUPPORTED);
} }
/** /**
...@@ -95,7 +95,7 @@ HWTEST_F(HksOthersTest, HksOthersTest003, TestSize.Level1) ...@@ -95,7 +95,7 @@ HWTEST_F(HksOthersTest, HksOthersTest003, TestSize.Level1)
HWTEST_F(HksOthersTest, HksOthersTest004, TestSize.Level1) HWTEST_F(HksOthersTest, HksOthersTest004, TestSize.Level1)
{ {
int32_t ret = HksGetCertificateChain(NULL, NULL, NULL); int32_t ret = HksGetCertificateChain(NULL, NULL, NULL);
ASSERT_TRUE(ret == HKS_ERROR_NOT_SUPPORTED); ASSERT_TRUE(ret == HKS_ERROR_API_NOT_SUPPORTED);
} }
/** /**
...@@ -106,7 +106,7 @@ HWTEST_F(HksOthersTest, HksOthersTest004, TestSize.Level1) ...@@ -106,7 +106,7 @@ HWTEST_F(HksOthersTest, HksOthersTest004, TestSize.Level1)
HWTEST_F(HksOthersTest, HksOthersTest005, TestSize.Level1) HWTEST_F(HksOthersTest, HksOthersTest005, TestSize.Level1)
{ {
int32_t ret = HksWrapKey(NULL, NULL, NULL, NULL); int32_t ret = HksWrapKey(NULL, NULL, NULL, NULL);
ASSERT_TRUE(ret == HKS_ERROR_NOT_SUPPORTED); ASSERT_TRUE(ret == HKS_ERROR_API_NOT_SUPPORTED);
} }
/** /**
...@@ -117,7 +117,7 @@ HWTEST_F(HksOthersTest, HksOthersTest005, TestSize.Level1) ...@@ -117,7 +117,7 @@ HWTEST_F(HksOthersTest, HksOthersTest005, TestSize.Level1)
HWTEST_F(HksOthersTest, HksOthersTest006, TestSize.Level1) HWTEST_F(HksOthersTest, HksOthersTest006, TestSize.Level1)
{ {
int32_t ret = HksUnwrapKey(NULL, NULL, NULL, NULL); int32_t ret = HksUnwrapKey(NULL, NULL, NULL, NULL);
ASSERT_TRUE(ret == HKS_ERROR_NOT_SUPPORTED); ASSERT_TRUE(ret == HKS_ERROR_API_NOT_SUPPORTED);
} }
/** /**
......
...@@ -101,7 +101,7 @@ static void ExcHksOthersTest003(void const *argument) ...@@ -101,7 +101,7 @@ static void ExcHksOthersTest003(void const *argument)
{ {
LiteTestPrint("HksOthersTest003 Begin!\n"); LiteTestPrint("HksOthersTest003 Begin!\n");
int32_t ret = HksAttestKey(NULL, NULL, NULL); int32_t ret = HksAttestKey(NULL, NULL, NULL);
TEST_ASSERT_TRUE(ret == HKS_ERROR_NOT_SUPPORTED); TEST_ASSERT_TRUE(ret == HKS_ERROR_API_NOT_SUPPORTED);
LiteTestPrint("HksOthersTest003 End!\n"); LiteTestPrint("HksOthersTest003 End!\n");
osThreadExit(); osThreadExit();
} }
...@@ -110,7 +110,7 @@ static void ExcHksOthersTest004(void const *argument) ...@@ -110,7 +110,7 @@ static void ExcHksOthersTest004(void const *argument)
{ {
LiteTestPrint("HksOthersTest004 Begin!\n"); LiteTestPrint("HksOthersTest004 Begin!\n");
int32_t ret = HksGetCertificateChain(NULL, NULL, NULL); int32_t ret = HksGetCertificateChain(NULL, NULL, NULL);
TEST_ASSERT_TRUE(ret == HKS_ERROR_NOT_SUPPORTED); TEST_ASSERT_TRUE(ret == HKS_ERROR_API_NOT_SUPPORTED);
LiteTestPrint("HksOthersTest004 End!\n"); LiteTestPrint("HksOthersTest004 End!\n");
osThreadExit(); osThreadExit();
} }
...@@ -119,7 +119,7 @@ static void ExcHksOthersTest005(void const *argument) ...@@ -119,7 +119,7 @@ static void ExcHksOthersTest005(void const *argument)
{ {
LiteTestPrint("HksOthersTest005 Begin!\n"); LiteTestPrint("HksOthersTest005 Begin!\n");
int32_t ret = HksGetCertificateChain(NULL, NULL, NULL); int32_t ret = HksGetCertificateChain(NULL, NULL, NULL);
TEST_ASSERT_TRUE(ret == HKS_ERROR_NOT_SUPPORTED); TEST_ASSERT_TRUE(ret == HKS_ERROR_API_NOT_SUPPORTED);
LiteTestPrint("HksOthersTest005 End!\n"); LiteTestPrint("HksOthersTest005 End!\n");
osThreadExit(); osThreadExit();
} }
...@@ -128,7 +128,7 @@ static void ExcHksOthersTest006(void const *argument) ...@@ -128,7 +128,7 @@ static void ExcHksOthersTest006(void const *argument)
{ {
LiteTestPrint("HksOthersTest006 Begin!\n"); LiteTestPrint("HksOthersTest006 Begin!\n");
int32_t ret = HksUnwrapKey(NULL, NULL, NULL, NULL); int32_t ret = HksUnwrapKey(NULL, NULL, NULL, NULL);
TEST_ASSERT_TRUE(ret == HKS_ERROR_NOT_SUPPORTED); TEST_ASSERT_TRUE(ret == HKS_ERROR_API_NOT_SUPPORTED);
LiteTestPrint("HksOthersTest006 End!\n"); LiteTestPrint("HksOthersTest006 End!\n");
osThreadExit(); osThreadExit();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册