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

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

Issue 2755013002: Removed webControllerDidSuppressDialog: callback. (Closed)
Patch Set: Self review 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 093cf8acdfe6a22a8da1b9dd10b8449a8b797cb2..c76254436d30f435f834d632924bf94f03257d88 100644
--- a/ios/web/web_state/web_state_impl_unittest.mm
+++ b/ios/web/web_state/web_state_impl_unittest.mm
@@ -283,6 +283,13 @@ TEST_F(WebStateImplTest, ObserverTest) {
EXPECT_EQ(web_state_.get(),
observer->did_change_visible_security_state_info()->web_state);
+ // Test that DidSuppressDialog() is called.
+ ASSERT_FALSE(observer->did_suppress_dialog_info());
+ web_state_->SetShouldSuppressDialogs(true);
+ web_state_->OnDialogSuppressed();
+ ASSERT_TRUE(observer->did_suppress_dialog_info());
+ EXPECT_EQ(web_state_.get(), observer->did_suppress_dialog_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