提交 07038e1b 编写于 作者: L ling990

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

Signed-off-by: Nling990 <ling990@qq.com>
上级 3950853a
...@@ -60,7 +60,7 @@ describe('AudioEncoderFuncCallback', function () { ...@@ -60,7 +60,7 @@ describe('AudioEncoderFuncCallback', function () {
sawOutputEOS = false; sawOutputEOS = false;
inputQueue = []; inputQueue = [];
outputQueue = []; outputQueue = [];
ES_LENGTH = 2000; ES_LENGTH = 1500;
}) })
afterEach(async function() { afterEach(async function() {
...@@ -309,7 +309,7 @@ describe('AudioEncoderFuncCallback', function () { ...@@ -309,7 +309,7 @@ describe('AudioEncoderFuncCallback', function () {
let mediaDescription2 = { let mediaDescription2 = {
"codec_mime": 'audio/mp4a-latm', "codec_mime": 'audio/mp4a-latm',
} }
let savepath = BASIC_PATH + 'callback0000.aac'; let savepath = BASIC_PATH + '0000.aac';
needGetMediaDes = true; needGetMediaDes = true;
workdoneAtEOS = true; workdoneAtEOS = true;
eventEmitter.on('getAudioEncoderCaps', () => { eventEmitter.on('getAudioEncoderCaps', () => {
...@@ -389,7 +389,7 @@ describe('AudioEncoderFuncCallback', function () { ...@@ -389,7 +389,7 @@ describe('AudioEncoderFuncCallback', function () {
"sample_rate": 44100, "sample_rate": 44100,
"audio_sample_format": 1, "audio_sample_format": 1,
} }
let savepath = BASIC_PATH + 'callback0100.aac'; let savepath = BASIC_PATH + '0100.aac';
eosframenum = 500; eosframenum = 500;
workdoneAtEOS = true; workdoneAtEOS = true;
eventEmitter.on('getAudioEncoderCaps', () => { eventEmitter.on('getAudioEncoderCaps', () => {
...@@ -447,7 +447,7 @@ describe('AudioEncoderFuncCallback', function () { ...@@ -447,7 +447,7 @@ describe('AudioEncoderFuncCallback', function () {
"sample_rate": 44100, "sample_rate": 44100,
"audio_sample_format": 1, "audio_sample_format": 1,
} }
let savepath = BASIC_PATH + 'callback0200.aac'; let savepath = BASIC_PATH + '0200.aac';
workdoneAtEOS = true; workdoneAtEOS = true;
eventEmitter.on('getAudioEncoderCaps', () => { eventEmitter.on('getAudioEncoderCaps', () => {
audioEncodeProcessor.getAudioEncoderCaps((err, Audiocaps) => { audioEncodeProcessor.getAudioEncoderCaps((err, Audiocaps) => {
...@@ -513,7 +513,7 @@ describe('AudioEncoderFuncCallback', function () { ...@@ -513,7 +513,7 @@ describe('AudioEncoderFuncCallback', function () {
"sample_rate": 44100, "sample_rate": 44100,
"audio_sample_format": 1, "audio_sample_format": 1,
} }
let savepath = BASIC_PATH + 'callback0300.aac'; let savepath = BASIC_PATH + '0300.aac';
eosframenum = 500; eosframenum = 500;
flushAtEOS = true; flushAtEOS = true;
eventEmitter.on('getAudioEncoderCaps', () => { eventEmitter.on('getAudioEncoderCaps', () => {
...@@ -571,7 +571,7 @@ describe('AudioEncoderFuncCallback', function () { ...@@ -571,7 +571,7 @@ describe('AudioEncoderFuncCallback', function () {
"sample_rate": 44100, "sample_rate": 44100,
"audio_sample_format": 1, "audio_sample_format": 1,
} }
let savepath = BASIC_PATH + 'callback0400.aac'; let savepath = BASIC_PATH + '0400.aac';
eventEmitter.on('getAudioEncoderCaps', () => { eventEmitter.on('getAudioEncoderCaps', () => {
audioEncodeProcessor.getAudioEncoderCaps((err, Audiocaps) => { audioEncodeProcessor.getAudioEncoderCaps((err, Audiocaps) => {
expect(err).assertUndefined(); expect(err).assertUndefined();
...@@ -653,7 +653,7 @@ describe('AudioEncoderFuncCallback', function () { ...@@ -653,7 +653,7 @@ describe('AudioEncoderFuncCallback', function () {
"sample_rate": 44100, "sample_rate": 44100,
"audio_sample_format": 1, "audio_sample_format": 1,
} }
let savepath = BASIC_PATH + 'callback0500.aac'; let savepath = BASIC_PATH + '0500.aac';
eosframenum = 100; eosframenum = 100;
eventEmitter.on('getAudioEncoderCaps', () => { eventEmitter.on('getAudioEncoderCaps', () => {
audioEncodeProcessor.getAudioEncoderCaps((err, Audiocaps) => { audioEncodeProcessor.getAudioEncoderCaps((err, Audiocaps) => {
...@@ -732,7 +732,7 @@ describe('AudioEncoderFuncCallback', function () { ...@@ -732,7 +732,7 @@ describe('AudioEncoderFuncCallback', function () {
"sample_rate": 44100, "sample_rate": 44100,
"audio_sample_format": 1, "audio_sample_format": 1,
} }
let savepath = BASIC_PATH + 'callback0600.aac'; let savepath = BASIC_PATH + '0600.aac';
eosframenum = 100; eosframenum = 100;
resetAtEOS = true; resetAtEOS = true;
let mediaDescription2 = { let mediaDescription2 = {
...@@ -781,7 +781,7 @@ describe('AudioEncoderFuncCallback', function () { ...@@ -781,7 +781,7 @@ describe('AudioEncoderFuncCallback', function () {
console.info(`case configure 2`); console.info(`case configure 2`);
resetParam(); resetParam();
readFile(AUDIOPATH) readFile(AUDIOPATH)
savepath = BASIC_PATH + 'callback0601.aac'; savepath = BASIC_PATH + '0601.aac';
workdoneAtEOS = true; workdoneAtEOS = true;
hasreconfigured = true; hasreconfigured = true;
eventEmitter.emit('prepare'); eventEmitter.emit('prepare');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册