| 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 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 bool RunExtensionTestIncognito(const std::string& extension_name); | 76 bool RunExtensionTestIncognito(const std::string& extension_name); |
| 77 | 77 |
| 78 // Same as RunExtensionTest, but ignores any warnings in the manifest. | 78 // Same as RunExtensionTest, but ignores any warnings in the manifest. |
| 79 bool RunExtensionTestIgnoreManifestWarnings( | 79 bool RunExtensionTestIgnoreManifestWarnings( |
| 80 const std::string& extension_name); | 80 const std::string& extension_name); |
| 81 | 81 |
| 82 // Same as RunExtensionTest, allow old manifest ersions. | 82 // Same as RunExtensionTest, allow old manifest ersions. |
| 83 bool RunExtensionTestAllowOldManifestVersion( | 83 bool RunExtensionTestAllowOldManifestVersion( |
| 84 const std::string& extension_name); | 84 const std::string& extension_name); |
| 85 | 85 |
| 86 // Same as RunExtensionTest, but with a custom argument. |
| 87 bool RunExtensionTestWithArg(const std::string& extension_name, |
| 88 const char* custom_arg); |
| 89 |
| 86 // Same as RunExtensionTest, but loads extension as component. | 90 // Same as RunExtensionTest, but loads extension as component. |
| 87 bool RunComponentExtensionTest(const std::string& extension_name); | 91 bool RunComponentExtensionTest(const std::string& extension_name); |
| 88 | 92 |
| 89 // Same as RunExtensionTest, but disables file access. | 93 // Same as RunExtensionTest, but disables file access. |
| 90 bool RunExtensionTestNoFileAccess(const std::string& extension_name); | 94 bool RunExtensionTestNoFileAccess(const std::string& extension_name); |
| 91 | 95 |
| 92 // Same as RunExtensionTestIncognito, but disables file access. | 96 // Same as RunExtensionTestIncognito, but disables file access. |
| 93 bool RunExtensionTestIncognitoNoFileAccess(const std::string& extension_name); | 97 bool RunExtensionTestIncognitoNoFileAccess(const std::string& extension_name); |
| 94 | 98 |
| 95 // If not empty, Load |extension_name|, load |page_url| and wait for pass / | 99 // If not empty, Load |extension_name|, load |page_url| and wait for pass / |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 scoped_ptr<base::DictionaryValue> test_config_; | 169 scoped_ptr<base::DictionaryValue> test_config_; |
| 166 | 170 |
| 167 // Hold the test WebSocket server. | 171 // Hold the test WebSocket server. |
| 168 scoped_ptr<net::SpawnedTestServer> websocket_server_; | 172 scoped_ptr<net::SpawnedTestServer> websocket_server_; |
| 169 | 173 |
| 170 // Hold the test FTP server. | 174 // Hold the test FTP server. |
| 171 scoped_ptr<net::SpawnedTestServer> ftp_server_; | 175 scoped_ptr<net::SpawnedTestServer> ftp_server_; |
| 172 }; | 176 }; |
| 173 | 177 |
| 174 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ | 178 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ |
| OLD | NEW |