提交 a9123595 编写于 作者: L ling990

modify testcases Signed-off-by: ling990 <liling96@huawei.com>

Signed-off-by: Nling990 <ling990@qq.com>
上级 fec73bd9
......@@ -32,7 +32,6 @@
#include "nocopyable.h"
#include "ndktest_log.h"
namespace OHOS {
namespace Media {
class ADecEncSignal {
......
......@@ -46,4 +46,4 @@ public:
};
}
}
#endif
\ No newline at end of file
#endif // ACTSAUDIODECODER_NDK_FUNC_TEST_H
\ No newline at end of file
......@@ -378,7 +378,7 @@ void ADecEncNdkSample::InputFuncDec()
cout << "Fatal: OH_AudioDecoder_PushInputData fail" << endl;
acodecSignal_->errorNum_ += 1;
} else {
decInCnt_ ++;
decInCnt_++;
}
timeStampDec_ += SAMPLE_DURATION_US;
PopInqueueDec();
......@@ -618,7 +618,7 @@ void ADecEncNdkSample::InputFuncEnc()
cout << "Fatal error, exit" << endl;
acodecSignal_->errorNum_ += 1;
} else {
encInCnt_ ++;
encInCnt_++;
}
timeStampEnc_ += SAMPLE_DURATION_US;
PopOutqueueDec();
......@@ -685,7 +685,7 @@ void ADecEncNdkSample::OutputFuncEnc()
acodecSignal_->errorNum_ += 1;
} else {
encOutCnt_ += 1;
cout << "ENC output cnt: "<< encOutCnt_ << endl;
cout << "ENC output cnt: " << encOutCnt_ << endl;
}
}
PopOutqueueEnc();
......@@ -703,7 +703,7 @@ void ADecEncNdkSample::ReRead()
{
if (testFile_ != nullptr) {
testFile_->close();
cout << "ReRead close before file success "<< endl;
cout << "ReRead close before file success " << endl;
}
cout << "ReRead INP_FILE is " << INP_FILE << endl;
testFile_->open(INP_FILE, std::ios::in | std::ios::binary);
......
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
......@@ -53,4 +53,4 @@
if (!(cond)) { \
(void)printf("%s\n", fmt, ##__VA_ARGS__); \
}
#endif // NDK_LOG_H
\ No newline at end of file
#endif // NDKTEST_LOG_H
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册