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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
99 // "test/data/extensions/api_test". | 99 // "test/data/extensions/api_test". |
100 bool RunExtensionSubtest(const std::string& extension_name, | 100 bool RunExtensionSubtest(const std::string& extension_name, |
101 const std::string& page_url); | 101 const std::string& page_url); |
102 | 102 |
103 // Same as RunExtensionSubtest, except run with the specific |flags| | 103 // Same as RunExtensionSubtest, except run with the specific |flags| |
104 // (as defined in the Flags enum). | 104 // (as defined in the Flags enum). |
105 bool RunExtensionSubtest(const std::string& extension_name, | 105 bool RunExtensionSubtest(const std::string& extension_name, |
106 const std::string& page_url, | 106 const std::string& page_url, |
107 int flags); | 107 int flags); |
108 | 108 |
109 // Same as RunExtensionSubtest, but with a custom argument. | |
110 bool RunExtensionSubtestWithArg(const std::string& extension_name, | |
111 const std::string& page_url, | |
112 const char* custom_arg); | |
asargent_no_longer_on_chrome
2015/03/03 00:10:30
A better to do this instead of adding a new method
davidben
2015/03/05 20:01:52
Done. (I just snuck the custom arg through the URL
| |
113 | |
109 // Load |page_url| and wait for pass / fail notification from the extension | 114 // Load |page_url| and wait for pass / fail notification from the extension |
110 // API on the page. | 115 // API on the page. |
111 bool RunPageTest(const std::string& page_url); | 116 bool RunPageTest(const std::string& page_url); |
112 bool RunPageTest(const std::string& page_url, int flags); | 117 bool RunPageTest(const std::string& page_url, int flags); |
113 | 118 |
114 // Similar to RunExtensionTest, except used for running tests in platform app | 119 // Similar to RunExtensionTest, except used for running tests in platform app |
115 // shell windows. | 120 // shell windows. |
116 bool RunPlatformAppTest(const std::string& extension_name); | 121 bool RunPlatformAppTest(const std::string& extension_name); |
117 | 122 |
118 // Similar to RunPlatformAppTest, except sets an additional string argument | 123 // Similar to RunPlatformAppTest, except sets an additional string argument |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
165 scoped_ptr<base::DictionaryValue> test_config_; | 170 scoped_ptr<base::DictionaryValue> test_config_; |
166 | 171 |
167 // Hold the test WebSocket server. | 172 // Hold the test WebSocket server. |
168 scoped_ptr<net::SpawnedTestServer> websocket_server_; | 173 scoped_ptr<net::SpawnedTestServer> websocket_server_; |
169 | 174 |
170 // Hold the test FTP server. | 175 // Hold the test FTP server. |
171 scoped_ptr<net::SpawnedTestServer> ftp_server_; | 176 scoped_ptr<net::SpawnedTestServer> ftp_server_; |
172 }; | 177 }; |
173 | 178 |
174 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ | 179 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ |
OLD | NEW |