diff options
author | satish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-10 22:41:21 +0000 |
---|---|---|
committer | satish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-10 22:41:21 +0000 |
commit | 557d4e83efbdae5bd4fa8564f5db9b03bb9d691c (patch) | |
tree | 8c95528cf8a740ca325a933b810b09cf53b7935c /media/media.gyp | |
parent | 3355fbdbc15c9d66cc5d74004f8cdc243afa4054 (diff) | |
download | chromium_src-557d4e83efbdae5bd4fa8564f5db9b03bb9d691c.zip chromium_src-557d4e83efbdae5bd4fa8564f5db9b03bb9d691c.tar.gz chromium_src-557d4e83efbdae5bd4fa8564f5db9b03bb9d691c.tar.bz2 |
Allow unit tests to use a mock audio input controller.
This is modelled after chrome/common/net/test_url_fetcher_factory.h. Using this mock unit tests can stub out the audio recording part and test the consumer of the audio data.
I have also added a new media_test_support target to media.gyp, this will be used in subsequent CLs for testing speech input code.
BUG=none
TEST=none, this code will get used in future unit tests
Review URL: http://codereview.chromium.org/3148003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55627 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/media.gyp')
-rw-r--r-- | media/media.gyp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/media/media.gyp b/media/media.gyp index bb35b5e..7f9ba7a2 100644 --- a/media/media.gyp +++ b/media/media.gyp @@ -286,6 +286,18 @@ ], }, { + 'target_name': 'media_test_support', + 'type': '<(library)', + 'dependencies': [ + 'media', + '../base/base.gyp:base', + ], + 'sources': [ + 'audio/test_audio_input_controller_factory.cc', + 'audio/test_audio_input_controller_factory.h', + ], + }, + { 'target_name': 'media_bench', 'type': 'executable', 'msvs_guid': '45BC4F87-4604-4962-A751-7C7B29A080BF', |