提交 9cd09a84 编写于 作者: D daiweiqi

modify audioTestCase Name

Signed-off-by: Ndaiweiqi <daiweiqi@huawei.com>
上级 c9bb741b
......@@ -835,14 +835,14 @@ describe('audioCapturerChange', function () {
/**
*@tc.number : SUB_MULTIMEDIA_OFF_CAPTURER_CHANGE_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_OFF_CAPTURER_CHANGE_0100
*@tc.name : AudioCapturerChange - OFF_STATE_PREPARED
*@tc.desc : AudioCapturerChange - OFF_STATE_PREPARED
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 1
*/
it('SUB_MULTIMEDIA_OFF_CAPTURER_CHANGE_0100', 1, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_OFF_CAPTURER_CHANGE_0100', 1, async function (done) {
var AudioStreamInfo = {
samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100,
......@@ -912,14 +912,14 @@ describe('audioCapturerChange', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_OFF_CAPTURER_CHANGE_0200
*@tc.number : SUB_MULTIMEDIA_AUDIO_OFF_CAPTURER_CHANGE_0200
*@tc.name : AudioCapturerChange - OFF_STATE_RUNNING
*@tc.desc : AudioCapturerChange - OFF_STATE_RUNNING
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 1
*/
it('SUB_MULTIMEDIA_OFF_CAPTURER_CHANGE_0200', 1, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_OFF_CAPTURER_CHANGE_0200', 1, async function (done) {
var AudioStreamInfo = {
samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100,
......@@ -996,14 +996,14 @@ describe('audioCapturerChange', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_OFF_CAPTURER_CHANGE_0300
*@tc.number : SUB_MULTIMEDIA_AUDIO_OFF_CAPTURER_CHANGE_0300
*@tc.name : AudioCapturerChange - OFF_STATE_STOPPED
*@tc.desc : AudioCapturerChange - OFF_STATE_STOPPED
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it('SUB_MULTIMEDIA_OFF_CAPTURER_CHANGE_0300', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_OFF_CAPTURER_CHANGE_0300', 2, async function (done) {
var AudioStreamInfo = {
samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100,
......@@ -1087,14 +1087,14 @@ describe('audioCapturerChange', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_OFF_CAPTURER_CHANGE_0400
*@tc.number : SUB_MULTIMEDIA_AUDIO_OFF_CAPTURER_CHANGE_0400
*@tc.name : AudioCapturerChange - OFF_STATE_RELEASED
*@tc.desc : AudioCapturerChange - OFF_STATE_RELEASED
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it('SUB_MULTIMEDIA_OFF_CAPTURER_CHANGE_0400', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_OFF_CAPTURER_CHANGE_0400', 2, async function (done) {
var AudioStreamInfo = {
samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100,
......@@ -1177,14 +1177,14 @@ describe('audioCapturerChange', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_OFF_CAPTURER_CHANGE_0500
*@tc.number : SUB_MULTIMEDIA_AUDIO_OFF_CAPTURER_CHANGE_0500
*@tc.name : AudioCapturerChange - DeviceDescriptor
*@tc.desc : AudioCapturerChange - DeviceDescriptor
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it('SUB_MULTIMEDIA_OFF_CAPTURER_CHANGE_0500', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_OFF_CAPTURER_CHANGE_0500', 2, async function (done) {
var AudioStreamInfo = {
samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100,
......@@ -1262,14 +1262,14 @@ describe('audioCapturerChange', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_PROMISE_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_GET_CAPTURER_CHANGE_PROMISE_0100
*@tc.name : AudioCapturerChange - GET_STATE_PREPARED
*@tc.desc : AudioCapturerChange - GET_STATE_PREPARED
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it('SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_PROMISE_0100', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_AUDIO_GET_CAPTURER_CHANGE_PROMISE_0100', 2, async function (done) {
var audioCap;
var AudioStreamInfo = {
samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100,
......@@ -1366,14 +1366,14 @@ describe('audioCapturerChange', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_PROMISE_0200
*@tc.number : SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_PROMISE_0200
*@tc.name : AudioCapturerChange - GET_STATE_RUNNING
*@tc.desc : AudioCapturerChange - GET_STATE_RUNNING
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it('SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_PROMISE_0200', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_PROMISE_0200', 2, async function (done) {
var AudioStreamInfo = {
samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100,
......@@ -1482,14 +1482,14 @@ describe('audioCapturerChange', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_PROMISE_0300
*@tc.number : SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_PROMISE_0300
*@tc.name : AudioCapturerChange - GET_STATE_STOPPED
*@tc.desc : AudioCapturerChange - GET_STATE_STOPPED
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it('SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_PROMISE_0300', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_PROMISE_0300', 2, async function (done) {
var AudioStreamInfo = {
samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100,
......@@ -1605,14 +1605,14 @@ describe('audioCapturerChange', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_PROMISE_0400
*@tc.number : SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_PROMISE_0400
*@tc.name : AudioCapturerChange - DEVICE DESCRIPTOR
*@tc.desc : AudioCapturerChange - DEVICE DESCRIPTOR
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it('SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_PROMISE_0400', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_PROMISE_0400', 2, async function (done) {
var audioCap;
var AudioStreamInfo = {
samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100,
......@@ -1713,14 +1713,14 @@ describe('audioCapturerChange', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_CALLBACK_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_CALLBACK_0100
*@tc.name : AudioCapturerChange - GET_STATE_PREPARED
*@tc.desc : AudioCapturerChange - GET_STATE_PREPARED
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it('SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_CALLBACK_0100', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_CALLBACK_0100', 2, async function (done) {
var audioCap;
var AudioStreamInfo = {
samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100,
......@@ -1823,14 +1823,14 @@ describe('audioCapturerChange', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_CALLBACK_0200
*@tc.number : SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_CALLBACK_0200
*@tc.name : AudioCapturerChange - GET_STATE_RUNNING
*@tc.desc : AudioCapturerChange - GET_STATE_RUNNING
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it('SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_CALLBACK_0200', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_CALLBACK_0200', 2, async function (done) {
var AudioStreamInfo = {
samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100,
......@@ -1945,14 +1945,14 @@ describe('audioCapturerChange', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_CALLBACK_0300
*@tc.number : SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_CALLBACK_0300
*@tc.name : AudioCapturerChange - GET_STATE_STOPPED
*@tc.desc : AudioCapturerChange - GET_STATE_STOPPED
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it('SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_CALLBACK_0300', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_CALLBACK_0300', 2, async function (done) {
var AudioStreamInfo = {
samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100,
......@@ -2074,14 +2074,14 @@ describe('audioCapturerChange', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_CALLBACK_0400
*@tc.number : SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_CALLBACK_0400
*@tc.name : AudioCapturerChange - DEVICE DESCRIPTOR
*@tc.desc : AudioCapturerChange - DEVICE DESCRIPTOR
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it('SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_CALLBACK_0400', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_CALLBACK_0400', 2, async function (done) {
var audioCap;
var AudioStreamInfo = {
samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100,
......
......@@ -84,14 +84,14 @@ describe('audioEM', function () {
/**
*@tc.number : SUB_MULTIMEDIA_MANAGER_GETAUDIOMANAGER_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_GETAUDIOMANAGER_0100
*@tc.name : getAudioManger is Not returned Empty
*@tc.desc : Check getAudioManger is not empty
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it('SUB_MULTIMEDIA_MANAGER_GETAUDIOMANAGER_0100', 0, function (done) {
it('SUB_MULTIMEDIA_AUDIO_MANAGER_GETAUDIOMANAGER_0100', 0, function (done) {
if (audioManager != null) {
console.info('AudioFrameworkTest: getAudioManger : PASS');
expect(true).assertTrue();
......@@ -105,14 +105,14 @@ describe('audioEM', function () {
/**
*@tc.number : SUB_MULTIMEDIA_MANAGER_GETDEVICES_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_0100
*@tc.name : getDevices - Output device - Promise - ENAME
*@tc.desc : getDevices - Output device
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it('SUB_MULTIMEDIA_MANAGER_GETDEVICES_0100', 0, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_0100', 0, async function (done) {
deviceRoleValue = null;
deviceTypeValue = null;
const promise = audioManager.getDevices(audio.DeviceFlag.OUTPUT_DEVICES_FLAG)
......@@ -134,14 +134,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_PR_GETDEVICES_OUTPUT_ENUM_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_PR_GETDEVICES_OUTPUT_ENUM_0100
*@tc.name : getDevices - Output device - Promise - ENAME -
*@tc.desc : getDevices - Output device
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it('SUB_MULTIMEDIA_AUDIO_MANAGER_PR_GETDEVICES_OUTPUT_ENUM_0100', 0, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_PR_GETDEVICES_OUTPUT_ENUM_0100', 0, async function (done) {
deviceRoleValue = null;
deviceTypeValue = null;
const promise = audioManager.getDevices(1)
......@@ -163,14 +163,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_PR_GETDEVICES_INPUT_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_PR_GETDEVICES_INPUT_0100
*@tc.name : getDevices - Input device - Promise - ENAME
*@tc.desc : getDevices - Input device
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it('SUB_MULTIMEDIA_AUDIO_MANAGER_PR_GETDEVICES_INPUT_0100', 0, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_PR_GETDEVICES_INPUT_0100', 0, async function (done) {
deviceRoleValue = null;
deviceTypeValue = null;
const promise = audioManager.getDevices(audio.DeviceFlag.INPUT_DEVICES_FLAG);
......@@ -191,14 +191,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_PR_GETDEVICES_INTPUT_ENUM_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_PR_GETDEVICES_INTPUT_ENUM_0100
*@tc.name : getDevices - Input device - Promise - ENAME
*@tc.desc : getDevices - Input device
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it('SUB_MULTIMEDIA_AUDIO_MANAGER_PR_GETDEVICES_INTPUT_ENUM_0100', 0, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_PR_GETDEVICES_INTPUT_ENUM_0100', 0, async function (done) {
deviceRoleValue = null;
deviceTypeValue = null;
const promise = audioManager.getDevices(2);
......@@ -220,14 +220,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_PR_GETDEVICES_ALL_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_PR_GETDEVICES_ALL_0100
*@tc.name : getDevices - ALL device - Promise - ENAME
*@tc.desc : getDevices - ALL device
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it('SUB_MULTIMEDIA_AUDIO_MANAGER_PR_GETDEVICES_ALL_0100', 0, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_PR_GETDEVICES_ALL_0100', 0, async function (done) {
deviceRoleValue = null;
deviceTypeValue = null;
const promise = audioManager.getDevices(audio.DeviceFlag.ALL_DEVICES_FLAG);
......@@ -249,14 +249,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_PR_GETDEVICES_ALL_ENUM_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_PR_GETDEVICES_ALL_ENUM_0100
*@tc.name : getDevices - ALL device - Promise - ENAME
*@tc.desc : getDevices - ALL device
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it('SUB_MULTIMEDIA_AUDIO_MANAGER_PR_GETDEVICES_ALL_ENUM_0100', 0, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_PR_GETDEVICES_ALL_ENUM_0100', 0, async function (done) {
deviceRoleValue = null;
deviceTypeValue = null;
const promise = audioManager.getDevices(3);
......@@ -278,14 +278,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_CB_GETDEVICES_OUTPUT_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_CB_GETDEVICES_OUTPUT_0100
*@tc.name : getDevices - Output device - Callback - ENAME
*@tc.desc : getDevices - Output device
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it('SUB_MULTIMEDIA_AUDIO_MANAGER_CB_GETDEVICES_OUTPUT_0100', 0, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_CB_GETDEVICES_OUTPUT_0100', 0, async function (done) {
deviceRoleValue = null;
deviceTypeValue = null;
audioManager.getDevices(audio.DeviceFlag.OUTPUT_DEVICES_FLAG, (err, value) => {
......@@ -311,14 +311,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_CB_GETDEVICES_OUTPUT_ENUM_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_CB_GETDEVICES_OUTPUT_ENUM_0100
*@tc.name : getDevices - Output device - Callback - ENAME
*@tc.desc : getDevices - Output device
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it('SUB_MULTIMEDIA_AUDIO_MANAGER_CB_GETDEVICES_OUTPUT_ENUM_0100', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_CB_GETDEVICES_OUTPUT_ENUM_0100', 2, async function (done) {
deviceRoleValue = null;
deviceTypeValue = null;
audioManager.getDevices(1, (err, value) => {
......@@ -344,14 +344,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_CB_GETDEVICES_INPUT_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_CB_GETDEVICES_INPUT_0100
*@tc.name : getDevices - Input device - Callback - ENAME
*@tc.desc : getDevices - Input device
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it('SUB_MULTIMEDIA_AUDIO_MANAGER_CB_GETDEVICES_INPUT_0100', 0, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_CB_GETDEVICES_INPUT_0100', 0, async function (done) {
deviceRoleValue = null;
deviceTypeValue = null;
audioManager.getDevices(audio.DeviceFlag.INPUT_DEVICES_FLAG, (err, value) => {
......@@ -378,14 +378,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_CB_GETDEVICES_INPUT_ENUM_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_CB_GETDEVICES_INPUT_ENUM_0100
*@tc.name : getDevices - Input device - Callback - ENAME
*@tc.desc : getDevices - Input device
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it('SUB_MULTIMEDIA_AUDIO_MANAGER_CB_GETDEVICES_INPUT_ENUM_0100', 0, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_CB_GETDEVICES_INPUT_ENUM_0100', 0, async function (done) {
deviceRoleValue = null;
deviceTypeValue = null;
audioManager.getDevices(2, (err, value) => {
......@@ -412,14 +412,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_CB_GETDEVICES_ALL_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_CB_GETDEVICES_ALL_0100
*@tc.name : getDevices - ALL device - Callback - ENAME
*@tc.desc : getDevices - ALL device
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it('SUB_MULTIMEDIA_AUDIO_MANAGER_CB_GETDEVICES_ALL_0100', 0, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_CB_GETDEVICES_ALL_0100', 0, async function (done) {
deviceRoleValue = null;
deviceTypeValue = null;
audioManager.getDevices(audio.DeviceFlag.ALL_DEVICES_FLAG, (err, value) => {
......@@ -445,14 +445,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_CB_GETDEVICES_ALL_ENUM_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_CB_GETDEVICES_ALL_ENUM_0100
*@tc.name : getDevices - ALL device - Callback - ENAME
*@tc.desc : getDevices - ALL device
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it('SUB_MULTIMEDIA_AUDIO_MANAGER_CB_GETDEVICES_ALL_ENUM_0100', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_CB_GETDEVICES_ALL_ENUM_0100', 2, async function (done) {
deviceRoleValue = null;
deviceTypeValue = null;
audioManager.getDevices(3, (err, value) => {
......@@ -478,14 +478,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_PR_DEACTIVATE_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_PR_DEACTIVATE_0100
*@tc.name : setDeviceActive - SPEAKER - deactivate - Promise
*@tc.desc : Deactivate speaker - Promise
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it('SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_PR_DEACTIVATE_0100', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_PR_DEACTIVATE_0100', 2, async function (done) {
await audioManager.setDeviceActive(audio.ActiveDeviceType.SPEAKER, false).then(function () {
// Setting device active ENUM 2 = SPEAKER
console.info('AudioFrameworkTest: Device Test: Promise : setDeviceActive : SPEAKER: Deactivate');
......@@ -507,14 +507,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_PR_DEACTIVATE_ENUM_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_PR_DEACTIVATE_ENUM_0100
*@tc.name : setDeviceActive - SPEAKER - deactivate - Promise
*@tc.desc : Deactivate speaker - Promise
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it('SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_PR_DEACTIVATE_ENUM_0100', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_PR_DEACTIVATE_ENUM_0100', 2, async function (done) {
await audioManager.setDeviceActive(2, true).then(function () {
console.info('AudioFrameworkTest: Device Test: Promise : setDeviceActive : SPEAKER: Active');
});
......@@ -539,14 +539,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_PR_ACTIVATE_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_PR_ACTIVATE_0100
*@tc.name : setDeviceActive - SPEAKER - Activate - Promise
*@tc.desc : Activate speaker - Promise
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it('SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_PR_ACTIVATE_0100', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_PR_ACTIVATE_0100', 2, async function (done) {
await audioManager.setDeviceActive(audio.ActiveDeviceType.SPEAKER, true).then(function () {
console.info('AudioFrameworkTest: Device Test: Promise : setDeviceActive : SPEAKER: Activate');
audioManager.isDeviceActive(audio.ActiveDeviceType.SPEAKER).then(function (value) {
......@@ -567,14 +567,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_PR_ACTIVATE_ENUM_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_PR_ACTIVATE_ENUM_0100
*@tc.name : setDeviceActive - SPEAKER - Activate - Promise
*@tc.desc : Activate speaker - Promise
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it('SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_PR_ACTIVATE_ENUM_0100', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_PR_ACTIVATE_ENUM_0100', 2, async function (done) {
await audioManager.setDeviceActive(2, true).then(function () {
console.info('AudioFrameworkTest: Device Test: Promise : setDeviceActive : SPEAKER: Activate');
audioManager.isDeviceActive(2).then(function (value) {
......@@ -595,14 +595,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_CB_DEACTIVATE_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_CB_DEACTIVATE_0100
*@tc.name : setDeviceActive - SPEAKER - deactivate - Callback
*@tc.desc : Deactivate speaker - Callback
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it('SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_CB_DEACTIVATE_0100', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_CB_DEACTIVATE_0100', 2, async function (done) {
audioManager.setDeviceActive(audio.ActiveDeviceType.SPEAKER, false, (err) => {
if (err) {
console.error(`AudioFrameworkTest: Device Test: Callback : setDeviceActive : SPEAKER: Deactivate: Error: ${err.message}`);
......@@ -631,14 +631,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_CB_DEACTIVATE_ENUM_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_CB_DEACTIVATE_ENUM_0100
*@tc.name : setDeviceActive - SPEAKER - deactivate - Callback
*@tc.desc : Deactivate speaker - Callback
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it('SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_CB_DEACTIVATE_ENUM_0100', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_CB_DEACTIVATE_ENUM_0100', 2, async function (done) {
await audioManager.setDeviceActive(2, true).then(function () {
console.info('AudioFrameworkTest: Device Test: Promise : setDeviceActive : SPEAKER : Active');
});
......@@ -671,14 +671,14 @@ describe('audioEM', function () {
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_CB_ACTIVATE_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_CB_ACTIVATE_0100
*@tc.name : setDeviceActive - SPEAKER - activate - Callback
*@tc.desc : Activate speaker - Callback
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it('SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_CB_ACTIVATE_0100', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_CB_ACTIVATE_0100', 2, async function (done) {
audioManager.setDeviceActive(audio.ActiveDeviceType.SPEAKER, true, (err) => {
if (err) {
console.error(`AudioFrameworkTest: Device Test: Callback : setDeviceActive : SPEAKER: Active: Error: ${err.message}`);
......@@ -707,14 +707,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_CB_ACTIVATE_ENUM_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_CB_ACTIVATE_ENUM_0100
*@tc.name : setDeviceActive - SPEAKER - activate - Callback
*@tc.desc : Activate speaker - Callback
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it('SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_CB_ACTIVATE_ENUM_0100 ', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_CB_ACTIVATE_ENUM_0100 ', 2, async function (done) {
audioManager.setDeviceActive(2, true, (err) => {
if (err) {
console.error(`AudioFrameworkTest: Device Test: Callback : setDeviceActive : SPEAKER: Active: Error: ${err.message}`);
......@@ -743,28 +743,28 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_MANAGER_DEVICECHANGETYPE_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_DEVICECHANGETYPE_0100
*@tc.name : DeviceChangeType - CONNECT
*@tc.desc : DeviceChangeType - CONNECT
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it('SUB_MULTIMEDIA_MANAGER_DEVICECHANGETYPE_0100', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_MANAGER_DEVICECHANGETYPE_0100', 2, async function (done) {
expect(audio.DeviceChangeType.CONNECT).assertEqual(0);
await sleep(50);
done();
})
/**
*@tc.number : SUB_MULTIMEDIA_MANAGER_DEVICECHANGETYPE_0200
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_DEVICECHANGETYPE_0200
*@tc.name : DeviceChangeType - DISCONNECT
*@tc.desc : DeviceChangeType - DISCONNECT
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it('SUB_MULTIMEDIA_MANAGER_DEVICECHANGETYPE_0200', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_MANAGER_DEVICECHANGETYPE_0200', 2, async function (done) {
expect(audio.DeviceChangeType.DISCONNECT).assertEqual(1);
await sleep(50);
done();
......
......@@ -361,14 +361,14 @@ describe('audioVoip', function () {
}
/**
* @tc.number : SUB_MULTIMEDIA_VOIP_PLAY_0100
* @tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_PLAY_0100
* @tc.name : AudioRenderer-Set1-Media
* @tc.desc : AudioRenderer with parameter set 1
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 2
*/
it('SUB_MULTIMEDIA_VOIP_PLAY_0100', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_VOIP_PLAY_0100', 2, async function (done) {
var AudioStreamInfo = {
samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100,
......@@ -398,14 +398,14 @@ describe('audioVoip', function () {
})
/**
* @tc.number : SUB_MULTIMEDIA_VOIP_REC_0100
* @tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_0100
* @tc.name : AudioCapturer-Set1-Media
* @tc.desc : AudioCapturer with parameter set 1
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 2
*/
it('SUB_MULTIMEDIA_VOIP_REC_0100', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_0100', 2, async function (done) {
var AudioStreamInfo = {
samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100,
......@@ -433,14 +433,14 @@ describe('audioVoip', function () {
})
/**
* @tc.number : SUB_MULTIMEDIA_VOIP_RECPLAY_0100
* @tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_RECPLAY_0100
* @tc.name : AudioCapturer-Set1-Media
* @tc.desc : AudioCapturer with parameter set 1
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 2
*/
it('SUB_MULTIMEDIA_VOIP_RECPLAY_0100', 2, async function (done) {
it('SUB_MULTIMEDIA_AUDIO_VOIP_RECPLAY_0100', 2, async function (done) {
var AudioStreamInfoCap = {
samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册