diff options
author | primiano@chromium.org <primiano@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-12 11:19:31 +0000 |
---|---|---|
committer | primiano@chromium.org <primiano@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-12 11:19:31 +0000 |
commit | 7a9497110188e5473173b87f1481d17eb87ba3d8 (patch) | |
tree | 1ff8b18455a9ba62ff70920d7f3bb6d0ffc0ac9d /media/media.gyp | |
parent | b26305b415e6f241a906e4f3bfc781187198b5d0 (diff) | |
download | chromium_src-7a9497110188e5473173b87f1481d17eb87ba3d8.zip chromium_src-7a9497110188e5473173b87f1481d17eb87ba3d8.tar.gz chromium_src-7a9497110188e5473173b87f1481d17eb87ba3d8.tar.bz2 |
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
Diffstat (limited to 'media/media.gyp')
-rw-r--r-- | media/media.gyp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/media/media.gyp b/media/media.gyp index dca316e..3e5c24b 100644 --- a/media/media.gyp +++ b/media/media.gyp @@ -795,6 +795,8 @@ '../testing/gtest.gyp:gtest', ], 'sources': [ + 'audio/mock_audio_manager.cc', + 'audio/mock_audio_manager.h', 'audio/test_audio_input_controller_factory.cc', 'audio/test_audio_input_controller_factory.h', 'base/mock_callback.cc', |