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

Side by Side 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, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome_frame/test/chrome_frame_test_utils.h" 5 #include "chrome_frame/test/chrome_frame_test_utils.h"
6 6
7 #include <atlbase.h> 7 #include <atlbase.h>
8 #include <atlwin.h> 8 #include <atlwin.h>
9 #include <iepmapi.h> 9 #include <iepmapi.h>
10 #include <sddl.h> 10 #include <sddl.h>
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 // the profile directory accordingly. 884 // the profile directory accordingly.
885 if (GetInstalledIEVersion() == IE_8) { 885 if (GetInstalledIEVersion() == IE_8) {
886 profile_path = GetProfilePath(kIEProfileName); 886 profile_path = GetProfilePath(kIEProfileName);
887 } else { 887 } else {
888 profile_path = GetIETemporaryFilesFolder(); 888 profile_path = GetIETemporaryFilesFolder();
889 profile_path = profile_path.Append(L"Google Chrome Frame"); 889 profile_path = profile_path.Append(L"Google Chrome Frame");
890 } 890 }
891 return profile_path; 891 return profile_path;
892 } 892 }
893 893
894 void DelaySendExtendedKeysEnter(TimedMsgLoop* loop, int delay, char c,
895 int repeat, simulate_input::Modifier mod) {
896 const unsigned int kInterval = 25;
897 unsigned int next_delay = delay;
898 for (int i = 0; i < repeat; i++) {
899 loop->PostDelayedTask(FROM_HERE, NewRunnableFunction(
900 simulate_input::SendExtendedKey, c, mod), next_delay);
901 next_delay += kInterval;
902 }
903
904 loop->PostDelayedTask(FROM_HERE, NewRunnableFunction(
905 simulate_input::SendCharA, VK_RETURN, simulate_input::NONE), next_delay);
906 }
907
894 } // namespace chrome_frame_test 908 } // namespace chrome_frame_test
OLDNEW
« 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