| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 bool clear_profile_; // If true the profile is cleared before | 439 bool clear_profile_; // If true the profile is cleared before |
| 440 // launching. Default is true. | 440 // launching. Default is true. |
| 441 bool include_testing_id_; // Should we supply the testing channel | 441 bool include_testing_id_; // Should we supply the testing channel |
| 442 // id on the command line? Default is | 442 // id on the command line? Default is |
| 443 // true. | 443 // true. |
| 444 bool use_existing_browser_; // Duplicate of the static version. | 444 bool use_existing_browser_; // Duplicate of the static version. |
| 445 // Default value comes from static. | 445 // Default value comes from static. |
| 446 bool enable_file_cookies_; // Enable file cookies, default is true. | 446 bool enable_file_cookies_; // Enable file cookies, default is true. |
| 447 | 447 |
| 448 private: | 448 private: |
| 449 #if defined(OS_WIN) | 449 base::Time test_start_time_; // Time the test was started |
| 450 // TODO(port): make this use base::Time instead. It would seem easy, but | |
| 451 // the code also depends on file_util::CountFilesCreatedAfter which hasn't | |
| 452 // yet been made portable. | |
| 453 FILETIME test_start_time_; // Time the test was started | |
| 454 // (so we can check for new crash dumps) | 450 // (so we can check for new crash dumps) |
| 455 #endif | |
| 456 static bool no_sandbox_; | 451 static bool no_sandbox_; |
| 457 static bool safe_plugins_; | 452 static bool safe_plugins_; |
| 458 static bool full_memory_dump_; // If true, write full memory dump | 453 static bool full_memory_dump_; // If true, write full memory dump |
| 459 // during crash. | 454 // during crash. |
| 460 static bool show_error_dialogs_; // If true, a user is paying attention | 455 static bool show_error_dialogs_; // If true, a user is paying attention |
| 461 // to the test, so show error dialogs. | 456 // to the test, so show error dialogs. |
| 462 static bool default_use_existing_browser_; // The test connects to an already | 457 static bool default_use_existing_browser_; // The test connects to an already |
| 463 // running browser instance. | 458 // running browser instance. |
| 464 static bool dump_histograms_on_exit_; // Include histograms in log on exit. | 459 static bool dump_histograms_on_exit_; // Include histograms in log on exit. |
| 465 static bool enable_dcheck_; // Enable dchecks in release mode. | 460 static bool enable_dcheck_; // Enable dchecks in release mode. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 488 #ifdef UNIT_TEST | 483 #ifdef UNIT_TEST |
| 489 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); | 484 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); |
| 490 | 485 |
| 491 template<typename T> | 486 template<typename T> |
| 492 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { | 487 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { |
| 493 return out << ptr.get(); | 488 return out << ptr.get(); |
| 494 } | 489 } |
| 495 #endif // UNIT_TEST | 490 #endif // UNIT_TEST |
| 496 | 491 |
| 497 #endif // CHROME_TEST_UI_UI_TEST_H_ | 492 #endif // CHROME_TEST_UI_UI_TEST_H_ |
| OLD | NEW |