Index: content/browser/frame_host/navigation_controller_impl_unittest.cc |
diff --git a/content/browser/frame_host/navigation_controller_impl_unittest.cc b/content/browser/frame_host/navigation_controller_impl_unittest.cc |
index 7303a6c8aba1e874dd6a4ff1db016758d5d7dc87..92abcd04e06e4279c280145415b784982a81e709 100644 |
--- a/content/browser/frame_host/navigation_controller_impl_unittest.cc |
+++ b/content/browser/frame_host/navigation_controller_impl_unittest.cc |
@@ -4597,7 +4597,7 @@ TEST_F(NavigationControllerTest, HistoryNavigate) { |
process()->sink().ClearMessages(); |
// Simulate the page calling history.back(). It should create a pending entry. |
- contents()->OnGoToEntryAtOffset(-1); |
+ contents()->OnGoToEntryAtOffset(test_rvh(), -1); |
EXPECT_EQ(0, controller.GetPendingEntryIndex()); |
// The actual cross-navigation is suspended until the current RVH tells us |
// it unloaded, simulate that. |
@@ -4609,7 +4609,7 @@ TEST_F(NavigationControllerTest, HistoryNavigate) { |
process()->sink().ClearMessages(); |
// Now test history.forward() |
- contents()->OnGoToEntryAtOffset(2); |
+ contents()->OnGoToEntryAtOffset(test_rvh(), 2); |
EXPECT_EQ(2, controller.GetPendingEntryIndex()); |
// The actual cross-navigation is suspended until the current RVH tells us |
// it unloaded, simulate that. |
@@ -4622,7 +4622,7 @@ TEST_F(NavigationControllerTest, HistoryNavigate) { |
controller.DiscardNonCommittedEntries(); |
// Make sure an extravagant history.go() doesn't break. |
- contents()->OnGoToEntryAtOffset(120); // Out of bounds. |
+ contents()->OnGoToEntryAtOffset(test_rvh(), 120); // Out of bounds. |
EXPECT_EQ(-1, controller.GetPendingEntryIndex()); |
EXPECT_FALSE(HasNavigationRequest()); |
} |