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

Unified Diff: ios/web/web_state/web_state_impl_unittest.mm

Issue 2752013002: Removed webControllerDidUpdateSSLStatusForCurrentNavigationItem:. (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
« no previous file with comments | « ios/web/web_state/web_state_impl.mm ('k') | ios/web/web_state/web_state_observer_bridge.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/web_state_impl_unittest.mm
diff --git a/ios/web/web_state/web_state_impl_unittest.mm b/ios/web/web_state/web_state_impl_unittest.mm
index 2bd63b701e5f0e20fc95321512a322bf1c19c5c7..093cf8acdfe6a22a8da1b9dd10b8449a8b797cb2 100644
--- a/ios/web/web_state/web_state_impl_unittest.mm
+++ b/ios/web/web_state/web_state_impl_unittest.mm
@@ -276,6 +276,13 @@ TEST_F(WebStateImplTest, ObserverTest) {
ASSERT_TRUE(observer->title_was_set_info());
EXPECT_EQ(web_state_.get(), observer->title_was_set_info()->web_state);
+ // Test that DidChangeVisibleSecurityState() is called.
+ ASSERT_FALSE(observer->did_change_visible_security_state_info());
+ web_state_->OnVisibleSecurityStateChange();
+ ASSERT_TRUE(observer->did_change_visible_security_state_info());
+ EXPECT_EQ(web_state_.get(),
+ observer->did_change_visible_security_state_info()->web_state);
+
// Test that DocumentSubmitted() is called.
ASSERT_FALSE(observer->submit_document_info());
std::string kTestFormName("form-name");
« no previous file with comments | « ios/web/web_state/web_state_impl.mm ('k') | ios/web/web_state/web_state_observer_bridge.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698