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

Side by Side Diff: chrome_frame/test/chrome_frame_test_utils.cc

Issue 2173002: Add chrome frame tests for common navigation cases to ensure IE is not broken. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: final 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
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 874 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 // the profile directory accordingly. 885 // the profile directory accordingly.
886 if (GetInstalledIEVersion() == IE_8) { 886 if (GetInstalledIEVersion() == IE_8) {
887 profile_path = GetProfilePath(kIEProfileName); 887 profile_path = GetProfilePath(kIEProfileName);
888 } else { 888 } else {
889 profile_path = GetIETemporaryFilesFolder(); 889 profile_path = GetIETemporaryFilesFolder();
890 profile_path = profile_path.Append(L"Google Chrome Frame"); 890 profile_path = profile_path.Append(L"Google Chrome Frame");
891 } 891 }
892 return profile_path; 892 return profile_path;
893 } 893 }
894 894
895 void DelaySendExtendedKeysEnter(TimedMsgLoop* loop, int delay, char c,
896 int repeat, simulate_input::Modifier mod) {
897 const unsigned int kInterval = 25;
898 unsigned int next_delay = delay;
899 for (int i = 0; i < repeat; i++) {
900 loop->PostDelayedTask(FROM_HERE, NewRunnableFunction(
901 simulate_input::SendExtendedKey, c, mod), next_delay);
902 next_delay += kInterval;
903 }
904
905 loop->PostDelayedTask(FROM_HERE, NewRunnableFunction(
906 simulate_input::SendCharA, VK_RETURN, simulate_input::NONE), next_delay);
907 }
908
895 } // namespace chrome_frame_test 909 } // 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