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 d79539e04ee10c3098f1fc22a5156631479bed0d..22e09a0ac6399ed1aae2417e9cf3e3931be1aabb 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"; }