Small refactor to media architecture in order to allow end-to-end tests.
commit7a9497110188e5473173b87f1481d17eb87ba3d8
authorprimiano@chromium.org <primiano@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 12 Jul 2012 11:19:31 +0000 (12 11:19 +0000)
committerprimiano@chromium.org <primiano@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 12 Jul 2012 11:19:31 +0000 (12 11:19 +0000)
tree1ff8b18455a9ba62ff70920d7f3bb6d0ffc0ac9d
parentb26305b415e6f241a906e4f3bfc781187198b5d0
Small refactor to media architecture in order to allow end-to-end tests.

- Introduced the class MockAudioManager that will be used by upcoming speech recognition tests.
- Added interface TestAudioInputController::Delegate, which allows to intercept Record/Close events.
- Added audio_manager_for_tests_ static field in SpeechRecognizer to inject the MockAudioManager during tests.

BUG=116954
TEST=none

Review URL: https://chromiumcodereview.appspot.com/10704154

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146316 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/speech/speech_recognizer.cc
content/browser/speech/speech_recognizer.h
content/browser/speech/speech_recognizer_unittest.cc
media/audio/mock_audio_manager.cc [new file with mode: 0644]
media/audio/mock_audio_manager.h [new file with mode: 0644]
media/audio/test_audio_input_controller_factory.cc
media/audio/test_audio_input_controller_factory.h
media/media.gyp