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

Unified Diff: media/audio/win/audio_low_latency_input_win_unittest.cc

Issue 2563653002: Replace AudioManager::GetAudio*DeviceNames with AudioManager::GetAudio*DeviceDescriptions (Closed)
Patch Set: nit fixes Created 4 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 | « media/audio/mock_audio_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/win/audio_low_latency_input_win_unittest.cc
diff --git a/media/audio/win/audio_low_latency_input_win_unittest.cc b/media/audio/win/audio_low_latency_input_win_unittest.cc
index e8a4808148c7ca63bb8912b58b9da3372191627b..7e16bae23fcaf65fb470ce310b5c13109c78021c 100644
--- a/media/audio/win/audio_low_latency_input_win_unittest.cc
+++ b/media/audio/win/audio_low_latency_input_win_unittest.cc
@@ -279,16 +279,15 @@ TEST_F(WinAudioInputTest, WASAPIAudioInputStreamHardwareSampleRate) {
ABORT_AUDIO_TEST_IF_NOT(HasCoreAudioAndInputDevices(audio_manager_.get()));
// Retrieve a list of all available input devices.
- media::AudioDeviceNames device_names;
- audio_manager_->GetAudioInputDeviceNames(&device_names);
+ media::AudioDeviceDescriptions device_descriptions;
+ audio_manager_->GetAudioInputDeviceDescriptions(&device_descriptions);
// Scan all available input devices and repeat the same test for all of them.
- for (media::AudioDeviceNames::const_iterator it = device_names.begin();
- it != device_names.end(); ++it) {
+ for (const auto& device : device_descriptions) {
// Retrieve the hardware sample rate given a specified audio input device.
AudioParameters params;
ASSERT_TRUE(SUCCEEDED(CoreAudioUtil::GetPreferredAudioParameters(
- it->unique_id, false, &params)));
+ device.unique_id, false, &params)));
EXPECT_GE(params.sample_rate(), 0);
}
}
« no previous file with comments | « media/audio/mock_audio_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698