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

Unified Diff: chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc

Issue 10080017: Switch platform apps from a declarative launch container to handling an onLaunched event. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: remove debug logging code Created 8 years, 8 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 dc994dc6a61721d3ce2007258b57c3e4852de245..fe4cb71e3ef4c7d0d72a1a61213c7dc9eb578fb9 100644
--- a/chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc
+++ b/chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc
@@ -23,6 +23,12 @@ TEST_F(ExtensionManifestTest, PlatformApps) {
LoadAndExpectSuccess("init_valid_platform_app.json");
LoadAndExpectError(
+ "init_invalid_platform_app_1.json",
+ extension_manifest_errors::kLaunchNotAllowedForPlatformApps);
+ LoadAndExpectError(
+ "init_invalid_platform_app_2.json",
+ extension_manifest_errors::kBackgroundRequiredForPlatformApps);
+ LoadAndExpectError(
"init_invalid_platform_app_3.json",
"Feature 'platform_app' is not accessible. "
"'platform_app' requires manifest version of at least 2.");

Powered by Google App Engine
This is Rietveld 408576698