Index: content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc |
diff --git a/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc b/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc |
index 4ed80f946402f91723bf1340c55b1d146ec6d63f..f741f3aa720063ff6b84af1b1ec6bd1abcae66be 100644 |
--- a/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc |
+++ b/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc |
@@ -64,10 +64,10 @@ namespace content { |
namespace { |
void AudioInputDevicesEnumerated(base::Closure quit_closure, |
- media::AudioDeviceNames* out, |
+ media::AudioDeviceDescriptions* out, |
const MediaDeviceEnumeration& enumeration) { |
for (const auto& info : enumeration[MEDIA_DEVICE_TYPE_AUDIO_INPUT]) { |
- out->emplace_back(info.label, info.device_id); |
+ out->emplace_back(info.label, info.device_id, info.group_id); |
} |
quit_closure.Run(); |
} |
@@ -347,7 +347,7 @@ class MediaStreamDispatcherHostTest : public testing::Test { |
bool DoesContainRawIds(const StreamDeviceInfoArray& devices) { |
for (size_t i = 0; i < devices.size(); ++i) { |
- media::AudioDeviceNames::const_iterator audio_it = |
+ media::AudioDeviceDescriptions::const_iterator audio_it = |
physical_audio_devices_.begin(); |
for (; audio_it != physical_audio_devices_.end(); ++audio_it) { |
Guido Urdaneta
2016/12/08 15:53:37
nit: consider switching to range for
o1ka
2016/12/09 14:56:30
Done.
|
// Skip default and communications audio devices, whose IDs are not |
@@ -375,7 +375,7 @@ class MediaStreamDispatcherHostTest : public testing::Test { |
const url::Origin& origin) { |
for (size_t i = 0; i < devices.size(); ++i) { |
bool found_match = false; |
- media::AudioDeviceNames::const_iterator audio_it = |
+ media::AudioDeviceDescriptions::const_iterator audio_it = |
physical_audio_devices_.begin(); |
for (; audio_it != physical_audio_devices_.end(); ++audio_it) { |
if (content::DoesMediaDeviceIDMatchHMAC( |
@@ -430,7 +430,7 @@ class MediaStreamDispatcherHostTest : public testing::Test { |
ContentBrowserClient* old_browser_client_; |
std::unique_ptr<ContentClient> content_client_; |
content::TestBrowserContext browser_context_; |
- media::AudioDeviceNames physical_audio_devices_; |
+ media::AudioDeviceDescriptions physical_audio_devices_; |
media::VideoCaptureDeviceDescriptors physical_video_devices_; |
url::Origin origin_; |
media::FakeVideoCaptureDeviceFactory* video_capture_device_factory_; |
@@ -600,7 +600,7 @@ TEST_F(MediaStreamDispatcherHostTest, GenerateStreamsWithSourceId) { |
ASSERT_GE(physical_audio_devices_.size(), 1u); |
ASSERT_GE(physical_video_devices_.size(), 1u); |
- media::AudioDeviceNames::const_iterator audio_it = |
+ media::AudioDeviceDescriptions::const_iterator audio_it = |
physical_audio_devices_.begin(); |
for (; audio_it != physical_audio_devices_.end(); ++audio_it) { |
std::string source_id = content::GetHMACForMediaDeviceID( |