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

Unified Diff: media/audio/audio_input_volume_unittest.cc

Issue 9570014: Move some generic functions to AudioManagerBase to be inherited by platform-specific AudioManager*** (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changed the GetMaxOutputStreamsAllowed Created 8 years, 9 months 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
Index: media/audio/audio_input_volume_unittest.cc
diff --git a/media/audio/audio_input_volume_unittest.cc b/media/audio/audio_input_volume_unittest.cc
index 5a006f08256baa0cbd67b44d0b28a874917f1c90..a348fa9fbf408f02493d1f0c0c3aa42ad6349713 100644
--- a/media/audio/audio_input_volume_unittest.cc
+++ b/media/audio/audio_input_volume_unittest.cc
@@ -95,7 +95,10 @@ TEST_F(AudioInputVolumeTest, InputVolumeTest) {
AudioDeviceNames device_names;
audio_manager_->GetAudioInputDeviceNames(&device_names);
- DCHECK(!device_names.empty());
+ if (device_names.empty()) {
+ LOG(WARNING) << "Could not find any available input device";
+ return;
+ }
for (AudioDeviceNames::const_iterator it = device_names.begin();
it != device_names.end();

Powered by Google App Engine
This is Rietveld 408576698