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

Unified Diff: ios/web/web_state/web_state_observer_bridge_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_observer_bridge.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/web_state_observer_bridge_unittest.mm
diff --git a/ios/web/web_state/web_state_observer_bridge_unittest.mm b/ios/web/web_state/web_state_observer_bridge_unittest.mm
index 109f5361987de3330cd479db729885eea408fe00..14829fe3e311b32d7f9488b53c1eeb29f361a0ac 100644
--- a/ios/web/web_state/web_state_observer_bridge_unittest.mm
+++ b/ios/web/web_state/web_state_observer_bridge_unittest.mm
@@ -142,6 +142,15 @@ TEST_F(WebStateObserverBridgeTest, DidChangeVisibleSecurityState) {
[observer_ didChangeVisibleSecurityStateInfo]->web_state);
}
+// Tests |webStateDidSuppressDialog:| forwarding.
+TEST_F(WebStateObserverBridgeTest, DidSuppressDialog) {
+ ASSERT_FALSE([observer_ didSuppressDialogInfo]);
+
+ bridge_->DidSuppressDialog();
+ ASSERT_TRUE([observer_ didSuppressDialogInfo]);
+ EXPECT_EQ(&test_web_state_, [observer_ didSuppressDialogInfo]->web_state);
+}
+
// Tests |webState:didSubmitDocumentWithFormNamed:userInitiated:| forwarding.
TEST_F(WebStateObserverBridgeTest, DocumentSubmitted) {
ASSERT_FALSE([observer_ submitDocumentInfo]);
« no previous file with comments | « ios/web/web_state/web_state_observer_bridge.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698