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

Unified Diff: ios/web/public/test/fakes/crw_test_web_state_observer.mm

Issue 2734293002: s/IsSamePage/IsSameDocument for NavigationContext. (Closed)
Patch Set: Created 3 years, 9 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 | « ios/chrome/browser/tabs/tab.mm ('k') | ios/web/public/test/fakes/test_web_state_observer.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/test/fakes/crw_test_web_state_observer.mm
diff --git a/ios/web/public/test/fakes/crw_test_web_state_observer.mm b/ios/web/public/test/fakes/crw_test_web_state_observer.mm
index 7318b888d887830b0d8216d02651ae174b9752c5..673d89e450175a62b652839ad02e5bc98a9dc761 100644
--- a/ios/web/public/test/fakes/crw_test_web_state_observer.mm
+++ b/ios/web/public/test/fakes/crw_test_web_state_observer.mm
@@ -132,13 +132,13 @@ TestUpdateFaviconUrlCandidatesInfo::~TestUpdateFaviconUrlCandidatesInfo() =
_didFinishNavigationInfo =
base::MakeUnique<web::TestDidFinishNavigationInfo>();
_didFinishNavigationInfo->web_state = webState;
- if (navigation->IsSamePage()) {
+ if (navigation->IsSameDocument()) {
ASSERT_FALSE(navigation->IsErrorPage());
_didFinishNavigationInfo->context =
web::NavigationContextImpl::CreateSamePageNavigationContext(
navigation->GetWebState(), navigation->GetUrl());
} else if (navigation->IsErrorPage()) {
- ASSERT_FALSE(navigation->IsSamePage());
+ ASSERT_FALSE(navigation->IsSameDocument());
_didFinishNavigationInfo->context =
web::NavigationContextImpl::CreateErrorPageNavigationContext(
navigation->GetWebState(), navigation->GetUrl());
« no previous file with comments | « ios/chrome/browser/tabs/tab.mm ('k') | ios/web/public/test/fakes/test_web_state_observer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698