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

Unified Diff: content/public/test/render_view_test.cc

Issue 266013002: Remove HistoryController::GetPreviousEntry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase; remove browser half of quirk. Created 6 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 | « content/public/test/render_view_test.h ('k') | content/renderer/history_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/render_view_test.cc
diff --git a/content/public/test/render_view_test.cc b/content/public/test/render_view_test.cc
index 43b1e166a3e3057d2d9a14f9725410715be5a4e7..bd9884f8a2b2f35e5abeb0dc21e0adcd8d4b413e 100644
--- a/content/public/test/render_view_test.cc
+++ b/content/public/test/render_view_test.cc
@@ -124,6 +124,11 @@ void RenderViewTest::LoadHTML(const char* html) {
FrameLoadWaiter(view_->GetMainRenderFrame()).Wait();
}
+PageState RenderViewTest::GetCurrentPageState() {
+ RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
+ return HistoryEntryToPageState(impl->history_controller()->GetCurrentEntry());
+}
+
void RenderViewTest::GoBack(const PageState& state) {
GoToOffset(-1, state);
}
@@ -132,12 +137,6 @@ void RenderViewTest::GoForward(const PageState& state) {
GoToOffset(1, state);
}
-void RenderViewTest::GoBackToPrevious() {
- RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
- GoBack(HistoryEntryToPageState(
- impl->history_controller()->GetPreviousEntry()));
-}
-
void RenderViewTest::SetUp() {
content_client_.reset(CreateContentClient());
content_browser_client_.reset(CreateContentBrowserClient());
« no previous file with comments | « content/public/test/render_view_test.h ('k') | content/renderer/history_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698