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

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

Issue 2896623003: Added web::NavigationContext::GetPageTransition. (Closed)
Patch Set: Fixed condition for SetIsCreatedFromHashChange call Created 3 years, 7 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 9405d17ee05d698e7193836ebe3b5d5d390dcb81..ab2b29436aa5b25c959eacea78c68a627323364b 100644
--- a/ios/web/public/test/fakes/test_web_state_observer.mm
+++ b/ios/web/public/test/fakes/test_web_state_observer.mm
@@ -65,7 +65,8 @@ void TestWebStateObserver::DidStartNavigation(NavigationContext* navigation) {
did_start_navigation_info_->web_state = web_state();
std::unique_ptr<web::NavigationContextImpl> context =
web::NavigationContextImpl::CreateNavigationContext(
- navigation->GetWebState(), navigation->GetUrl());
+ navigation->GetWebState(), navigation->GetUrl(),
+ navigation->GetPageTransition());
context->SetIsSameDocument(navigation->IsSameDocument());
context->SetIsErrorPage(navigation->IsErrorPage());
did_start_navigation_info_->context = std::move(context);
@@ -78,7 +79,8 @@ void TestWebStateObserver::DidFinishNavigation(NavigationContext* navigation) {
did_finish_navigation_info_->web_state = web_state();
std::unique_ptr<web::NavigationContextImpl> context =
web::NavigationContextImpl::CreateNavigationContext(
- navigation->GetWebState(), navigation->GetUrl());
+ navigation->GetWebState(), navigation->GetUrl(),
+ navigation->GetPageTransition());
context->SetIsSameDocument(navigation->IsSameDocument());
context->SetIsErrorPage(navigation->IsErrorPage());
did_finish_navigation_info_->context = std::move(context);

Powered by Google App Engine
This is Rietveld 408576698