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

Unified Diff: ios/chrome/browser/ssl/ios_ssl_error_handler_unittest.mm

Issue 2779263002: Set user agent type of transient item the same as pending item. (Closed)
Patch Set: Address comments Created 3 years, 8 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 | « no previous file | ios/web/interstitials/web_interstitial_impl.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ssl/ios_ssl_error_handler_unittest.mm
diff --git a/ios/chrome/browser/ssl/ios_ssl_error_handler_unittest.mm b/ios/chrome/browser/ssl/ios_ssl_error_handler_unittest.mm
index 2114a1eea468c4ff9e77b8afc177198200d45c16..5cb4f8515242492af0e3fc897189fcfa4b7b4b49 100644
--- a/ios/chrome/browser/ssl/ios_ssl_error_handler_unittest.mm
+++ b/ios/chrome/browser/ssl/ios_ssl_error_handler_unittest.mm
@@ -35,6 +35,10 @@ void SetUp() override {
web::WebTestWithWebState::SetUp();
ASSERT_TRUE(cert_);
ASSERT_FALSE(web_state()->IsShowingWebInterstitial());
+
+ // Transient item can only be added for pending non-app-specific loads.
+ AddPendingItem(GURL(kTestHostName),
+ ui::PageTransition::PAGE_TRANSITION_TYPED);
}
web::BrowserState* GetBrowserState() override { return browser_state_.get(); }
« no previous file with comments | « no previous file | ios/web/interstitials/web_interstitial_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698