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

Side by Side Diff: ios/web/public/test/fakes/test_web_state_delegate.mm

Issue 2615093004: [ios] Made TestWebStateDelegate and TestJavaScriptDialogPresenter reusable. (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #import "ios/web/public/test/fakes/test_web_state_delegate.h"
6
7 namespace web {
8
9 JavaScriptDialogPresenter* TestWebStateDelegate::GetJavaScriptDialogPresenter(
10 WebState*) {
11 get_java_script_dialog_presenter_called_ = true;
12 return &java_script_dialog_presenter_;
13 }
14
15 void TestWebStateDelegate::LoadProgressChanged(WebState*, double) {
16 load_progress_changed_called_ = true;
17 }
18
19 bool TestWebStateDelegate::HandleContextMenu(WebState*,
20 const ContextMenuParams&) {
21 handle_context_menu_called_ = true;
22 return NO;
23 }
24
25 TestJavaScriptDialogPresenter*
26 TestWebStateDelegate::GetTestJavaScriptDialogPresenter() {
27 return &java_script_dialog_presenter_;
28 }
29
30 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/public/test/fakes/test_web_state_delegate.h ('k') | ios/web/web_state/web_state_impl_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698