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

Unified Diff: ios/web/webui/crw_web_ui_manager_unittest.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/webui/crw_web_ui_manager_unittest.mm
diff --git a/ios/web/webui/crw_web_ui_manager_unittest.mm b/ios/web/webui/crw_web_ui_manager_unittest.mm
index 1dc2fcfb547c466c2da11f484d9118e54460b763..af9748f909001df53b192b4d80dbd89527cdc707 100644
--- a/ios/web/webui/crw_web_ui_manager_unittest.mm
+++ b/ios/web/webui/crw_web_ui_manager_unittest.mm
@@ -148,8 +148,9 @@ TEST_F(CRWWebUIManagerTest, LoadWebUI) {
GURL url(kTestWebUIUrl);
EXPECT_CALL(*web_state_impl_, LoadWebUIHtml(html, url));
std::unique_ptr<web::NavigationContext> context =
- NavigationContextImpl::CreateNavigationContext(web_state_impl_.get(),
- url);
+ NavigationContextImpl::CreateNavigationContext(
+ web_state_impl_.get(), url,
+ ui::PageTransition::PAGE_TRANSITION_AUTO_BOOKMARK);
web_state_impl_->OnNavigationStarted(context.get());
}

Powered by Google App Engine
This is Rietveld 408576698