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 base::Time test_start_time_; // Time the test was started | 449 #if defined(OS_WIN) |
| 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 |
450 // (so we can check for new crash dumps) | 454 // (so we can check for new crash dumps) |
| 455 #endif |
451 static bool no_sandbox_; | 456 static bool no_sandbox_; |
452 static bool safe_plugins_; | 457 static bool safe_plugins_; |
453 static bool full_memory_dump_; // If true, write full memory dump | 458 static bool full_memory_dump_; // If true, write full memory dump |
454 // during crash. | 459 // during crash. |
455 static bool show_error_dialogs_; // If true, a user is paying attention | 460 static bool show_error_dialogs_; // If true, a user is paying attention |
456 // to the test, so show error dialogs. | 461 // to the test, so show error dialogs. |
457 static bool default_use_existing_browser_; // The test connects to an already | 462 static bool default_use_existing_browser_; // The test connects to an already |
458 // running browser instance. | 463 // running browser instance. |
459 static bool dump_histograms_on_exit_; // Include histograms in log on exit. | 464 static bool dump_histograms_on_exit_; // Include histograms in log on exit. |
460 static bool enable_dcheck_; // Enable dchecks in release mode. | 465 static bool enable_dcheck_; // Enable dchecks in release mode. |
(...skipping 22 matching lines...) Expand all Loading... |
483 #ifdef UNIT_TEST | 488 #ifdef UNIT_TEST |
484 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); | 489 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); |
485 | 490 |
486 template<typename T> | 491 template<typename T> |
487 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { | 492 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { |
488 return out << ptr.get(); | 493 return out << ptr.get(); |
489 } | 494 } |
490 #endif // UNIT_TEST | 495 #endif // UNIT_TEST |
491 | 496 |
492 #endif // CHROME_TEST_UI_UI_TEST_H_ | 497 #endif // CHROME_TEST_UI_UI_TEST_H_ |
OLD | NEW |