| 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
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3792e05266f80e65866c8cc2048ad78ea7109b64
|
| --- /dev/null
|
| +++ b/ios/web/public/test/fakes/test_web_state_delegate.mm
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#import "ios/web/public/test/fakes/test_web_state_delegate.h"
|
| +
|
| +namespace web {
|
| +
|
| +JavaScriptDialogPresenter* TestWebStateDelegate::GetJavaScriptDialogPresenter(
|
| + WebState*) {
|
| + get_java_script_dialog_presenter_called_ = true;
|
| + return &java_script_dialog_presenter_;
|
| +}
|
| +
|
| +void TestWebStateDelegate::LoadProgressChanged(WebState*, double) {
|
| + load_progress_changed_called_ = true;
|
| +}
|
| +
|
| +bool TestWebStateDelegate::HandleContextMenu(WebState*,
|
| + const ContextMenuParams&) {
|
| + handle_context_menu_called_ = true;
|
| + return NO;
|
| +}
|
| +
|
| +TestJavaScriptDialogPresenter*
|
| +TestWebStateDelegate::GetTestJavaScriptDialogPresenter() {
|
| + return &java_script_dialog_presenter_;
|
| +}
|
| +
|
| +} // namespace web
|
|
|