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

Unified Diff: content/browser/web_contents/aura/overscroll_navigation_overlay_unittest.cc

Issue 1048463004: PlzNavigate: track pending commits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed other occurences of main_test_rfh Created 5 years, 8 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
Index: content/browser/web_contents/aura/overscroll_navigation_overlay_unittest.cc
diff --git a/content/browser/web_contents/aura/overscroll_navigation_overlay_unittest.cc b/content/browser/web_contents/aura/overscroll_navigation_overlay_unittest.cc
index 4eda449e57f2587099b6f39f0656ef3958da3b7d..8b6c78424b9ed7747849f6857cb2b655712a38b9 100644
--- a/content/browser/web_contents/aura/overscroll_navigation_overlay_unittest.cc
+++ b/content/browser/web_contents/aura/overscroll_navigation_overlay_unittest.cc
@@ -103,10 +103,10 @@ class OverscrollNavigationOverlayTest : public RenderViewHostImplTestHarness {
GetOverlay()->OnOverscrollCompleting();
main_test_rfh()->PrepareForCommit();
if (window) {
- EXPECT_TRUE(contents()->cross_navigation_pending());
+ EXPECT_TRUE(contents()->CrossProcessNavigationPending());
EXPECT_EQ(GetOverlay()->direction_, OverscrollNavigationOverlay::BACK);
} else {
- EXPECT_FALSE(contents()->cross_navigation_pending());
+ EXPECT_FALSE(contents()->CrossProcessNavigationPending());
EXPECT_EQ(GetOverlay()->direction_, OverscrollNavigationOverlay::NONE);
}
window->SetBounds(gfx::Rect(root_window()->bounds().size()));
@@ -237,7 +237,7 @@ TEST_F(OverscrollNavigationOverlayTest, CancelNavigation) {
EXPECT_EQ(GetOverlay()->direction_, OverscrollNavigationOverlay::BACK);
GetOverlay()->OnOverscrollCancelled();
- EXPECT_FALSE(contents()->cross_navigation_pending());
+ EXPECT_FALSE(contents()->CrossProcessNavigationPending());
EXPECT_EQ(GetOverlay()->direction_, OverscrollNavigationOverlay::NONE);
}
@@ -252,7 +252,7 @@ TEST_F(OverscrollNavigationOverlayTest, CancelAfterSuccessfulNavigation) {
GetOverlay()->OnOverscrollCancelled();
EXPECT_EQ(GetOverlay()->direction_, OverscrollNavigationOverlay::NONE);
- EXPECT_TRUE(contents()->cross_navigation_pending());
+ EXPECT_TRUE(contents()->CrossProcessNavigationPending());
main_test_rfh()->SendNavigate(
1, contents()->GetController().GetPendingEntry()->GetURL());
EXPECT_EQ(contents()->GetURL(), third());

Powered by Google App Engine
This is Rietveld 408576698