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

Unified Diff: ios/web/public/test/fakes/test_web_state_delegate.mm

Issue 2642233004: Removed Form Resubmission callback from CRWWebDelegate. (Closed)
Patch Set: Added ShowRepostFormWarningWithNoDelegateMethod test Created 3 years, 11 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/public/test/fakes/test_web_state_delegate.h ('k') | ios/web/public/web_state/ui/crw_web_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/test/fakes/test_web_state_delegate.mm
diff --git a/ios/web/public/test/fakes/test_web_state_delegate.mm b/ios/web/public/test/fakes/test_web_state_delegate.mm
index e309f178d1909b7d4827a6c156f7bd95592f6927..640f3729b26c2778cf1e79a4ec8426973f7c4bcf 100644
--- a/ios/web/public/test/fakes/test_web_state_delegate.mm
+++ b/ios/web/public/test/fakes/test_web_state_delegate.mm
@@ -8,6 +8,13 @@
namespace web {
+TestRepostFormRequest::TestRepostFormRequest() {}
+
+TestRepostFormRequest::~TestRepostFormRequest() = default;
+
+TestRepostFormRequest::TestRepostFormRequest(const TestRepostFormRequest&) =
+ default;
+
TestAuthenticationRequest::TestAuthenticationRequest() {}
TestAuthenticationRequest::~TestAuthenticationRequest() = default;
@@ -35,6 +42,14 @@ bool TestWebStateDelegate::HandleContextMenu(WebState*,
return NO;
}
+void TestWebStateDelegate::ShowRepostFormWarningDialog(
+ WebState* source,
+ const base::Callback<void(bool)>& callback) {
+ last_repost_form_request_ = base::MakeUnique<TestRepostFormRequest>();
+ last_repost_form_request_->web_state = source;
+ last_repost_form_request_->callback = callback;
+}
+
TestJavaScriptDialogPresenter*
TestWebStateDelegate::GetTestJavaScriptDialogPresenter() {
return &java_script_dialog_presenter_;
« no previous file with comments | « ios/web/public/test/fakes/test_web_state_delegate.h ('k') | ios/web/public/web_state/ui/crw_web_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698