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

Unified Diff: ios/web/public/test/fakes/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
Index: ios/web/public/test/fakes/test_web_state_observer.mm
diff --git a/ios/web/public/test/fakes/test_web_state_observer.mm b/ios/web/public/test/fakes/test_web_state_observer.mm
index e0784cf18785a5c39ec9d17f412c1ec3285b3109..cd34dc530d582029200e76e1832434c19f2b3adc 100644
--- a/ios/web/public/test/fakes/test_web_state_observer.mm
+++ b/ios/web/public/test/fakes/test_web_state_observer.mm
@@ -68,13 +68,13 @@ void TestWebStateObserver::DidFinishNavigation(NavigationContext* context) {
did_finish_navigation_info_ =
base::MakeUnique<web::TestDidFinishNavigationInfo>();
did_finish_navigation_info_->web_state = web_state();
- if (context->IsSamePage()) {
+ if (context->IsSameDocument()) {
ASSERT_FALSE(context->IsErrorPage());
did_finish_navigation_info_->context =
NavigationContextImpl::CreateSamePageNavigationContext(
context->GetWebState(), context->GetUrl());
} else if (context->IsErrorPage()) {
- ASSERT_FALSE(context->IsSamePage());
+ ASSERT_FALSE(context->IsSameDocument());
did_finish_navigation_info_->context =
NavigationContextImpl::CreateErrorPageNavigationContext(
context->GetWebState(), context->GetUrl());
« no previous file with comments | « ios/web/public/test/fakes/crw_test_web_state_observer.mm ('k') | ios/web/public/web_state/navigation_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698