Index: media/audio/win/core_audio_util_win_unittest.cc |
diff --git a/media/audio/win/core_audio_util_win_unittest.cc b/media/audio/win/core_audio_util_win_unittest.cc |
index 6a13f2649613ffe40a9514dab79a14b651f54f7d..215d4257322bc80f9f3ccdf23c80264673ab9aad 100644 |
--- a/media/audio/win/core_audio_util_win_unittest.cc |
+++ b/media/audio/win/core_audio_util_win_unittest.cc |
@@ -159,13 +159,13 @@ TEST_F(CoreAudioUtilWinTest, GetAudioControllerID) { |
EDataFlow flows[] = { eRender , eCapture }; |
for (size_t i = 0; i < arraysize(flows); ++i) { |
ScopedComPtr<IMMDeviceCollection> collection; |
- ASSERT_TRUE(SUCCEEDED(enumerator->EnumAudioEndpoints(flows[i], |
- DEVICE_STATE_ACTIVE, collection.Receive()))); |
+ ASSERT_TRUE(SUCCEEDED(enumerator->EnumAudioEndpoints( |
+ flows[i], DEVICE_STATE_ACTIVE, collection.GetAddressOf()))); |
UINT count = 0; |
collection->GetCount(&count); |
for (UINT j = 0; j < count; ++j) { |
ScopedComPtr<IMMDevice> device; |
- collection->Item(j, device.Receive()); |
+ collection->Item(j, device.GetAddressOf()); |
std::string controller_id( |
CoreAudioUtil::GetAudioControllerID(device.Get(), enumerator.Get())); |
EXPECT_FALSE(controller_id.empty()); |
@@ -485,13 +485,13 @@ TEST_F(CoreAudioUtilWinTest, GetMatchingOutputDeviceID) { |
// Enumerate all active input and output devices and fetch the ID of |
// the associated device. |
ScopedComPtr<IMMDeviceCollection> collection; |
- ASSERT_TRUE(SUCCEEDED(enumerator->EnumAudioEndpoints(eCapture, |
- DEVICE_STATE_ACTIVE, collection.Receive()))); |
+ ASSERT_TRUE(SUCCEEDED(enumerator->EnumAudioEndpoints( |
+ eCapture, DEVICE_STATE_ACTIVE, collection.GetAddressOf()))); |
UINT count = 0; |
collection->GetCount(&count); |
for (UINT i = 0; i < count && !found_a_pair; ++i) { |
ScopedComPtr<IMMDevice> device; |
- collection->Item(i, device.Receive()); |
+ collection->Item(i, device.GetAddressOf()); |
base::win::ScopedCoMem<WCHAR> wide_id; |
device->GetId(&wide_id); |
std::string id; |