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

Unified Diff: chrome_frame/test/chrome_frame_test_utils.cc

Issue 2375003: Add chrome_frame_tests to check that some navigation cases are not broken in ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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/chrome_frame_test_utils.cc
===================================================================
--- chrome_frame/test/chrome_frame_test_utils.cc (revision 48538)
+++ chrome_frame/test/chrome_frame_test_utils.cc (working copy)
@@ -891,4 +891,18 @@
return profile_path;
}
+void DelaySendExtendedKeysEnter(TimedMsgLoop* loop, int delay, char c,
+ int repeat, simulate_input::Modifier mod) {
+ const unsigned int kInterval = 25;
+ unsigned int next_delay = delay;
+ for (int i = 0; i < repeat; i++) {
+ loop->PostDelayedTask(FROM_HERE, NewRunnableFunction(
+ simulate_input::SendExtendedKey, c, mod), next_delay);
+ next_delay += kInterval;
+ }
+
+ loop->PostDelayedTask(FROM_HERE, NewRunnableFunction(
+ simulate_input::SendCharA, VK_RETURN, simulate_input::NONE), next_delay);
+}
+
} // namespace chrome_frame_test
« no previous file with comments | « chrome_frame/test/chrome_frame_test_utils.h ('k') | chrome_frame/test/data/no_interference/javascript_redirect.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698