提交 a9123595 编写于 作者: L ling990

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

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