From 3a351e52522236f492cb957e03bc88f5e07df589 Mon Sep 17 00:00:00 2001 From: heguokai Date: Fri, 28 Mar 2025 15:14:00 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20TDD=20=E9=83=A8=E4=BB=B6=E6=95=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: heguokai --- services/dbms/src/image_compress.cpp | 2 +- services/dbms/test/sceneProject/unittest/ohos_test/BUILD.gn | 2 +- .../dbms/test/sceneProject/unittest/system_module/BUILD.gn | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/services/dbms/src/image_compress.cpp b/services/dbms/src/image_compress.cpp index 6365e81..d5e6e76 100644 --- a/services/dbms/src/image_compress.cpp +++ b/services/dbms/src/image_compress.cpp @@ -100,7 +100,7 @@ bool ImageCompress::GetImageTypeString(const std::unique_ptr &fileDat { ImageType type = GetImageType(fileData, fileLength); if (type == ImageType::WORNG_TYPE) { - APP_LOGE("input wrong type image!"); + APP_LOGE("input error type image!"); return false; } imageType = type == ImageType::JPEG ? JPEG_FORMAT : PNG_FORMAT; diff --git a/services/dbms/test/sceneProject/unittest/ohos_test/BUILD.gn b/services/dbms/test/sceneProject/unittest/ohos_test/BUILD.gn index a3f0394..187755b 100644 --- a/services/dbms/test/sceneProject/unittest/ohos_test/BUILD.gn +++ b/services/dbms/test/sceneProject/unittest/ohos_test/BUILD.gn @@ -18,5 +18,5 @@ ohos_copy("copy_ohos_test") { part_name = "distributed_bundle_framework" subsystem_name = "bundlemanager" sources = [ "./ohos_test.xml" ] - outputs = [ "$root_out_dir/tests/unittest/bundle_framework/distributedbundleservice/resource/ohos_test.xml" ] + outputs = [ "$root_out_dir/tests/unittest/distributed_bundle_framework/distributed_bundle_framework/resource/ohos_test.xml" ] } diff --git a/services/dbms/test/sceneProject/unittest/system_module/BUILD.gn b/services/dbms/test/sceneProject/unittest/system_module/BUILD.gn index c532a55..89192e4 100644 --- a/services/dbms/test/sceneProject/unittest/system_module/BUILD.gn +++ b/services/dbms/test/sceneProject/unittest/system_module/BUILD.gn @@ -9,7 +9,7 @@ # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and -# limitations under the License. +# limitations under the License. import("//build/ohos.gni") import("../../../../../../dbms.gni") @@ -18,7 +18,7 @@ ohos_hap("distributed_system_module") { hap_profile = "entry/src/main/module.json" hap_name = "distributed_system_module" subsystem_name = "bundlemanager" - final_hap_path = "$root_out_dir/tests/unittest/bundle_framework/distributedbundleservice/resource/test_bundle/${hap_name}.hap" + final_hap_path = "$root_out_dir/tests/unittest/distributed_bundle_framework/distributed_bundle_framework/resource/test_bundle/${hap_name}.hap" testonly = true deps = [ ":hjs_demo_js_assets", -- Gitee