summaryrefslogtreecommitdiffstats
path: root/chrome/test/render_view_test.h
diff options
context:
space:
mode:
authorjcivelli@chromium.org <jcivelli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-05 04:38:06 +0000
committerjcivelli@chromium.org <jcivelli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-05 04:38:06 +0000
commit6a8ddba5ea1e8972c2954b138aeb14d77a548a3c (patch)
tree4c1a21857eca96cea8a8743a28209041de389699 /chrome/test/render_view_test.h
parente333e8d07ee32668fc132a21c13cdf674443d1e9 (diff)
downloadchromium_src-6a8ddba5ea1e8972c2954b138aeb14d77a548a3c.zip
chromium_src-6a8ddba5ea1e8972c2954b138aeb14d77a548a3c.tar.gz
chromium_src-6a8ddba5ea1e8972c2954b138aeb14d77a548a3c.tar.bz2
Adding a class to track when a node in a page gets clicked.
This is going to be used by the password/form autofill to trigger the suggestion popup, as part of the effort in moving that code out of WebKit. BUG=None TEST=Run unit-tests. Review URL: http://codereview.chromium.org/3090007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58597 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/render_view_test.h')
-rw-r--r--chrome/test/render_view_test.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/chrome/test/render_view_test.h b/chrome/test/render_view_test.h
index 18d9a19f..1ec224b 100644
--- a/chrome/test/render_view_test.h
+++ b/chrome/test/render_view_test.h
@@ -64,9 +64,18 @@ class RenderViewTest : public testing::Test {
// according to the specified settings defined in the mock render thread.
// Verify the page count is correct.
void VerifyPageCount(int count);
- // Verify the rendered "printed page".
+ // Verifies the rendered "printed page".
void VerifyPagesPrinted();
+ // Returns the bounds (coordinates and size) of the element with id
+ // |element_id|. Returns an empty rect if such an element was not found.
+ gfx::Rect GetElementBounds(const std::string& element_id);
+
+ // Sends a left mouse click in the middle of the element with id |element_id|.
+ // Returns true if the event was sent, false otherwise (typically because
+ // the element was not found).
+ bool SimulateElementClick(const std::string& element_id);
+
// testing::Test
virtual void SetUp();