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

Unified Diff: chrome/test/automated_ui_tests/automated_ui_tests.cc

Issue 171079: more linux automation porting: SendKeyPressNotifyWhenDone... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/views/bookmark_bar_view_test.cc ('k') | chrome/test/automation/automation_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/automated_ui_tests/automated_ui_tests.cc
===================================================================
--- chrome/test/automated_ui_tests/automated_ui_tests.cc (revision 23591)
+++ chrome/test/automated_ui_tests/automated_ui_tests.cc (working copy)
@@ -6,6 +6,7 @@
#include "base/command_line.h"
#include "base/file_util.h"
+#include "base/keyboard_codes.h"
#include "base/logging.h"
#include "base/path_service.h"
#include "base/rand_util.h"
@@ -488,35 +489,35 @@
}
bool AutomatedUITest::PressDownArrow() {
- return SimulateKeyPressInActiveWindow(VK_DOWN, 0);
+ return SimulateKeyPressInActiveWindow(base::VKEY_DOWN, 0);
}
bool AutomatedUITest::PressEnterKey() {
- return SimulateKeyPressInActiveWindow(VK_RETURN, 0);
+ return SimulateKeyPressInActiveWindow(base::VKEY_RETURN, 0);
}
bool AutomatedUITest::PressEscapeKey() {
- return SimulateKeyPressInActiveWindow(VK_ESCAPE, 0);
+ return SimulateKeyPressInActiveWindow(base::VKEY_ESCAPE, 0);
}
bool AutomatedUITest::PressPageDown() {
- return SimulateKeyPressInActiveWindow(VK_PRIOR, 0);
+ return SimulateKeyPressInActiveWindow(base::VKEY_PRIOR, 0);
}
bool AutomatedUITest::PressPageUp() {
- return SimulateKeyPressInActiveWindow(VK_NEXT, 0);
+ return SimulateKeyPressInActiveWindow(base::VKEY_NEXT, 0);
}
bool AutomatedUITest::PressSpaceBar() {
- return SimulateKeyPressInActiveWindow(VK_SPACE, 0);
+ return SimulateKeyPressInActiveWindow(base::VKEY_SPACE, 0);
}
bool AutomatedUITest::PressTabKey() {
- return SimulateKeyPressInActiveWindow(VK_TAB, 0);
+ return SimulateKeyPressInActiveWindow(base::VKEY_TAB, 0);
}
bool AutomatedUITest::PressUpArrow() {
- return SimulateKeyPressInActiveWindow(VK_UP, 0);
+ return SimulateKeyPressInActiveWindow(base::VKEY_UP, 0);
}
bool AutomatedUITest::SelectNextTab() {
« no previous file with comments | « chrome/browser/views/bookmark_bar_view_test.cc ('k') | chrome/test/automation/automation_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698