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

Unified Diff: extensions/browser/extension_registry_unittest.cc

Issue 207613002: Cleanup: Remove NOTIFICATION_EXTENSION_UNLOADED usage in MediaScanManager. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 9 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: extensions/browser/extension_registry_unittest.cc
===================================================================
--- extensions/browser/extension_registry_unittest.cc (revision 259942)
+++ extensions/browser/extension_registry_unittest.cc (working copy)
@@ -56,7 +56,7 @@
};
TEST_F(ExtensionRegistryTest, FillAndClearRegistry) {
- ExtensionRegistry registry;
+ ExtensionRegistry registry(NULL);
scoped_refptr<Extension> extension1 = test_util::CreateExtensionWithID("id1");
scoped_refptr<Extension> extension2 = test_util::CreateExtensionWithID("id2");
scoped_refptr<Extension> extension3 = test_util::CreateExtensionWithID("id3");
@@ -90,7 +90,7 @@
// A simple test of adding and removing things from sets.
TEST_F(ExtensionRegistryTest, AddAndRemoveExtensionFromRegistry) {
- ExtensionRegistry registry;
+ ExtensionRegistry registry(NULL);
// Adding an extension works.
scoped_refptr<Extension> extension = test_util::CreateExtensionWithID("id");
@@ -111,7 +111,7 @@
}
TEST_F(ExtensionRegistryTest, AddExtensionToRegistryTwice) {
- ExtensionRegistry registry;
+ ExtensionRegistry registry(NULL);
scoped_refptr<Extension> extension = test_util::CreateExtensionWithID("id");
// An extension can exist in two sets at once. It would be nice to eliminate
@@ -126,7 +126,7 @@
}
TEST_F(ExtensionRegistryTest, GetExtensionById) {
- ExtensionRegistry registry;
+ ExtensionRegistry registry(NULL);
// Trying to get an extension fails cleanly when the sets are empty.
EXPECT_FALSE(
@@ -205,7 +205,7 @@
}
TEST_F(ExtensionRegistryTest, Observer) {
- ExtensionRegistry registry;
+ ExtensionRegistry registry(NULL);
TestObserver observer;
registry.AddObserver(&observer);

Powered by Google App Engine
This is Rietveld 408576698