Chromium Code Reviews| 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 bb876c50d058dd12921987fa498a8383cac5fa71..638b265c9d134063f09ab467d4b52eb2ef41c439 100644 |
| --- a/content/browser/frame_host/navigation_controller_impl_unittest.cc |
| +++ b/content/browser/frame_host/navigation_controller_impl_unittest.cc |
| @@ -826,7 +826,7 @@ TEST_F(NavigationControllerTest, LoadURL_PrivilegedPending) { |
| controller.LoadURL( |
| kExistingURL1, Referrer(), ui::PAGE_TRANSITION_TYPED, std::string()); |
| // Pretend it has bindings so we can tell if we incorrectly copy it. |
| - test_rvh()->AllowBindings(2); |
| + main_test_rfh()->GetRenderViewHost()->AllowBindings(2); |
| main_test_rfh()->SendNavigate(0, kExistingURL1); |
| EXPECT_EQ(1U, navigation_entry_committed_counter_); |
| navigation_entry_committed_counter_ = 0; |
| @@ -4246,7 +4246,7 @@ TEST_F(NavigationControllerTest, MAYBE_PurgeScreenshot) { |
| TEST_F(NavigationControllerTest, PushStateUpdatesTitleAndFavicon) { |
| // Navigate. |
| - test_rvh()->SendNavigate(1, GURL("http://foo")); |
| + contents()->GetMainFrame()->SendNavigate(1, GURL("http://foo")); |
|
Charlie Reis
2014/10/08 17:41:55
Again, why choose this over main_rfh() in some pla
ncarter (slow)
2014/10/08 22:39:28
Discussed in previous comment.
|
| // Set title and favicon. |
| base::string16 title(base::ASCIIToUTF16("Title")); |
| @@ -4263,7 +4263,7 @@ TEST_F(NavigationControllerTest, PushStateUpdatesTitleAndFavicon) { |
| params.url = url; |
| params.page_state = PageState::CreateFromURL(url); |
| params.was_within_same_page = true; |
| - test_rvh()->SendNavigateWithParams(¶ms); |
| + contents()->GetMainFrame()->SendNavigateWithParams(¶ms); |
| // The title should immediately be visible on the new NavigationEntry. |
| base::string16 new_title = |