summaryrefslogtreecommitdiffstats
path: root/content/test/webrtc_audio_device_test.cc
diff options
context:
space:
mode:
authortommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-11 13:34:24 +0000
committertommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-11 13:34:24 +0000
commita954a701bed73e062c5589510691aa4ce0e219ab (patch)
tree90175fcd188d4c83a41c9accd1fdfff57515701d /content/test/webrtc_audio_device_test.cc
parent8002eaa734d00b164df5bb79e2beaa9eff9354a5 (diff)
downloadchromium_src-a954a701bed73e062c5589510691aa4ce0e219ab.zip
chromium_src-a954a701bed73e062c5589510691aa4ce0e219ab.tar.gz
chromium_src-a954a701bed73e062c5589510691aa4ce0e219ab.tar.bz2
Enable the webrtc audio tests on the build bots that have audio hardware.
BUG=none TEST=This enables the audio tests in content_unittests on bots with audio hardware. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=130019 Review URL: https://chromiumcodereview.appspot.com/9921035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131757 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test/webrtc_audio_device_test.cc')
-rw-r--r--content/test/webrtc_audio_device_test.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/content/test/webrtc_audio_device_test.cc b/content/test/webrtc_audio_device_test.cc
index 0f11917..c9e72ec6 100644
--- a/content/test/webrtc_audio_device_test.cc
+++ b/content/test/webrtc_audio_device_test.cc
@@ -88,7 +88,8 @@ ACTION_P(QuitMessageLoop, loop_or_proxy) {
} // end namespace
WebRTCAudioDeviceTest::WebRTCAudioDeviceTest()
- : render_thread_(NULL), audio_util_callback_(NULL) {
+ : render_thread_(NULL), audio_util_callback_(NULL),
+ has_input_devices_(false), has_output_devices_(false) {
}
WebRTCAudioDeviceTest::~WebRTCAudioDeviceTest() {}
@@ -171,6 +172,9 @@ void WebRTCAudioDeviceTest::InitializeIOThread(const char* thread_name) {
resource_context_->set_request_context(test_request_context_.get());
media_observer_.reset(new MockMediaObserver());
+ has_input_devices_ = audio_manager_->HasAudioInputDevices();
+ has_output_devices_ = audio_manager_->HasAudioOutputDevices();
+
// Create an IPC channel that handles incoming messages on the IO thread.
CreateChannel(thread_name);
}