提交 50dcd3cc 编写于 作者: L limeng

fix ActsMediaRecorderNDKTest.cpp testcase

Signed-off-by: Nlimeng <limeng151@huawei.com>
Change-Id: I594590c9e3bb1352d8bf723ebc33844ff104176c
上级 f6e050c2
......@@ -163,7 +163,8 @@ HWTEST_F(ActsMediaRecorderNDKTest, Test_SetVideoSource05, Function | MediumTest
cout << "Test_SetVideoSource01 starting..." << endl;
Recorder *recorder = new Recorder();
for (int32_t i = 0; i < g_recoderSourceMaxCount; i++) {
int32_t ret = recorder->SetVideoSource(VIDEO_SOURCE_SURFACE_ES, i);
int32_t temp = i;
int32_t ret = recorder->SetVideoSource(VIDEO_SOURCE_SURFACE_ES, temp);
EXPECT_EQ(RET_OK, ret);
}
int32_t ret = recorder->SetVideoSource(VIDEO_SOURCE_SURFACE_ES, g_recoderSourceMaxCount);
......@@ -540,12 +541,13 @@ HWTEST_F(ActsMediaRecorderNDKTest, Test_SetAudioSource03, Function | MediumTest
{
Recorder *recorder = new Recorder();
for (int32_t i = 0; i < g_recoderSourceMaxCount; i++) {
int32_t ret = recorder->SetAudioSource(AUDIO_MIC, i);
int32_t tempSourceId = i;
int32_t ret = recorder->SetAudioSource(AUDIO_MIC, tempSourceId);
cout << i << endl;
EXPECT_EQ(RET_OK, ret);
}
int32_t ret = recorder->SetAudioSource(AUDIO_MIC, g_recoderSourceMaxCount);
EXPECT_EQ(ERR_NOFREE_CHANNEL, ret);
int32_t ret = recorder->SetAudioSource(AUDIO_MIC, g_recoderSourceMaxCount) ;
EXPECT_EQ(ERR_NOFREE_CHANNEL, ret) ;
delete recorder;
recorder = NULL;
}
......@@ -1079,4 +1081,4 @@ HWTEST_F(ActsMediaRecorderNDKTest, Test_SetOutputFormat3, Function | MediumTest
EXPECT_EQ(RET_OK, ret);
delete recorder;
recorder = NULL;
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册