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

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

Issue 8654001: Reland restrict extension features based on the extension type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years 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_manifests_unittest.cc
diff --git a/chrome/common/extensions/extension_manifests_unittest.cc b/chrome/common/extensions/extension_manifests_unittest.cc
index adc696960409b88d769b7184081fe0e9b1bffee5..8136deaf04142acfaa504971784430cb84794093 100644
--- a/chrome/common/extensions/extension_manifests_unittest.cc
+++ b/chrome/common/extensions/extension_manifests_unittest.cc
@@ -588,12 +588,8 @@ TEST_F(ExtensionManifestTest, Sidebar) {
extension->sidebar_defaults()->default_page().spec());
}
-TEST_F(ExtensionManifestTest, DisallowHybridApps) {
- LoadAndExpectError("disallow_hybrid_1.json",
- ExtensionErrorUtils::FormatErrorMessage(
- errors::kHostedAppsCannotIncludeExtensionFeatures,
- keys::kBrowserAction));
- LoadAndExpectError("disallow_hybrid_2.json",
+TEST_F(ExtensionManifestTest, BackgroundPermission) {
+ LoadAndExpectError("background_permission.json",
errors::kBackgroundPermissionNeeded);
}
@@ -742,9 +738,7 @@ TEST_F(ExtensionManifestTest, NormalizeIconPaths) {
}
TEST_F(ExtensionManifestTest, DisallowMultipleUISurfaces) {
- LoadAndExpectError("multiple_ui_surfaces_1.json", errors::kOneUISurfaceOnly);
- LoadAndExpectError("multiple_ui_surfaces_2.json", errors::kOneUISurfaceOnly);
- LoadAndExpectError("multiple_ui_surfaces_3.json", errors::kOneUISurfaceOnly);
+ LoadAndExpectError("multiple_ui_surfaces.json", errors::kOneUISurfaceOnly);
}
TEST_F(ExtensionManifestTest, ParseHomepageURLs) {

Powered by Google App Engine
This is Rietveld 408576698