fix: codec hdi 1.0 parameter optimization

Signed-off-by: zhangguorong <zhangguorong@kaihong.com>
This commit is contained in:
zhangguorong 2023-02-16 10:36:45 +08:00
parent 78942365d3
commit 51b6cd32cb

View File

@ -321,21 +321,6 @@ HWTEST_F(CodecProxyTest, SUB_DriverSystem_CodecHdi_V1_0133, TestSize.Level1)
}
HWTEST_F(CodecProxyTest, SUB_DriverSystem_CodecHdi_V1_0140, TestSize.Level1)
{
Param *params;
int paramCnt = 1;
params = (Param *)OsalMemAlloc(sizeof(Param)*paramCnt);
ASSERT_TRUE(params != nullptr);
params->key = (ParamKey)ParamExtKey::KEY_EXT_DEFAULT_CFG_RK;
params->val = nullptr;
params->size = 0;
int32_t errorCode = g_codecObj->CodecGetParameter(g_codecObj, g_handle, params, paramCnt);
OsalMemFree(params);
ASSERT_EQ(errorCode, HDF_SUCCESS);
}
HWTEST_F(CodecProxyTest, SUB_DriverSystem_CodecHdi_V1_0141, TestSize.Level1)
{
Param *params;
int paramCnt = 1;
@ -350,7 +335,7 @@ HWTEST_F(CodecProxyTest, SUB_DriverSystem_CodecHdi_V1_0141, TestSize.Level1)
ASSERT_EQ(errorCode, HDF_SUCCESS);
}
HWTEST_F(CodecProxyTest, SUB_DriverSystem_CodecHdi_V1_0142, TestSize.Level1)
HWTEST_F(CodecProxyTest, SUB_DriverSystem_CodecHdi_V1_0141, TestSize.Level1)
{
Param *params;
int paramCnt = 1;
@ -366,7 +351,7 @@ HWTEST_F(CodecProxyTest, SUB_DriverSystem_CodecHdi_V1_0142, TestSize.Level1)
ASSERT_EQ(errorCode, HDF_SUCCESS);
}
HWTEST_F(CodecProxyTest, SUB_DriverSystem_CodecHdi_V1_0143, TestSize.Level1)
HWTEST_F(CodecProxyTest, SUB_DriverSystem_CodecHdi_V1_0142, TestSize.Level1)
{
Param *params;
int paramCnt = 1;