diff options
author | miket@chromium.org <miket@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-23 23:28:35 +0000 |
---|---|---|
committer | miket@chromium.org <miket@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-23 23:28:35 +0000 |
commit | 8c2ef1f8d93e62e332c81ad1903bc8b06f903539 (patch) | |
tree | 9a53d4e6d22414584bdb1cdba2b7ef9ac6ad21eb /chrome/browser/extensions/extension_apitest.h | |
parent | 193a6b7feffd2ddb285676df63852147e2e8426e (diff) | |
download | chromium_src-8c2ef1f8d93e62e332c81ad1903bc8b06f903539.zip chromium_src-8c2ef1f8d93e62e332c81ad1903bc8b06f903539.tar.gz chromium_src-8c2ef1f8d93e62e332c81ad1903bc8b06f903539.tar.bz2 |
Expand usage of platform-apps flag and permission features.
Reapplication of http://codereview.chromium.org/9834022/ with the
VerifyPermissions test #ifdefed out for Windows.
BUG=119758
TEST=added
Review URL: https://chromiumcodereview.appspot.com/9837045
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128610 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_apitest.h')
-rw-r--r-- | chrome/browser/extensions/extension_apitest.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_apitest.h b/chrome/browser/extensions/extension_apitest.h index 94393c7..5c83f89 100644 --- a/chrome/browser/extensions/extension_apitest.h +++ b/chrome/browser/extensions/extension_apitest.h @@ -168,4 +168,21 @@ class ExtensionApiTest : public ExtensionBrowserTest { scoped_ptr<ui_test_utils::TestWebSocketServer> websocket_server_; }; +// PlatformAppApiTest sets up the command-line flags necessary for platform +// apps (if any), and provides a convenience method for confirming that your +// API requires those flags. +class PlatformAppApiTest : public ExtensionApiTest { + public: + PlatformAppApiTest(); + virtual ~PlatformAppApiTest(); + + virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; + + protected: + void VerifyPermissions(const FilePath& extension_path); + + private: + CommandLine previous_command_line_; +}; + #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ |