提交 d1b8ba45 编写于 作者: L ling990

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

Signed-off-by: Nling990 <ling990@qq.com>
上级 bb05c3aa
......@@ -712,7 +712,7 @@ describe('AudioDecoderFuncCallback', function () {
audioDecodeProcessor.start(async(err) => {
expect(err).assertUndefined();
console.info(`case start 1`);
await sleep(2000);
await sleep(500);
eventEmitter.emit('flush');
})
});
......
......@@ -644,7 +644,7 @@ describe('AudioDecoderFuncPromise', function () {
await audioDecodeProcessor.start().then(() => {
console.info("case start success");
}, failCallback).catch(failCatch);
await sleep(3000).then(() => {
await sleep(500).then(() => {
inputQueue = [];
outputQueue = [];
audioDecodeProcessor.flush().then(() => {
......
......@@ -543,7 +543,7 @@ describe('AudioEncoderFuncCallback', function () {
audioEncodeProcessor.start(async(err) => {
expect(err).assertUndefined();
console.info(`case start 1`);
await sleep(2000);
await sleep(500);
eventEmitter.emit('flush');
})
});
......
......@@ -498,7 +498,7 @@ describe('AudioEncoderFuncPromise', function () {
await audioEncodeProcessor.start().then(() => {
console.info("case start success")
}, failCallback).catch(failCatch);
await sleep(5000).then(() => {
await sleep(500).then(() => {
inputQueue = [];
outputQueue = [];
audioEncodeProcessor.flush().then(() => {
......
......@@ -490,7 +490,7 @@ describe('VideoDecoderReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_FUNCTION_CALLBACK_01_0300', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_ALL_OUTS);
eosFrameId = 50;
eosFrameId = 10;
workdoneAtEOS = true;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
......@@ -519,9 +519,9 @@ describe('VideoDecoderReliCallbackTest', function () {
*/
it('SUB_MEDIA_VIDEO_DECODER_FUNCTION_CALLBACK_01_0500', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP,
DECODE_STEP.RESET, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
......@@ -605,7 +605,7 @@ describe('VideoDecoderReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_CONFIGURE_CALLBACK_0600', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.CONFIGURE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
......@@ -743,7 +743,7 @@ describe('VideoDecoderReliCallbackTest', function () {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS ,
DECODE_STEP.PREPARE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
......@@ -855,7 +855,7 @@ describe('VideoDecoderReliCallbackTest', function () {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.START,
DECODE_STEP.ERROR, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
......@@ -966,7 +966,7 @@ describe('VideoDecoderReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_FLUSH_CALLBACK_0700', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
......@@ -1077,7 +1077,7 @@ describe('VideoDecoderReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_STOP_CALLBACK_0700', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
......@@ -1188,7 +1188,7 @@ describe('VideoDecoderReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_RESET_CALLBACK_0700', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
......@@ -1217,7 +1217,7 @@ describe('VideoDecoderReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_EOS_CALLBACK_0100', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.STOP, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
......@@ -1232,7 +1232,7 @@ describe('VideoDecoderReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_EOS_CALLBACK_0200', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
......@@ -1247,7 +1247,7 @@ describe('VideoDecoderReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_EOS_CALLBACK_0300', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.CONFIGURE, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
......@@ -1262,7 +1262,7 @@ describe('VideoDecoderReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_EOS_CALLBACK_0400', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
......@@ -1277,7 +1277,7 @@ describe('VideoDecoderReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_EOS_CALLBACK_0500', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
})
......@@ -484,7 +484,7 @@ describe('VideoDecoderReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_FUNCTION_PROMISE_01_0300', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_ALL_OUTS);
eosFrameId = 50;
eosFrameId = 10;
workdoneAtEOS = true;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
......@@ -513,9 +513,9 @@ describe('VideoDecoderReliPromiseTest', function () {
*/
it('SUB_MEDIA_VIDEO_DECODER_FUNCTION_PROMISE_01_0500', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP,
DECODE_STEP.RESET, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
......@@ -599,7 +599,7 @@ describe('VideoDecoderReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_CONFIGURE_PROMISE_0600', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.CONFIGURE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
......@@ -737,7 +737,7 @@ describe('VideoDecoderReliPromiseTest', function () {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS ,
DECODE_STEP.PREPARE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
......@@ -849,7 +849,7 @@ describe('VideoDecoderReliPromiseTest', function () {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.START,
DECODE_STEP.ERROR, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
......@@ -960,7 +960,7 @@ describe('VideoDecoderReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_FLUSH_PROMISE_0700', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
......@@ -1071,7 +1071,7 @@ describe('VideoDecoderReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_STOP_PROMISE_0700', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
......@@ -1182,7 +1182,7 @@ describe('VideoDecoderReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_RESET_PROMISE_0700', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
......@@ -1211,7 +1211,7 @@ describe('VideoDecoderReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_EOS_PROMISE_0100', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.STOP, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
......@@ -1226,7 +1226,7 @@ describe('VideoDecoderReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_EOS_PROMISE_0200', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
......@@ -1241,7 +1241,7 @@ describe('VideoDecoderReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_EOS_PROMISE_0300', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.CONFIGURE, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
......@@ -1256,7 +1256,7 @@ describe('VideoDecoderReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_EOS_PROMISE_0400', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
......@@ -1271,7 +1271,7 @@ describe('VideoDecoderReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_EOS_PROMISE_0500', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done);
})
})
......@@ -491,7 +491,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_FUNCTION_CALLBACK_01_0300', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_ALL_OUTS);
eosFrameId = 50;
eosFrameId = 10;
workdoneAtEOS = true;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
......@@ -520,9 +520,9 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
*/
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_FUNCTION_CALLBACK_01_0500', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP,
DECODE_STEP.RESET, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
......@@ -606,7 +606,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_CONFIGURE_CALLBACK_0600', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.CONFIGURE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
......@@ -744,7 +744,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS ,
DECODE_STEP.PREPARE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
......@@ -856,7 +856,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.START,
DECODE_STEP.ERROR, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
......@@ -967,7 +967,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_FLUSH_CALLBACK_0700', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
......@@ -1078,7 +1078,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_STOP_CALLBACK_0700', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
......@@ -1189,7 +1189,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_RESET_CALLBACK_0700', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
......@@ -1218,7 +1218,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_CALLBACK_0100', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.STOP, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
......@@ -1233,7 +1233,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_CALLBACK_0200', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
......@@ -1248,7 +1248,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_CALLBACK_0300', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.CONFIGURE, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
......@@ -1263,7 +1263,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_CALLBACK_0400', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
......@@ -1278,7 +1278,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_CALLBACK_0500', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
})
......@@ -486,7 +486,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_FUNCTION_PROMISE_01_0300', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_ALL_OUTS);
eosFrameId = 50;
eosFrameId = 10;
workdoneAtEOS = true;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
......@@ -515,9 +515,9 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
*/
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_FUNCTION_PROMISE_01_0500', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP,
DECODE_STEP.RESET, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
......@@ -601,7 +601,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_CONFIGURE_PROMISE_0600', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.CONFIGURE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
......@@ -739,7 +739,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS ,
DECODE_STEP.PREPARE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
......@@ -851,7 +851,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.START,
DECODE_STEP.ERROR, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
......@@ -962,7 +962,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_FLUSH_PROMISE_0700', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
......@@ -1073,7 +1073,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_STOP_PROMISE_0700', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
......@@ -1184,7 +1184,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_RESET_PROMISE_0700', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
......@@ -1213,7 +1213,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_PROMISE_0100', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.STOP, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
......@@ -1228,7 +1228,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_PROMISE_0200', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
......@@ -1243,7 +1243,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_PROMISE_0300', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.CONFIGURE, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
......@@ -1258,7 +1258,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_PROMISE_0400', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
......@@ -1273,7 +1273,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_PROMISE_0500', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP, DECODE_STEP.RELEASE);
eosFrameId = 50;
eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done);
})
})
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册