From fff998f6908b53ed3d94de3a2be5741c4f98c435 Mon Sep 17 00:00:00 2001 From: heguokai Date: Mon, 24 Mar 2025 16:33:46 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20TDD=20=E9=83=A8=E4=BB=B6=E5=8C=96?= =?UTF-8?q?=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: heguokai --- .../innerkits/appverify/src/provision/provision_verify.cpp | 4 ++-- interfaces/innerkits/appverify/test/BUILD.gn | 2 +- .../test/unittest/src/hap_signing_block_utils_test.cpp | 2 +- .../test/unittest/src/hap_verify_openssl_utils_test.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/interfaces/innerkits/appverify/src/provision/provision_verify.cpp b/interfaces/innerkits/appverify/src/provision/provision_verify.cpp index 6bdd753..bb089d1 100644 --- a/interfaces/innerkits/appverify/src/provision/provision_verify.cpp +++ b/interfaces/innerkits/appverify/src/provision/provision_verify.cpp @@ -309,10 +309,10 @@ bool CheckDeviceID(const std::vector& deviceIds, const std::string& if (iter == deviceIds.end()) { DeviceTypeManager& deviceTypeManager = DeviceTypeManager::GetInstance(); if (!deviceTypeManager.GetDeviceTypeInfo()) { - HAPVERIFY_LOG_ERROR("current device is not authorized"); + HAPVERIFY_LOG_ERROR("current device is not authorized."); return false; } - HAPVERIFY_LOG_INFO("current device is a debug device"); + HAPVERIFY_LOG_INFO("current device is a debug device."); } return true; } diff --git a/interfaces/innerkits/appverify/test/BUILD.gn b/interfaces/innerkits/appverify/test/BUILD.gn index 27890a4..648b636 100644 --- a/interfaces/innerkits/appverify/test/BUILD.gn +++ b/interfaces/innerkits/appverify/test/BUILD.gn @@ -13,7 +13,7 @@ import("//build/test.gni") -module_output_path = "appverify/verify" +module_output_path = "appverify/appverify" config("verify_test_config") { visibility = [ ":*" ] diff --git a/interfaces/innerkits/appverify/test/unittest/src/hap_signing_block_utils_test.cpp b/interfaces/innerkits/appverify/test/unittest/src/hap_signing_block_utils_test.cpp index 032d400..6bf6dc0 100644 --- a/interfaces/innerkits/appverify/test/unittest/src/hap_signing_block_utils_test.cpp +++ b/interfaces/innerkits/appverify/test/unittest/src/hap_signing_block_utils_test.cpp @@ -293,7 +293,7 @@ HWTEST_F(HapSigningBlockUtilsTest, GetCentralDirectoryOffsetTest001, TestSize.Le * @tc.desc: test function of classify optional block * @tc.type: FUNC */ -HWTEST_F(HapSigningBlockUtilsTest, ClassifyHapSubSigningBlock001, TestSize.Level1) +HWTEST_F(HapSigningBlockUtilsTest, ClassifyHapSubSigningBlock001, TestSize.Level2) { /* * @tc.steps: step1. run function with input of property block diff --git a/interfaces/innerkits/appverify/test/unittest/src/hap_verify_openssl_utils_test.cpp b/interfaces/innerkits/appverify/test/unittest/src/hap_verify_openssl_utils_test.cpp index fba4704..18fe0ab 100644 --- a/interfaces/innerkits/appverify/test/unittest/src/hap_verify_openssl_utils_test.cpp +++ b/interfaces/innerkits/appverify/test/unittest/src/hap_verify_openssl_utils_test.cpp @@ -58,7 +58,7 @@ void HapVerifyOpensslUtilsTest::TearDown() * @tc.desc: use invalid input to verify pkcs7, The function will return false; * @tc.type: FUNC */ -HWTEST_F(HapVerifyOpensslUtilsTest, VerifyPkcs7_001, TestSize.Level1) +HWTEST_F(HapVerifyOpensslUtilsTest, VerifyPkcs7_001, TestSize.Level2) { /* * @tc.steps: step1. use a null input to run OpensslVerifyPkcs7 -- Gitee