提交 40de8bc6 编写于 作者: O openharmony_ci 提交者: Gitee

!430 解决在3516开发板上执行ActsMediaRecorderNDKTest.cpp的失败用例问题

Merge pull request !430 from limeng/multimedia_lite_20210816_01
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册