| Index: content/public/test/render_view_test.h
|
| diff --git a/content/public/test/render_view_test.h b/content/public/test/render_view_test.h
|
| index d512c547bced141a42e460340a1cf1e946f6edbf..a7aa5eb23061d82c22eafc4e962233d3dd2229d7 100644
|
| --- a/content/public/test/render_view_test.h
|
| +++ b/content/public/test/render_view_test.h
|
| @@ -18,6 +18,7 @@
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| #include "third_party/WebKit/public/platform/Platform.h"
|
| #include "third_party/WebKit/public/web/WebFrame.h"
|
| +#include "third_party/WebKit/public/web/WebInputElement.h"
|
|
|
| struct ViewMsg_Resize_Params;
|
|
|
| @@ -34,6 +35,7 @@ class ContentBrowserClient;
|
| class ContentClient;
|
| class ContentRendererClient;
|
| class FakeCompositorDependencies;
|
| +class MockKeyboard;
|
| class MockRenderProcess;
|
| class PageState;
|
| class RendererMainPlatformDelegate;
|
| @@ -127,6 +129,24 @@ class RenderViewTest : public testing::Test {
|
| gfx::Rect resizer_rect,
|
| bool is_fullscreen);
|
|
|
| + // Sends IPC messages that emulate a key-press event.
|
| + int SendKeyEvent(const MockKeyboard& keyboard,
|
| + int key_code,
|
| + base::string16* output);
|
| +
|
| + // Simulate typing the |ascii_character| into the browser.
|
| + void SimulateUserTypingASCIICharacter(char ascii_character);
|
| +
|
| + // Simulates typing the |key_code| into the browser with Shift pressed if
|
| + // |is_shift_pressed| is true.
|
| + void SimulateUserTypingKeyCodeWithShift(int key_code, bool is_shift_pressed);
|
| +
|
| + // Simulates erasing text in the |input| and typing in the |new_value|
|
| + // instead. The |input| should be focused to receive the keyboard events.
|
| + void SimulateUserInputChangeForElement(blink::WebInputElement* input,
|
| + blink::WebFrame* input_frame,
|
| + const std::string& new_value);
|
| +
|
| // These are all methods from RenderViewImpl that we expose to testing code.
|
| bool OnMessageReceived(const IPC::Message& msg);
|
| void DidNavigateWithinPage(blink::WebLocalFrame* frame,
|
|
|