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

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

Issue 73083: Submitting http://codereview.chromium.org/73075 on behalf of shinichiro.hamaj... (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
107 class AutomatedUITest : public AutomatedUITestBase { 111 class AutomatedUITest : public AutomatedUITestBase {
108 protected: 112 protected:
109 AutomatedUITest(); 113 AutomatedUITest();
110 virtual ~AutomatedUITest(); 114 virtual ~AutomatedUITest();
111 115
112 // Runs a reproduction of one set of actions, reporting whether they crash 116 // Runs a reproduction of one set of actions, reporting whether they crash
113 // or not. 117 // or not.
114 void RunReproduction(); 118 void RunReproduction();
115 119
116 // Runs automated UI tests which are read from the input file. 120 // Runs automated UI tests which are read from the input file.
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 virtual void TearDown() {} 453 virtual void TearDown() {}
450 454
451 private: 455 private:
452 // Parses the init file. 456 // Parses the init file.
453 XmlReader init_reader_; 457 XmlReader init_reader_;
454 458
455 // Builds the output file. 459 // Builds the output file.
456 XmlWriter xml_writer_; 460 XmlWriter xml_writer_;
457 461
458 // Time the test was started. Used to find crash dumps. 462 // Time the test was started. Used to find crash dumps.
459 FILETIME test_start_time_; 463 base::Time test_start_time_;
460 464
461 // Number of times the browser has crashed during this run. 465 // Number of times the browser has crashed during this run.
462 // Used to check for new crashes. 466 // Used to check for new crashes.
463 int total_crashes_; 467 int total_crashes_;
464 468
465 // Used to init the init_reader_. It must exist as long as the reader does. 469 // Used to init the init_reader_. It must exist as long as the reader does.
466 std::string xml_init_file_; 470 std::string xml_init_file_;
467 471
468 // If true, appends the commands to the output file as they are executed. 472 // If true, appends the commands to the output file as they are executed.
469 // Used for debugging when automated_ui_tests.cc crashes before it outputs 473 // Used for debugging when automated_ui_tests.cc crashes before it outputs
470 // results. 474 // results.
471 bool debug_logging_enabled_; 475 bool debug_logging_enabled_;
472 476
473 // A delay in second we wait for after each action. Useful for debugging. 477 // A delay in second we wait for after each action. Useful for debugging.
474 int post_action_delay_; 478 int post_action_delay_;
475 479
476 DISALLOW_COPY_AND_ASSIGN(AutomatedUITest); 480 DISALLOW_COPY_AND_ASSIGN(AutomatedUITest);
477 }; 481 };
478 482
479 #endif // CHROME_TEST_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_ 483 #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