From caaf15275d5f5c8f717a293e0a1680add3217888 Mon Sep 17 00:00:00 2001 From: zhaona45 Date: Thu, 4 Sep 2025 11:02:17 +0800 Subject: [PATCH] Fix tdd failed. Signed-off-by: zhaona45 --- .../test/unittest/plugin_test/ext_decoder_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/innerkitsimpl/test/unittest/plugin_test/ext_decoder_test.cpp b/frameworks/innerkitsimpl/test/unittest/plugin_test/ext_decoder_test.cpp index d79539e04..22e09a0ac 100644 --- a/frameworks/innerkitsimpl/test/unittest/plugin_test/ext_decoder_test.cpp +++ b/frameworks/innerkitsimpl/test/unittest/plugin_test/ext_decoder_test.cpp @@ -264,7 +264,7 @@ HWTEST_F(ExtDecoderTest, CheckDecodeOptionsTest001, TestSize.Level3) extDecoder->dstInfo_.fColorInfo.fColorType = SkColorType::kAlpha_8_SkColorType; opts.CropRect.left = -1; opts.CropRect.top = -1; - ret = extDecoder->CheckDecodeOptions(index, opts); + ret = extDecoder->CheckCropRect(opts); ASSERT_EQ(ret, ERR_IMAGE_INVALID_PARAMETER); opts.CropRect.left = 0; @@ -272,7 +272,7 @@ HWTEST_F(ExtDecoderTest, CheckDecodeOptionsTest001, TestSize.Level3) opts.CropRect.width = 1; opts.CropRect.height = 1; extDecoder->info_.fDimensions = {0, 0}; - ret = extDecoder->CheckDecodeOptions(index, opts); + ret = extDecoder->CheckCropRect(opts); ASSERT_EQ(ret, SUCCESS); GTEST_LOG_(INFO) << "ExtDecoderTest: CheckDecodeOptionsTest001 end"; } -- Gitee