| 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..e0b44c101ab65b67a5b048904755a0a2a492713a 100644
|
| --- a/content/public/test/render_view_test.h
|
| +++ b/content/public/test/render_view_test.h
|
| @@ -22,6 +22,7 @@
|
| struct ViewMsg_Resize_Params;
|
|
|
| namespace blink {
|
| +class WebInputElement;
|
| class WebWidget;
|
| }
|
|
|
| @@ -127,6 +128,20 @@ class RenderViewTest : public testing::Test {
|
| gfx::Rect resizer_rect,
|
| bool is_fullscreen);
|
|
|
| + // Simulate typing the |ascii_character| into the browser. Also accepts
|
| + // ui::VKEY_BACK for backspace.
|
| + void SimulateUserTypingASCIICharacter(char ascii_character);
|
| +
|
| + // Should be called after SimulateUserTypingASCIICharacter calls to process
|
| + // the input for autofill.
|
| + void ProcessInputForAutofill();
|
| +
|
| + // Simulates user focusing |input|, erasing all text, and typing the
|
| + // |new_value| instead. Will process input events for autofill. This is a user
|
| + // gesture.
|
| + void SimulateUserInputChangeForElement(blink::WebInputElement* input,
|
| + 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,
|
| @@ -170,6 +185,7 @@ class RenderViewTest : public testing::Test {
|
|
|
| private:
|
| void GoToOffset(int offset, const PageState& state);
|
| + void LayoutMainFrame();
|
| };
|
|
|
| } // namespace content
|
|
|