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

Unified Diff: chrome/browser/extensions/extension_apitest.h

Issue 10826157: Check for warnings when loading extensions in browser tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix existing tests Created 8 years, 4 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/browser/extensions/extension_apitest.h
diff --git a/chrome/browser/extensions/extension_apitest.h b/chrome/browser/extensions/extension_apitest.h
index 9d3277ac4313317723606dde79e21d8fd440e422..b5f7e3e3646227ed1cf32bbb6faba689ee673fc8 100644
--- a/chrome/browser/extensions/extension_apitest.h
+++ b/chrome/browser/extensions/extension_apitest.h
@@ -52,7 +52,11 @@ class ExtensionApiTest : public ExtensionBrowserTest {
kFlagLoadAsComponent = 1 << 3,
// Launch the extension as a platform app.
- kFlagLaunchPlatformApp = 1 << 4
+ kFlagLaunchPlatformApp = 1 << 4,
+
+ // Don't fail when the loaded manifest has warnings (should only be used
+ // when testing deprecated features).
+ kFlagIgnoreManifestWarnings = 1 << 5
};
ExtensionApiTest();
@@ -109,6 +113,9 @@ class ExtensionApiTest : public ExtensionBrowserTest {
// Same as RunExtensionTest, but enables the extension for incognito mode.
bool RunExtensionTestIncognito(const char* extension_name);
+ // Same as RunExtensionTest, but ignores any warnings in the manifest.
+ bool RunExtensionTestIgnoreManifestWarnings(const char* extension_name);
+
// Same as RunExtensionTest, but loads extension as component.
bool RunComponentExtensionTest(const char* extension_name);

Powered by Google App Engine
This is Rietveld 408576698