mirror of
https://gitee.com/openharmony/xts_hats
synced 2024-11-27 17:12:20 +00:00
fix: codec hdi 1.0 parameter optimization
Signed-off-by: zhangguorong <zhangguorong@kaihong.com>
This commit is contained in:
parent
78942365d3
commit
51b6cd32cb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user