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_TEST_UI_UI_TEST_H_ | 5 #ifndef CHROME_TEST_UI_UI_TEST_H_ |
6 #define CHROME_TEST_UI_UI_TEST_H_ | 6 #define CHROME_TEST_UI_UI_TEST_H_ |
7 | 7 |
8 // This file provides a common base for running UI unit tests, which operate | 8 // This file provides a common base for running UI unit tests, which operate |
9 // the entire browser application in a separate process for holistic | 9 // the entire browser application in a separate process for holistic |
10 // functional testing. | 10 // functional testing. |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 | 292 |
293 // Name of currently running automated test passed to Chrome process. | 293 // Name of currently running automated test passed to Chrome process. |
294 std::string test_name_; | 294 std::string test_name_; |
295 | 295 |
296 // Wait for initial loads to complete in SetUp() before running test body. | 296 // Wait for initial loads to complete in SetUp() before running test body. |
297 bool wait_for_initial_loads_; | 297 bool wait_for_initial_loads_; |
298 | 298 |
299 // This can be set to true to have the test run the dom automation case. | 299 // This can be set to true to have the test run the dom automation case. |
300 bool dom_automation_enabled_; | 300 bool dom_automation_enabled_; |
301 | 301 |
302 // This can be set to true to enable the stats collection controller JS | |
303 // bindings. | |
304 bool stats_collection_controller_enabled_; | |
305 | |
306 // See set_template_user_data(). | 302 // See set_template_user_data(). |
307 base::FilePath template_user_data_; | 303 base::FilePath template_user_data_; |
308 | 304 |
309 // Determines if the window is shown or hidden. Defaults to hidden. | 305 // Determines if the window is shown or hidden. Defaults to hidden. |
310 bool show_window_; | 306 bool show_window_; |
311 | 307 |
312 // If true the profile is cleared before launching. Default is true. | 308 // If true the profile is cleared before launching. Default is true. |
313 bool clear_profile_; | 309 bool clear_profile_; |
314 | 310 |
315 // Should we supply the testing channel id | 311 // Should we supply the testing channel id |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 #ifdef UNIT_TEST | 416 #ifdef UNIT_TEST |
421 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); | 417 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); |
422 | 418 |
423 template<typename T> | 419 template<typename T> |
424 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { | 420 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { |
425 return out << ptr.get(); | 421 return out << ptr.get(); |
426 } | 422 } |
427 #endif // UNIT_TEST | 423 #endif // UNIT_TEST |
428 | 424 |
429 #endif // CHROME_TEST_UI_UI_TEST_H_ | 425 #endif // CHROME_TEST_UI_UI_TEST_H_ |
OLD | NEW |