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

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

Issue 3361003: Revert 58215 - Revert 58186 - Move the keyboard files from base/ to app/.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 3 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
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 #pragma once 7 #pragma once
8 8
9 // This takes an input file of commands, which consist of a series of 9 // This takes an input file of commands, which consist of a series of
10 // actions, and runs every command, reporting the status of each one 10 // actions, and runs every command, reporting the status of each one
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // soon as the action is performed. If the program finishes, this file 96 // soon as the action is performed. If the program finishes, this file
97 // will be overwritten with the normal results. This flag is used to 97 // will be overwritten with the normal results. This flag is used to
98 // help debug the tests if they are crashing before they get a chance 98 // help debug the tests if they are crashing before they get a chance
99 // to write their results to file. 99 // to write their results to file.
100 // 100 //
101 // --wait-after-action : waits the specified amount of time (1s by default) 101 // --wait-after-action : waits the specified amount of time (1s by default)
102 // after each action. Useful for debugging. 102 // after each action. Useful for debugging.
103 103
104 #include <string> 104 #include <string>
105 105
106 #include "base/keyboard_codes.h" 106 #include "app/keyboard_codes.h"
107 #include "chrome/test/automated_ui_tests/automated_ui_test_base.h" 107 #include "chrome/test/automated_ui_tests/automated_ui_test_base.h"
108 #include "chrome/test/ui/ui_test.h" 108 #include "chrome/test/ui/ui_test.h"
109 109
110 namespace base { 110 namespace base {
111 class Time; 111 class Time;
112 } 112 }
113 113
114 class AutomatedUITest : public AutomatedUITestBase { 114 class AutomatedUITest : public AutomatedUITestBase {
115 protected: 115 protected:
116 AutomatedUITest(); 116 AutomatedUITest();
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 288
289 // Navigates to about:crash. 289 // Navigates to about:crash.
290 // XML element: <Crash/> 290 // XML element: <Crash/>
291 bool ForceCrash(); 291 bool ForceCrash();
292 292
293 // Utility functions -------------------------------------------------------- 293 // Utility functions --------------------------------------------------------
294 294
295 // Calls SimulateOSKeyPress on the active window. Simulates a key press at 295 // Calls SimulateOSKeyPress on the active window. Simulates a key press at
296 // the OS level. |key| is the key pressed and |flags| specifies which 296 // the OS level. |key| is the key pressed and |flags| specifies which
297 // modifiers keys are also pressed (as defined in chrome/views/event.h). 297 // modifiers keys are also pressed (as defined in chrome/views/event.h).
298 bool SimulateKeyPressInActiveWindow(base::KeyboardCode key, int flags); 298 bool SimulateKeyPressInActiveWindow(app::KeyboardCode key, int flags);
299 299
300 // Opens init file, reads it into the reader, and closes the file. 300 // Opens init file, reads it into the reader, and closes the file.
301 // Returns false if there are any errors. 301 // Returns false if there are any errors.
302 bool InitXMLReader(); 302 bool InitXMLReader();
303 303
304 // Closes the xml_writer and outputs the contents of its buffer to 304 // Closes the xml_writer and outputs the contents of its buffer to
305 // the output file. 305 // the output file.
306 bool WriteReportToFile(); 306 bool WriteReportToFile();
307 307
308 // Appends the provided string to the output file. 308 // Appends the provided string to the output file.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 // results. 390 // results.
391 bool debug_logging_enabled_; 391 bool debug_logging_enabled_;
392 392
393 // A delay in second we wait for after each action. Useful for debugging. 393 // A delay in second we wait for after each action. Useful for debugging.
394 int post_action_delay_; 394 int post_action_delay_;
395 395
396 DISALLOW_COPY_AND_ASSIGN(AutomatedUITest); 396 DISALLOW_COPY_AND_ASSIGN(AutomatedUITest);
397 }; 397 };
398 398
399 #endif // CHROME_TEST_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_ 399 #endif // CHROME_TEST_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_
OLDNEW
« no previous file with comments | « chrome/renderer/render_view_browsertest.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