summaryrefslogtreecommitdiffstats
path: root/content/test/layouttest_support.cc
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-21 08:40:34 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-21 08:40:34 +0000
commitb283d295de80df36c95121468beeba0f9c23b504 (patch)
tree7e581af8015152569bdd2a0e8cc80aa35a3b928e /content/test/layouttest_support.cc
parent97eeaa029c90bc17c279fbd6a4a56afe10b14d95 (diff)
downloadchromium_src-b283d295de80df36c95121468beeba0f9c23b504.zip
chromium_src-b283d295de80df36c95121468beeba0f9c23b504.tar.gz
chromium_src-b283d295de80df36c95121468beeba0f9c23b504.tar.bz2
Add a method to RenderViewImpl to retrieve the length of the session history
We need this information to implement the WebTestDelegate interface. BUG=111316 R=creis@chromium.org Review URL: https://codereview.chromium.org/12319014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183772 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test/layouttest_support.cc')
-rw-r--r--content/test/layouttest_support.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc
index 5cd042b..a0d77b6 100644
--- a/content/test/layouttest_support.cc
+++ b/content/test/layouttest_support.cc
@@ -56,4 +56,9 @@ void EnableDevToolsFrontendTesting() {
DevToolsClient::EnableDevToolsFrontendTesting();
}
+int GetLocalSessionHistoryLength(RenderView* render_view) {
+ return static_cast<RenderViewImpl*>(render_view)
+ ->GetLocalSessionHistoryLengthForTesting();
+}
+
} // namespace content