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

Unified Diff: chrome/common/extensions/extension_set_unittest.cc

Issue 15836003: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 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
Index: chrome/common/extensions/extension_set_unittest.cc
diff --git a/chrome/common/extensions/extension_set_unittest.cc b/chrome/common/extensions/extension_set_unittest.cc
index edabcb9f27ef43623a5954583c16111efa2ccba3..36dc7eac5512caa0bc2da6d92da2bb45573498fe 100644
--- a/chrome/common/extensions/extension_set_unittest.cc
+++ b/chrome/common/extensions/extension_set_unittest.cc
@@ -62,7 +62,7 @@ TEST(ExtensionSetTest, ExtensionSet) {
scoped_refptr<Extension> ext4(
CreateTestExtension("c", std::string(), std::string()));
- ASSERT_TRUE(ext1 && ext2 && ext3 && ext4);
+ ASSERT_TRUE(ext1.get() && ext2.get() && ext3.get() && ext4.get());
ExtensionSet extensions;
@@ -123,7 +123,7 @@ TEST(ExtensionSetTest, ExtensionSet) {
CreateTestExtension("d", std::string(), std::string()));
scoped_refptr<Extension> ext6(
CreateTestExtension("e", std::string(), std::string()));
- ASSERT_TRUE(ext5 && ext6);
+ ASSERT_TRUE(ext5.get() && ext6.get());
scoped_ptr<ExtensionSet> to_add(new ExtensionSet());
// |ext3| is already in |extensions|, should not affect size.
« no previous file with comments | « chrome/common/extensions/extension_messages.cc ('k') | chrome/common/extensions/extension_sync_type_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698