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_UI_WEBUI_WEB_UI_BROWSERTEST_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_WEB_UI_BROWSERTEST_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_WEB_UI_BROWSERTEST_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_WEB_UI_BROWSERTEST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 167 |
168 // Attaches mock and test handlers. | 168 // Attaches mock and test handlers. |
169 void SetupHandlers(); | 169 void SetupHandlers(); |
170 | 170 |
171 // Handles test framework messages. | 171 // Handles test framework messages. |
172 scoped_ptr<WebUITestHandler> test_handler_; | 172 scoped_ptr<WebUITestHandler> test_handler_; |
173 | 173 |
174 // Location of test data (currently test/data/webui). | 174 // Location of test data (currently test/data/webui). |
175 FilePath test_data_directory_; | 175 FilePath test_data_directory_; |
176 | 176 |
| 177 // Location of generated test data (<(PROGRAM_DIR)/test_data). |
| 178 FilePath gen_test_data_directory_; |
| 179 |
177 // User added libraries | 180 // User added libraries |
178 std::vector<FilePath> user_libraries_; | 181 std::vector<FilePath> user_libraries_; |
179 | 182 |
180 // Indicates that the libraries have been pre-loaded and to not load them | 183 // Indicates that the libraries have been pre-loaded and to not load them |
181 // again. | 184 // again. |
182 bool libraries_preloaded_; | 185 bool libraries_preloaded_; |
183 | 186 |
184 // Saves the states of |test_fixture| and |test_name| for calling | 187 // Saves the states of |test_fixture| and |test_name| for calling |
185 // PreloadJavascriptLibraries(). | 188 // PreloadJavascriptLibraries(). |
186 std::string preload_test_fixture_; | 189 std::string preload_test_fixture_; |
187 std::string preload_test_name_; | 190 std::string preload_test_name_; |
188 | 191 |
189 // When this is non-NULL, this is The WebUI instance used for testing. | 192 // When this is non-NULL, this is The WebUI instance used for testing. |
190 // Otherwise the selected tab's web_ui is used. | 193 // Otherwise the selected tab's web_ui is used. |
191 WebUI* override_selected_web_ui_; | 194 WebUI* override_selected_web_ui_; |
192 }; | 195 }; |
193 | 196 |
194 #endif // CHROME_BROWSER_UI_WEBUI_WEB_UI_BROWSERTEST_H_ | 197 #endif // CHROME_BROWSER_UI_WEBUI_WEB_UI_BROWSERTEST_H_ |
OLD | NEW |