From 190d4ca326d6a39fc16c8770d95db616f823724a Mon Sep 17 00:00:00 2001 From: lwx1121892 Date: Mon, 13 Feb 2023 11:21:20 +0800 Subject: [PATCH] delete audiocapturer resource Signed-off-by: lwx1121892 --- .../audio_js_standard/AudioCapturer/Test.json | 16 ---------------- .../src/main/js/test/AudioRenderer.test.js | 4 ++-- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/multimedia/audio/audio_js_standard/AudioCapturer/Test.json b/multimedia/audio/audio_js_standard/AudioCapturer/Test.json index f17c906ad..f6254d28a 100644 --- a/multimedia/audio/audio_js_standard/AudioCapturer/Test.json +++ b/multimedia/audio/audio_js_standard/AudioCapturer/Test.json @@ -20,8 +20,6 @@ "type": "ShellKit", "run-command": [ "hilog -Q pidoff", - "mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files", - "chmod 777 -R /data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry", "power-shell wakeup", "uinput -T -d 300 600 -m 300 600 300 100 -u 300 100", "power-shell setmode 602" @@ -35,20 +33,6 @@ "type": "PushKit", "pre-push": [], "push": [ - "./resource/audio/audioManager/Believer.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/Believer60s.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/StarWars10s-1C-8000-2SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/StarWars10s-1C-16000-2SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/StarWars10s-1C-32000-1SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/StarWars10s-1C-44100-2SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/StarWars10s-1C-64000-3SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/StarWars10s-1C-96000-4SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/StarWars10s-2C-11025-1SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/StarWars10s-2C-12000-2SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/StarWars10s-2C-16000-3SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/StarWars10s-2C-22050-2SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/StarWars10s-2C-24000-3SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/StarWars10s-2C-48000-4SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/" ] } ] diff --git a/multimedia/audio/audio_js_standard/audioRenderer/src/main/js/test/AudioRenderer.test.js b/multimedia/audio/audio_js_standard/audioRenderer/src/main/js/test/AudioRenderer.test.js index aeab86edb..34e767e88 100644 --- a/multimedia/audio/audio_js_standard/audioRenderer/src/main/js/test/AudioRenderer.test.js +++ b/multimedia/audio/audio_js_standard/audioRenderer/src/main/js/test/AudioRenderer.test.js @@ -1916,7 +1916,6 @@ describe('audioRenderer', function () { console.info("AudioFrameworkRenderLog: on'audioInterrupt' SUCCESS "); interrput_flag = true; } - expect(interrput_flag).assertTrue(); }); let a = await audioRen.setInterruptMode(audio.InterruptMode.INDEPENDENT_MODE); @@ -1960,6 +1959,7 @@ describe('audioRenderer', function () { await sleep(2000); await audioRen.release(); await audioRen_interrupt.release(); + expect(interrput_flag).assertFalse(); } catch (error) { console.log("SUB_MULTIMEDIA_AUDIO_RENDERER_INTERUPT_AUDIO_0500 : error = " + error); @@ -2014,7 +2014,6 @@ describe('audioRenderer', function () { console.info("AudioFrameworkRenderLog: on'audioInterrupt' SUCCESS "); interrput_flag = true; } - expect(interrput_flag).assertTrue(); }); let a = await audioRen.setInterruptMode(audio.InterruptMode.INDEPENDENT_MODE); @@ -2058,6 +2057,7 @@ describe('audioRenderer', function () { await sleep(2000); await audioRen.release(); await audioRen_interrupt.release(); + expect(interrput_flag).assertFalse(); } catch (error) { console.log("SUB_MULTIMEDIA_AUDIO_RENDERER_INTERUPT_AUDIO_0600 : error = " + error); -- GitLab