| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 // Launch the test page in an incognito window. | 42 // Launch the test page in an incognito window. |
| 43 kFlagUseIncognito = 1 << 1, | 43 kFlagUseIncognito = 1 << 1, |
| 44 | 44 |
| 45 // Allow file access for the extension. | 45 // Allow file access for the extension. |
| 46 kFlagEnableFileAccess = 1 << 2, | 46 kFlagEnableFileAccess = 1 << 2, |
| 47 | 47 |
| 48 // Loads the extension with location COMPONENT. | 48 // Loads the extension with location COMPONENT. |
| 49 kFlagLoadAsComponent = 1 << 3, | 49 kFlagLoadAsComponent = 1 << 3, |
| 50 | 50 |
| 51 // Launch the extension in a platform app shell. | 51 // Launch the extension as a platform app. |
| 52 kFlagLaunchAppShell = 1 << 4 | 52 kFlagLaunchPlatformApp = 1 << 4 |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 ExtensionApiTest(); | 55 ExtensionApiTest(); |
| 56 virtual ~ExtensionApiTest(); | 56 virtual ~ExtensionApiTest(); |
| 57 | 57 |
| 58 protected: | 58 protected: |
| 59 // Helper class that observes tests failing or passing. Observation starts | 59 // Helper class that observes tests failing or passing. Observation starts |
| 60 // when the class is constructed. Get the next result by calling | 60 // when the class is constructed. Get the next result by calling |
| 61 // GetNextResult() and message() if GetNextResult() return false. If there | 61 // GetNextResult() and message() if GetNextResult() return false. If there |
| 62 // are no results, this method will pump the UI message loop until one is | 62 // are no results, this method will pump the UI message loop until one is |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 // apps (if any). | 172 // apps (if any). |
| 173 class PlatformAppApiTest : public ExtensionApiTest { | 173 class PlatformAppApiTest : public ExtensionApiTest { |
| 174 public: | 174 public: |
| 175 PlatformAppApiTest(); | 175 PlatformAppApiTest(); |
| 176 virtual ~PlatformAppApiTest(); | 176 virtual ~PlatformAppApiTest(); |
| 177 | 177 |
| 178 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; | 178 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; |
| 179 }; | 179 }; |
| 180 | 180 |
| 181 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ | 181 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ |
| OLD | NEW |