summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authortommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-14 17:10:02 +0000
committertommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-14 17:10:02 +0000
commit1b9a783e6a193c862d798ee612766d08d5bd8940 (patch)
tree62bb7971b1325fbf8d06cf81b001fe389eaa9f1c /media
parent7e48c54c944c659a20265ba27f84a0c638035377 (diff)
downloadchromium_src-1b9a783e6a193c862d798ee612766d08d5bd8940.zip
chromium_src-1b9a783e6a193c862d798ee612766d08d5bd8940.tar.gz
chromium_src-1b9a783e6a193c862d798ee612766d08d5bd8940.tar.bz2
Enable MacAudioInput tests on all mac bots.
The mac bots do have audio hardware so we should be able to safely run these tests. TEST=This runs more tests as part of media_unittests on the mac bots. Review URL: http://codereview.chromium.org/8909005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114445 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r--media/audio/mac/audio_low_latency_input_mac_unittest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/media/audio/mac/audio_low_latency_input_mac_unittest.cc b/media/audio/mac/audio_low_latency_input_mac_unittest.cc
index baad701..7b32b19 100644
--- a/media/audio/mac/audio_low_latency_input_mac_unittest.cc
+++ b/media/audio/mac/audio_low_latency_input_mac_unittest.cc
@@ -92,10 +92,10 @@ class MacAudioInputTest : public testing::Test {
// Convenience method which ensures that we are not running on the build
// bots and that at least one valid input device can be found.
bool CanRunAudioTests() {
- scoped_ptr<base::Environment> env(base::Environment::Create());
- if (env->HasVar("CHROME_HEADLESS"))
- return false;
- return audio_manager_->HasAudioInputDevices();
+ bool has_input = audio_manager_->HasAudioInputDevices();
+ if (!has_input)
+ LOG(WARNING) << "No input devices detected";
+ return has_input;
}
// Convenience method which creates a default AudioInputStream object using