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

Unified Diff: chrome/common/extensions/manifest_tests/extension_manifests_platformapp_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/manifest_tests/extension_manifests_platformapp_unittest.cc
diff --git a/chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc b/chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc
index b3a9a4c964149772dd2beb746fb7bc72ae8653aa..fc0d15867fa143ae9b7939bbbe3a2da7a32e9aee 100644
--- a/chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc
+++ b/chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc
@@ -6,6 +6,7 @@
#include "base/json/json_file_value_serializer.h"
#include "base/memory/linked_ptr.h"
#include "chrome/common/chrome_switches.h"
+#include "chrome/common/extensions/background_info.h"
#include "chrome/common/extensions/csp_handler.h"
#include "chrome/common/extensions/extension_manifest_constants.h"
#include "chrome/common/extensions/manifest_tests/extension_manifest_test.h"
@@ -13,12 +14,12 @@
namespace errors = extension_manifest_errors;
+namespace extensions {
+
class PlatformAppsManifestTest : public ExtensionManifestTest {
virtual void SetUp() OVERRIDE {
- ExtensionManifestTest::SetUp();
- extensions::ManifestHandler::Register(
- extension_manifest_keys::kPlatformAppContentSecurityPolicy,
- make_linked_ptr(new extensions::CSPHandler(true))); // platform app.
+ (new BackgroundManifestHandler)->Register();
+ (new CSPHandler(true))->Register(); // platform app.
}
};
@@ -141,3 +142,5 @@ TEST_F(PlatformAppsManifestTest, CertainApisRequirePlatformApps) {
LoadAndExpectSuccess(Manifest(manifests[i].get(), ""));
}
}
+
+} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698