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

Unified Diff: chrome/common/extensions/extension_sync_type_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
« no previous file with comments | « chrome/common/extensions/extension_set_unittest.cc ('k') | chrome/common/extensions/extension_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension_sync_type_unittest.cc
diff --git a/chrome/common/extensions/extension_sync_type_unittest.cc b/chrome/common/extensions/extension_sync_type_unittest.cc
index 88cef0f2338144faee46637f31b95add1ec640d8..1f7a20ffb4239317fcdb906080ce3e84a1baccd8 100644
--- a/chrome/common/extensions/extension_sync_type_unittest.cc
+++ b/chrome/common/extensions/extension_sync_type_unittest.cc
@@ -58,7 +58,7 @@ class ExtensionSyncTypeTest : public testing::Test {
std::string error;
scoped_refptr<Extension> extension = Extension::Create(
extension_path, location, source, creation_flags, &error);
- EXPECT_TRUE(extension);
+ EXPECT_TRUE(extension.get());
EXPECT_EQ("", error);
return extension;
}
@@ -225,7 +225,7 @@ TEST_F(ExtensionSyncTypeTest, ExtensionWithPlugin) {
MakeSyncTestExtension(EXTENSION, GURL(), GURL(),
Manifest::INTERNAL, 1, base::FilePath(),
Extension::NO_FLAGS));
- if (extension)
+ if (extension.get())
EXPECT_EQ(extension->GetSyncType(), Extension::SYNC_TYPE_NONE);
}
@@ -234,7 +234,7 @@ TEST_F(ExtensionSyncTypeTest, ExtensionWithTwoPlugins) {
MakeSyncTestExtension(EXTENSION, GURL(), GURL(),
Manifest::INTERNAL, 2, base::FilePath(),
Extension::NO_FLAGS));
- if (extension)
+ if (extension.get())
EXPECT_EQ(extension->GetSyncType(), Extension::SYNC_TYPE_NONE);
}
#endif // !defined(OS_CHROMEOS)
« no previous file with comments | « chrome/common/extensions/extension_set_unittest.cc ('k') | chrome/common/extensions/extension_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698