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

Unified Diff: chrome/test/render_view_test.h

Issue 92122: Implements keyboard events for RenderViewTest.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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/renderer/render_view_unittest.cc ('k') | chrome/test/render_view_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/render_view_test.h
===================================================================
--- chrome/test/render_view_test.h (revision 15745)
+++ chrome/test/render_view_test.h (working copy)
@@ -5,7 +5,10 @@
#ifndef CHROME_TEST_RENDER_VIEW_TEST_H_
#define CHROME_TEST_RENDER_VIEW_TEST_H_
+#include <string>
+
#include "base/scoped_ptr.h"
+#include "chrome/renderer/mock_keyboard.h"
#include "chrome/renderer/mock_render_process.h"
#include "chrome/renderer/mock_render_thread.h"
#include "chrome/renderer/render_view.h"
@@ -32,6 +35,12 @@
// Loads the given HTML into the main frame as a data: URL.
void LoadHTML(const char* html);
+ // Sends IPC messages that emulates a key-press event.
+ int SendKeyEvent(MockKeyboard::Layout layout,
+ int key_code,
+ MockKeyboard::Modifiers key_modifiers,
+ std::wstring* output);
+
// testing::Test
virtual void SetUp();
@@ -42,6 +51,7 @@
scoped_ptr<MockProcess> mock_process_;
scoped_refptr<RenderView> view_;
RendererWebKitClientImpl webkitclient_;
+ scoped_ptr<MockKeyboard> mock_keyboard_;
};
#endif // CHROME_TEST_RENDER_VIEW_TEST_H_
« no previous file with comments | « chrome/renderer/render_view_unittest.cc ('k') | chrome/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698