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

Unified Diff: chrome_frame/test/net/dialog_watchdog.cc

Issue 604014: First batch of context menu tests... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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
Index: chrome_frame/test/net/dialog_watchdog.cc
===================================================================
--- chrome_frame/test/net/dialog_watchdog.cc (revision 38776)
+++ chrome_frame/test/net/dialog_watchdog.cc (working copy)
@@ -10,7 +10,7 @@
#include "base/scoped_comptr_win.h"
#include "base/string_util.h"
-#include "chrome_frame/test/chrome_frame_test_utils.h"
+#include "chrome_frame/test/simulate_input.h"
#include "chrome_frame/function_stub.h"
namespace {
@@ -54,17 +54,17 @@
// We can't use SetWindowText to set the username/password, so simulate
// keyboard input instead.
- chrome_frame_test::ForceSetForegroundWindow(hwnd);
+ simulate_input::ForceSetForegroundWindow(hwnd);
CHECK(SetFocusToAccessibleWindow(props.username_));
- chrome_frame_test::SendString(username_.c_str());
+ simulate_input::SendString(username_.c_str());
Sleep(100);
- chrome_frame_test::SendVirtualKey(VK_TAB, false);
+ simulate_input::SendChar(char(VK_TAB), false, false);
Sleep(100);
- chrome_frame_test::SendString(password_.c_str());
+ simulate_input::SendString(password_.c_str());
Sleep(100);
- chrome_frame_test::SendVirtualKey(VK_RETURN, false);
+ simulate_input::SendChar(char(VK_RETURN), false, false);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698