Index: chrome_frame/test/chrome_frame_test_utils.cc |
diff --git a/chrome_frame/test/chrome_frame_test_utils.cc b/chrome_frame/test/chrome_frame_test_utils.cc |
index 80f27869f59475fa6acd210a6660399b9d1b2da7..3a6e40d2f12bbec2cb2abd5a5cc2d37de824badb 100644 |
--- a/chrome_frame/test/chrome_frame_test_utils.cc |
+++ b/chrome_frame/test/chrome_frame_test_utils.cc |
@@ -892,4 +892,18 @@ FilePath GetProfilePathForIE() { |
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 |