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

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

Issue 12253022: Manifest handler for all keys background-related. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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_file_util.cc ('k') | chrome/common/extensions/extension_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension_file_util_unittest.cc
diff --git a/chrome/common/extensions/extension_file_util_unittest.cc b/chrome/common/extensions/extension_file_util_unittest.cc
index 0d5da85959d4349640de629cc713b2d0997ce276..96773f01a262ca3e2840ef032ab076bf38281a43 100644
--- a/chrome/common/extensions/extension_file_util_unittest.cc
+++ b/chrome/common/extensions/extension_file_util_unittest.cc
@@ -15,6 +15,7 @@
#include "chrome/common/extensions/api/extension_action/page_action_handler.h"
#include "chrome/common/extensions/api/i18n/default_locale_handler.h"
#include "chrome/common/extensions/api/icons/icons_handler.h"
+#include "chrome/common/extensions/background_info.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_manifest_constants.h"
#include "chrome/common/extensions/manifest.h"
@@ -33,21 +34,15 @@ class ExtensionFileUtilTest : public testing::Test {
protected:
virtual void SetUp() OVERRIDE {
testing::Test::SetUp();
- extensions::ManifestHandler::Register(
- extension_manifest_keys::kIcons,
- make_linked_ptr(new extensions::IconsHandler));
- extensions::ManifestHandler::Register(
- keys::kBrowserAction,
- make_linked_ptr(new extensions::BrowserActionHandler));
- linked_ptr<extensions::PageActionHandler> page_action_handler(
- new extensions::PageActionHandler);
- extensions::ManifestHandler::Register(keys::kPageAction,
- page_action_handler);
- extensions::ManifestHandler::Register(keys::kPageActions,
- page_action_handler);
- extensions::ManifestHandler::Register(
- keys::kDefaultLocale,
- make_linked_ptr(new extensions::DefaultLocaleHandler));
+ (new extensions::BackgroundManifestHandler)->Register();
+ (new extensions::BrowserActionHandler)->Register();
+ (new extensions::DefaultLocaleHandler)->Register();
+ (new extensions::IconsHandler)->Register();
+ (new extensions::PageActionHandler)->Register();
+ }
+
+ virtual void TearDown() OVERRIDE {
+ extensions::ManifestHandler::ClearRegistryForTesting();
}
};
« no previous file with comments | « chrome/common/extensions/extension_file_util.cc ('k') | chrome/common/extensions/extension_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698