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

Unified Diff: chrome_frame/test/simulate_input.cc

Issue 2822016: [chrome_frame] Refactor/merge IE no interference tests with other mock event ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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_frame/test/simulate_input.h ('k') | chrome_frame/test/test_mock_with_web_server.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/simulate_input.cc
===================================================================
--- chrome_frame/test/simulate_input.cc (revision 51968)
+++ chrome_frame/test/simulate_input.cc (working copy)
@@ -244,21 +244,17 @@
SendMnemonic(key, modifiers, true, false);
}
-void SendStringW(const wchar_t* s) {
- while (*s) {
- wchar_t ch = *s;
- SendCharW(ch, NONE);
+void SendStringW(const std::wstring& s) {
+ for (size_t i = 0; i < s.length(); i++) {
+ SendCharW(s[i], NONE);
Sleep(10);
- s++;
}
}
-void SendStringA(const char* s) {
- while (*s) {
- char ch = *s;
- SendCharA(ch, NONE);
+void SendStringA(const std::string& s) {
+ for (size_t i = 0; i < s.length(); i++) {
+ SendCharA(s[i], NONE);
Sleep(10);
- s++;
}
}
« no previous file with comments | « chrome_frame/test/simulate_input.h ('k') | chrome_frame/test/test_mock_with_web_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698