summaryrefslogtreecommitdiffstats
path: root/chrome_frame/test/ie_event_sink.cc
diff options
context:
space:
mode:
authorrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-24 20:12:20 +0000
committerrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-24 20:12:20 +0000
commit379a2379cb85e3882775c1d2be87c8c291166194 (patch)
treefd2494ac7d0c20a30af130d4d125e0ef14f210c9 /chrome_frame/test/ie_event_sink.cc
parent1cece685504e68d3cd3bba0b2037962e3daba673 (diff)
downloadchromium_src-379a2379cb85e3882775c1d2be87c8c291166194.zip
chromium_src-379a2379cb85e3882775c1d2be87c8c291166194.tar.gz
chromium_src-379a2379cb85e3882775c1d2be87c8c291166194.tar.bz2
Re-enable disabled Chrome Frame accelerator tests.
Change mechanism used to send input keys to batch all key-down events into a single SendInput call. Add SendInput calls with key-up parameters to attempt to reset the modifier keys to an unpressed state on test start/end. Make CF UI tests that look for a specific window work with Aura Chrome Frame. BUG=232037,124244 TEST=chrome_frame_tests.exe Review URL: https://chromiumcodereview.appspot.com/14093015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196213 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/test/ie_event_sink.cc')
-rw-r--r--chrome_frame/test/ie_event_sink.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome_frame/test/ie_event_sink.cc b/chrome_frame/test/ie_event_sink.cc
index 0e1f8d0..9bc5f53 100644
--- a/chrome_frame/test/ie_event_sink.cc
+++ b/chrome_frame/test/ie_event_sink.cc
@@ -389,7 +389,12 @@ HWND IEEventSink::GetRendererWindow() {
first_child = ::GetWindow(first_child, GW_CHILD)) {
child_window = first_child;
GetClassName(child_window, class_name, arraysize(class_name));
- if (!_wcsicmp(class_name, L"Chrome_RenderWidgetHostHWND")) {
+#if defined(USE_AURA)
+ static const wchar_t kWndClassPrefix[] = L"Chrome_WidgetWin_";
+#else
+ static const wchar_t kWndClassPrefix[] = L"Chrome_RenderWidgetHostHWND";
+#endif
+ if (!_wcsnicmp(class_name, kWndClassPrefix, wcslen(kWndClassPrefix))) {
renderer_window = child_window;
break;
}