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

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

Issue 2896623003: Added web::NavigationContext::GetPageTransition. (Closed)
Patch Set: Rebased 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 5521fad1719d78fa10bb3c357080c95cac050140..c184f6e8132aebd30cd88d855ac72b38cf5098b1 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->SetError(navigation->GetError());
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->SetError(navigation->GetError());
did_finish_navigation_info_->context = std::move(context);
« 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