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

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

Issue 801603002: Add support for command line switches to Features, and as proof that it works, (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fixes Created 6 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/manifest_tests/extension_manifests_experimental_unittest.cc
diff --git a/chrome/common/extensions/manifest_tests/extension_manifests_experimental_unittest.cc b/chrome/common/extensions/manifest_tests/extension_manifests_experimental_unittest.cc
index 6c1b727dfcf69f759913ae0002260a0c51759cc8..74f63ba9e2722edd5759dce8571542f45d670ad5 100644
--- a/chrome/common/extensions/manifest_tests/extension_manifests_experimental_unittest.cc
+++ b/chrome/common/extensions/manifest_tests/extension_manifests_experimental_unittest.cc
@@ -14,7 +14,10 @@
namespace errors = extensions::manifest_errors;
TEST_F(ChromeManifestTest, ExperimentalPermission) {
- LoadAndExpectError("experimental.json", errors::kExperimentalFlagRequired);
+ LoadAndExpectWarning(
+ "experimental.json",
+ "'experimental' requires the 'experimental-extension-apis' "
+ "command line switch to be enabled.");
LoadAndExpectSuccess("experimental.json", extensions::Manifest::COMPONENT);
LoadAndExpectSuccess("experimental.json", extensions::Manifest::INTERNAL,
extensions::Extension::FROM_WEBSTORE);

Powered by Google App Engine
This is Rietveld 408576698