From 8c2ef1f8d93e62e332c81ad1903bc8b06f903539 Mon Sep 17 00:00:00 2001 From: "miket@chromium.org" Date: Fri, 23 Mar 2012 23:28:35 +0000 Subject: 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 --- chrome/browser/extensions/extension_apitest.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'chrome/browser/extensions/extension_apitest.h') 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 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_ -- cgit v1.1