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

Unified Diff: chrome/common/extensions/extension_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
Index: chrome/common/extensions/extension_unittest.cc
diff --git a/chrome/common/extensions/extension_unittest.cc b/chrome/common/extensions/extension_unittest.cc
index 83bd39f02ff1270073dbaf91421383e315f43853..9fcff64064bb57cd84c5cf878fd6128a55f0383a 100644
--- a/chrome/common/extensions/extension_unittest.cc
+++ b/chrome/common/extensions/extension_unittest.cc
@@ -14,6 +14,8 @@
#include "base/utf_string_conversions.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/extensions/api/commands/commands_handler.h"
+#include "chrome/common/extensions/api/commands/commands_handler.h"
+#include "chrome/common/extensions/background_info.h"
#include "chrome/common/extensions/command.h"
#include "chrome/common/extensions/extension_file_util.h"
#include "chrome/common/extensions/extension_manifest_constants.h"
@@ -101,7 +103,13 @@ static scoped_refptr<Extension> LoadManifestStrict(
class ExtensionTest : public testing::Test {
protected:
virtual void SetUp() OVERRIDE {
- ManifestHandler::Register(extension_manifest_keys::kCommands,
+ std::vector<std::string> background_keys(
+ BackgroundManifestHandler::keys());
+ linked_ptr<BackgroundManifestHandler> background_handler(
+ new BackgroundManifestHandler);
+ for (size_t i = 0; i < background_keys.size(); ++i)
+ ManifestHandler::Register(background_keys[i], background_handler);
+ ManifestHandler::Register(keys::kCommands,
make_linked_ptr(new CommandsHandler));
}
};

Powered by Google App Engine
This is Rietveld 408576698