APM-QA unit test bug fix

- temporary wav files created in temporary folder in TestExport.setUp()
- rename TestEchoPathSimulators -> TestExport

TBR=

Bug: webrtc:7494
Change-Id: I5b0c0675f539888e7392728055842c7772185921
Reviewed-on: https://webrtc-review.googlesource.com/14842
Commit-Queue: Alessio Bazzica <alessiob@webrtc.org>
Reviewed-by: Alessio Bazzica <alessiob@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20406}
This commit is contained in:
Alessio Bazzica
2017-10-24 10:48:34 +02:00
committed by Commit Bot
parent c531af77c3
commit 45adbafefe

View File

@ -26,7 +26,7 @@ from . import simulation
from . import test_data_generation_factory
class TestEchoPathSimulators(unittest.TestCase):
class TestExport(unittest.TestCase):
"""Unit tests for the export module.
"""
@ -53,8 +53,8 @@ class TestEchoPathSimulators(unittest.TestCase):
simulator.Run(
config_filepaths=['apm_configs/default.json'],
capture_input_filepaths=[
'pure_tone-440_1000.wav',
'pure_tone-880_1000.wav',
os.path.join(self._tmp_path, 'pure_tone-440_1000.wav'),
os.path.join(self._tmp_path, 'pure_tone-880_1000.wav'),
],
test_data_generator_names=['identity', 'white_noise'],
eval_score_names=['audio_level_peak', 'audio_level_mean'],