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

Unified Diff: ios/web/public/test/fakes/crw_test_web_state_observer.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
Index: ios/web/public/test/fakes/crw_test_web_state_observer.mm
diff --git a/ios/web/public/test/fakes/crw_test_web_state_observer.mm b/ios/web/public/test/fakes/crw_test_web_state_observer.mm
index f1eb5ae1fbfc8ae5b31eafcc8ffc3c20c8516c6a..3f39e4b354a167d518d5d23b2a2ba246c4e0b9ed 100644
--- a/ios/web/public/test/fakes/crw_test_web_state_observer.mm
+++ b/ios/web/public/test/fakes/crw_test_web_state_observer.mm
@@ -37,6 +37,8 @@ TestUpdateFaviconUrlCandidatesInfo::~TestUpdateFaviconUrlCandidatesInfo() =
// Arguments passed to |webStateDidChangeVisibleSecurityState:|.
std::unique_ptr<web::TestDidChangeVisibleSecurityStateInfo>
_didChangeVisibleSecurityStateInfo;
+ // Arguments passed to |webStateDidSuppressDialog:|.
+ std::unique_ptr<web::TestDidSuppressDialogInfo> _didSuppressDialogInfo;
// Arguments passed to
// |webState:didSubmitDocumentWithFormNamed:userInitiated:|.
std::unique_ptr<web::TestSubmitDocumentInfo> _submitDocumentInfo;
@@ -89,6 +91,10 @@ TestUpdateFaviconUrlCandidatesInfo::~TestUpdateFaviconUrlCandidatesInfo() =
return _didChangeVisibleSecurityStateInfo.get();
}
+- (web::TestDidSuppressDialogInfo*)didSuppressDialogInfo {
+ return _didSuppressDialogInfo.get();
+}
+
- (web::TestSubmitDocumentInfo*)submitDocumentInfo {
return _submitDocumentInfo.get();
}
@@ -188,6 +194,11 @@ TestUpdateFaviconUrlCandidatesInfo::~TestUpdateFaviconUrlCandidatesInfo() =
_didChangeVisibleSecurityStateInfo->web_state = webState;
}
+- (void)webStateDidSuppressDialog:(web::WebState*)webState {
+ _didSuppressDialogInfo = base::MakeUnique<web::TestDidSuppressDialogInfo>();
+ _didSuppressDialogInfo->web_state = webState;
+}
+
- (void)webState:(web::WebState*)webState
didSubmitDocumentWithFormNamed:(const std::string&)formName
userInitiated:(BOOL)userInitiated {
« no previous file with comments | « ios/web/public/test/fakes/crw_test_web_state_observer.h ('k') | ios/web/public/test/fakes/test_web_state_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698