OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSERTEST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 const Extension* LoadExtension(const FilePath& path); | 31 const Extension* LoadExtension(const FilePath& path); |
32 | 32 |
33 // Same as above, but enables the extension in incognito mode first. | 33 // Same as above, but enables the extension in incognito mode first. |
34 const Extension* LoadExtensionIncognito(const FilePath& path); | 34 const Extension* LoadExtensionIncognito(const FilePath& path); |
35 | 35 |
36 const Extension* LoadExtensionWithOptions(const FilePath& path, | 36 const Extension* LoadExtensionWithOptions(const FilePath& path, |
37 bool incognito_enabled, | 37 bool incognito_enabled, |
38 bool fileaccess_enabled); | 38 bool fileaccess_enabled); |
39 | 39 |
40 // Loads extension and imitates that it is a component extension. | 40 // Loads extension and imitates that it is a component extension. |
41 bool LoadExtensionAsComponent(const FilePath& path); | 41 const Extension* LoadExtensionAsComponent(const FilePath& path); |
42 | 42 |
43 // Pack the extension in |dir_path| into a crx file and return its path. | 43 // Pack the extension in |dir_path| into a crx file and return its path. |
44 // Return an empty FilePath if there were errors. | 44 // Return an empty FilePath if there were errors. |
45 FilePath PackExtension(const FilePath& dir_path); | 45 FilePath PackExtension(const FilePath& dir_path); |
46 | 46 |
47 // Pack the extension in |dir_path| into a crx file at |crx_path|, using the | 47 // Pack the extension in |dir_path| into a crx file at |crx_path|, using the |
48 // key |pem_path|. If |pem_path| does not exist, create a new key at | 48 // key |pem_path|. If |pem_path| does not exist, create a new key at |
49 // |pem_out_path|. | 49 // |pem_out_path|. |
50 // Return the path to the crx file, or an empty FilePath if there were errors. | 50 // Return the path to the crx file, or an empty FilePath if there were errors. |
51 FilePath PackExtensionWithOptions(const FilePath& dir_path, | 51 FilePath PackExtensionWithOptions(const FilePath& dir_path, |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 // When waiting for page action count to change, we wait until it reaches this | 166 // When waiting for page action count to change, we wait until it reaches this |
167 // value. | 167 // value. |
168 int target_page_action_count_; | 168 int target_page_action_count_; |
169 | 169 |
170 // When waiting for visible page action count to change, we wait until it | 170 // When waiting for visible page action count to change, we wait until it |
171 // reaches this value. | 171 // reaches this value. |
172 int target_visible_page_action_count_; | 172 int target_visible_page_action_count_; |
173 }; | 173 }; |
174 | 174 |
175 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 175 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
OLD | NEW |