Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Unified Diff: media/audio/mac/audio_low_latency_input_mac_unittest.cc

Issue 8909005: Enable MacAudioInput tests on all mac bots. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/mac/audio_low_latency_input_mac_unittest.cc
===================================================================
--- media/audio/mac/audio_low_latency_input_mac_unittest.cc (revision 114391)
+++ media/audio/mac/audio_low_latency_input_mac_unittest.cc (working copy)
@@ -92,10 +92,10 @@
// 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698