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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
161 int flags); | 161 int flags); |
162 | 162 |
163 // Hold details of the test, set in C++, which can be accessed by | 163 // Hold details of the test, set in C++, which can be accessed by |
164 // javascript using chrome.test.getConfig(). | 164 // javascript using chrome.test.getConfig(). |
165 scoped_ptr<DictionaryValue> test_config_; | 165 scoped_ptr<DictionaryValue> test_config_; |
166 | 166 |
167 // Hold the test WebSocket server. | 167 // Hold the test WebSocket server. |
168 scoped_ptr<ui_test_utils::TestWebSocketServer> websocket_server_; | 168 scoped_ptr<ui_test_utils::TestWebSocketServer> websocket_server_; |
169 }; | 169 }; |
170 | 170 |
171 // PlatformAppApiTest sets up the command-line flags necessary for platform | |
172 // apps (if any), and provides a convenience method for confirming that your | |
173 // API requires those flags. | |
174 class PlatformAppApiTest : public ExtensionApiTest { | |
175 public: | |
176 PlatformAppApiTest(); | |
177 virtual ~PlatformAppApiTest(); | |
178 | |
179 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; | |
180 | |
181 protected: | |
182 void VerifyPermissions(const FilePath& extension_path); | |
jstritar
2012/03/26 13:41:51
Do these VerifyPermissions tests really get us muc
miket_OOO
2012/03/26 15:19:57
That's a fair point. It's a bit of a belt-and-susp
jstritar
2012/03/27 15:16:09
We could also override ExtensionBrowserTest::RunEx
| |
183 | |
184 private: | |
185 CommandLine previous_command_line_; | |
186 }; | |
187 | |
171 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ | 188 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ |
OLD | NEW |