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

Unified Diff: base/win/scoped_comptr_unittest.cc

Issue 2887243002: Remove ScopedComPtr::CreateInstance() (Closed)
Patch Set: 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 | « base/win/scoped_comptr.h ('k') | base/win/shortcut.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/scoped_comptr_unittest.cc
diff --git a/base/win/scoped_comptr_unittest.cc b/base/win/scoped_comptr_unittest.cc
index 2493433ab0b96b6f8a6c9905ce4c4d6f74140cb4..edfa8cfc6fafb63299afab33e5f4c1c1982a62cf 100644
--- a/base/win/scoped_comptr_unittest.cc
+++ b/base/win/scoped_comptr_unittest.cc
@@ -39,7 +39,8 @@ TEST(ScopedComPtrTest, ScopedComPtr) {
EXPECT_TRUE(com_initializer.succeeded());
ScopedComPtr<IUnknown> unk;
- EXPECT_TRUE(SUCCEEDED(unk.CreateInstance(CLSID_ShellLink)));
+ EXPECT_TRUE(SUCCEEDED(::CoCreateInstance(CLSID_ShellLink, nullptr, CLSCTX_ALL,
+ IID_PPV_ARGS(&unk))));
ScopedComPtr<IUnknown> unk2;
unk2.Attach(unk.Detach());
EXPECT_TRUE(unk.Get() == NULL);
« no previous file with comments | « base/win/scoped_comptr.h ('k') | base/win/shortcut.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698