Cleaning up audio_decoder_test.cc and adding ResampleInputAudioFile

This CL contains some cleaning up and refactoring of
audio_decoder_test.cc. A new class ResampleInputAudioFile is created
and used in the tests.

BUG=3926
R=kwiberg@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/31779004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@7528 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
henrik.lundin@webrtc.org
2014-10-27 12:58:18 +00:00
parent 0552356fda
commit a37f1dd6b8
4 changed files with 221 additions and 114 deletions

View File

@ -155,6 +155,14 @@
'audio_decoder_unittest.cc',
'audio_decoder.cc',
'interface/audio_decoder.h',
# The files below are from the neteq_unittest_tools target, but that
# target depends (through long dependency chains) on the neteq
# target, which creates a conflict with the audio_decoder_impl.*
# files.
'tools/input_audio_file.cc',
'tools/input_audio_file.h',
'tools/resample_input_audio_file.cc',
'tools/resample_input_audio_file.h',
],
'conditions': [
['OS=="android"', {
@ -193,6 +201,8 @@
'tools/packet.cc',
'tools/packet.h',
'tools/packet_source.h',
'tools/resample_input_audio_file.cc',
'tools/resample_input_audio_file.h',
'tools/rtp_file_source.cc',
'tools/rtp_file_source.h',
'tools/rtp_generator.cc',