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

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

Issue 2870263002: Rename ScopedComPtr::Receive to ScopedComPtr::GetAddressOf (Closed)
Patch Set: Rebase to 2a6f440 Created 3 years, 7 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
« no previous file with comments | « media/audio/win/core_audio_util_win.cc ('k') | media/audio/win/device_enumeration_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « media/audio/win/core_audio_util_win.cc ('k') | media/audio/win/device_enumeration_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698