Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: chrome/test/automated_ui_tests/automated_ui_tests.h

Issue 73084: Reverting 13748. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/file_util_win.cc ('k') | chrome/test/automated_ui_tests/automated_ui_tests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_ 5 #ifndef CHROME_TEST_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_
6 #define CHROME_TEST_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_ 6 #define CHROME_TEST_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_
7 7
8 // This takes an input file of commands, which consist of a series of 8 // This takes an input file of commands, which consist of a series of
9 // actions, and runs every command, reporting the status of each one 9 // actions, and runs every command, reporting the status of each one
10 // to an output file once all the commands have been run. 10 // to an output file once all the commands have been run.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // help debug the tests if they are crashing before they get a chance 97 // help debug the tests if they are crashing before they get a chance
98 // to write their results to file. 98 // to write their results to file.
99 // 99 //
100 // --wait-after-action : waits the specified amount of time (1s by default) 100 // --wait-after-action : waits the specified amount of time (1s by default)
101 // after each action. Useful for debugging. 101 // after each action. Useful for debugging.
102 // 102 //
103 103
104 #include "chrome/test/automated_ui_tests/automated_ui_test_base.h" 104 #include "chrome/test/automated_ui_tests/automated_ui_test_base.h"
105 #include "chrome/test/ui/ui_test.h" 105 #include "chrome/test/ui/ui_test.h"
106 106
107 namespace base {
108 class Time;
109 }
110
111 class AutomatedUITest : public AutomatedUITestBase { 107 class AutomatedUITest : public AutomatedUITestBase {
112 protected: 108 protected:
113 AutomatedUITest(); 109 AutomatedUITest();
114 virtual ~AutomatedUITest(); 110 virtual ~AutomatedUITest();
115 111
116 // Runs a reproduction of one set of actions, reporting whether they crash 112 // Runs a reproduction of one set of actions, reporting whether they crash
117 // or not. 113 // or not.
118 void RunReproduction(); 114 void RunReproduction();
119 115
120 // Runs automated UI tests which are read from the input file. 116 // Runs automated UI tests which are read from the input file.
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 virtual void TearDown() {} 449 virtual void TearDown() {}
454 450
455 private: 451 private:
456 // Parses the init file. 452 // Parses the init file.
457 XmlReader init_reader_; 453 XmlReader init_reader_;
458 454
459 // Builds the output file. 455 // Builds the output file.
460 XmlWriter xml_writer_; 456 XmlWriter xml_writer_;
461 457
462 // Time the test was started. Used to find crash dumps. 458 // Time the test was started. Used to find crash dumps.
463 base::Time test_start_time_; 459 FILETIME test_start_time_;
464 460
465 // Number of times the browser has crashed during this run. 461 // Number of times the browser has crashed during this run.
466 // Used to check for new crashes. 462 // Used to check for new crashes.
467 int total_crashes_; 463 int total_crashes_;
468 464
469 // Used to init the init_reader_. It must exist as long as the reader does. 465 // Used to init the init_reader_. It must exist as long as the reader does.
470 std::string xml_init_file_; 466 std::string xml_init_file_;
471 467
472 // If true, appends the commands to the output file as they are executed. 468 // If true, appends the commands to the output file as they are executed.
473 // Used for debugging when automated_ui_tests.cc crashes before it outputs 469 // Used for debugging when automated_ui_tests.cc crashes before it outputs
474 // results. 470 // results.
475 bool debug_logging_enabled_; 471 bool debug_logging_enabled_;
476 472
477 // A delay in second we wait for after each action. Useful for debugging. 473 // A delay in second we wait for after each action. Useful for debugging.
478 int post_action_delay_; 474 int post_action_delay_;
479 475
480 DISALLOW_COPY_AND_ASSIGN(AutomatedUITest); 476 DISALLOW_COPY_AND_ASSIGN(AutomatedUITest);
481 }; 477 };
482 478
483 #endif // CHROME_TEST_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_ 479 #endif // CHROME_TEST_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_
OLDNEW
« no previous file with comments | « base/file_util_win.cc ('k') | chrome/test/automated_ui_tests/automated_ui_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698