| 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_;
|
|
|