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

Unified Diff: chrome/common/extensions/manifest_tests/extension_manifests_platformapp_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_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 296030c09d2cb7ea284e9597184b632f6da1ea04..99b57b10f7ecebe57c7eec6bff81b7b8c6a44787 100644
--- a/chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc
+++ b/chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc
@@ -129,10 +129,12 @@ TEST_F(PlatformAppsManifestTest, CertainApisRequirePlatformApps) {
manifests.push_back(make_linked_ptr(manifest->DeepCopy()));
}
- // First try to load without any flags. This should fail for every API.
+ // First try to load without any flags. This should warn for every API.
for (size_t i = 0; i < arraysize(kPlatformAppExperimentalApis); ++i) {
- LoadAndExpectError(ManifestData(manifests[i].get(), ""),
- errors::kExperimentalFlagRequired);
+ LoadAndExpectWarning(
+ ManifestData(manifests[i].get(), ""),
+ "'experimental' requires the 'experimental-extension-apis' "
+ "command line switch to be enabled.");
}
// Now try again with the experimental flag set.

Powered by Google App Engine
This is Rietveld 408576698