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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 int flags); | 159 int flags); |
160 | 160 |
161 // Hold details of the test, set in C++, which can be accessed by | 161 // Hold details of the test, set in C++, which can be accessed by |
162 // javascript using chrome.test.getConfig(). | 162 // javascript using chrome.test.getConfig(). |
163 scoped_ptr<DictionaryValue> test_config_; | 163 scoped_ptr<DictionaryValue> test_config_; |
164 | 164 |
165 // Hold the test WebSocket server. | 165 // Hold the test WebSocket server. |
166 scoped_ptr<ui_test_utils::TestWebSocketServer> websocket_server_; | 166 scoped_ptr<ui_test_utils::TestWebSocketServer> websocket_server_; |
167 }; | 167 }; |
168 | 168 |
| 169 // PlatformAppApiTest sets up the command-line flags necessary for platform |
| 170 // apps (if any), and provides a convenience method for confirming that your |
| 171 // API requires those flags. |
| 172 class PlatformAppApiTest : public ExtensionApiTest { |
| 173 public: |
| 174 PlatformAppApiTest(); |
| 175 virtual ~PlatformAppApiTest(); |
| 176 |
| 177 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; |
| 178 |
| 179 protected: |
| 180 void VerifyPermissions(const FilePath& extension_path); |
| 181 |
| 182 private: |
| 183 CommandLine previous_command_line_; |
| 184 }; |
| 185 |
169 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ | 186 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ |
OLD | NEW |