diff options
author | mihaip@chromium.org <mihaip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-10 21:08:08 +0000 |
---|---|---|
committer | mihaip@chromium.org <mihaip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-10 21:08:08 +0000 |
commit | 24e042983baecad0fde78b5b1c5ab3fd5c942b3f (patch) | |
tree | db538c975edde1064067dc427e3902b0a3657cb8 /chrome/browser/extensions/extension_apitest.h | |
parent | e841144ed0e8cfc957e01d82ced610ac1e624645 (diff) | |
download | chromium_src-24e042983baecad0fde78b5b1c5ab3fd5c942b3f.zip chromium_src-24e042983baecad0fde78b5b1c5ab3fd5c942b3f.tar.gz chromium_src-24e042983baecad0fde78b5b1c5ab3fd5c942b3f.tar.bz2 |
Check for warnings when loading extensions in browser tests.
Test extension should be well-formed. Having warnings is often an early
indicator that something else is wrong (see for example https://chromiumcodereview.appspot.com/10852016/).
Review URL: https://chromiumcodereview.appspot.com/10826157
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151123 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_apitest.h')
-rw-r--r-- | chrome/browser/extensions/extension_apitest.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_apitest.h b/chrome/browser/extensions/extension_apitest.h index 9d3277a..b5f7e3e 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); |