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

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: fix the memory leak in the alsa unittests Created 8 years, 10 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..ea0f175ff1ff8a0406655c5bc991d646b4f3408e 100644
--- a/media/audio/audio_input_volume_unittest.cc
+++ b/media/audio/audio_input_volume_unittest.cc
@@ -95,7 +95,8 @@ TEST_F(AudioInputVolumeTest, InputVolumeTest) {
AudioDeviceNames device_names;
audio_manager_->GetAudioInputDeviceNames(&device_names);
- DCHECK(!device_names.empty());
+ if (device_names.empty())
+ return;
tommi (sloooow) - chröme 2012/03/05 14:28:28 LOG(WARNING)
no longer working on chromium 2012/03/06 15:27:07 Done.
for (AudioDeviceNames::const_iterator it = device_names.begin();
it != device_names.end();

Powered by Google App Engine
This is Rietveld 408576698