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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "ios/web/public/test/fakes/crw_test_web_state_observer.h" 5 #import "ios/web/public/test/fakes/crw_test_web_state_observer.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "ios/web/public/web_state/navigation_context.h" 8 #include "ios/web/public/web_state/navigation_context.h"
9 #include "ios/web/web_state/navigation_context_impl.h" 9 #include "ios/web/web_state/navigation_context_impl.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 19 matching lines...) Expand all
30 // Arguments passed to |webStateDidDismissInterstitial:|. 30 // Arguments passed to |webStateDidDismissInterstitial:|.
31 std::unique_ptr<web::TestDismissInterstitialInfo> _dismissInterstitialInfo; 31 std::unique_ptr<web::TestDismissInterstitialInfo> _dismissInterstitialInfo;
32 // Arguments passed to |webState:didChangeLoadingProgress:|. 32 // Arguments passed to |webState:didChangeLoadingProgress:|.
33 std::unique_ptr<web::TestChangeLoadingProgressInfo> 33 std::unique_ptr<web::TestChangeLoadingProgressInfo>
34 _changeLoadingProgressInfo; 34 _changeLoadingProgressInfo;
35 // Arguments passed to |webStateDidChangeTitle:|. 35 // Arguments passed to |webStateDidChangeTitle:|.
36 std::unique_ptr<web::TestTitleWasSetInfo> _titleWasSetInfo; 36 std::unique_ptr<web::TestTitleWasSetInfo> _titleWasSetInfo;
37 // Arguments passed to |webStateDidChangeVisibleSecurityState:|. 37 // Arguments passed to |webStateDidChangeVisibleSecurityState:|.
38 std::unique_ptr<web::TestDidChangeVisibleSecurityStateInfo> 38 std::unique_ptr<web::TestDidChangeVisibleSecurityStateInfo>
39 _didChangeVisibleSecurityStateInfo; 39 _didChangeVisibleSecurityStateInfo;
40 // Arguments passed to |webStateDidSuppressDialog:|.
41 std::unique_ptr<web::TestDidSuppressDialogInfo> _didSuppressDialogInfo;
40 // Arguments passed to 42 // Arguments passed to
41 // |webState:didSubmitDocumentWithFormNamed:userInitiated:|. 43 // |webState:didSubmitDocumentWithFormNamed:userInitiated:|.
42 std::unique_ptr<web::TestSubmitDocumentInfo> _submitDocumentInfo; 44 std::unique_ptr<web::TestSubmitDocumentInfo> _submitDocumentInfo;
43 // Arguments passed to 45 // Arguments passed to
44 // |webState:didRegisterFormActivityWithFormNamed:fieldName:type:value:|. 46 // |webState:didRegisterFormActivityWithFormNamed:fieldName:type:value:|.
45 std::unique_ptr<web::TestFormActivityInfo> _formActivityInfo; 47 std::unique_ptr<web::TestFormActivityInfo> _formActivityInfo;
46 // Arguments passed to |webState:didUpdateFaviconURLCandidates|. 48 // Arguments passed to |webState:didUpdateFaviconURLCandidates|.
47 std::unique_ptr<web::TestUpdateFaviconUrlCandidatesInfo> 49 std::unique_ptr<web::TestUpdateFaviconUrlCandidatesInfo>
48 _updateFaviconUrlCandidatesInfo; 50 _updateFaviconUrlCandidatesInfo;
49 // Arguments passed to |webState:renderProcessGoneForWebState:|. 51 // Arguments passed to |webState:renderProcessGoneForWebState:|.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 84
83 - (web::TestTitleWasSetInfo*)titleWasSetInfo { 85 - (web::TestTitleWasSetInfo*)titleWasSetInfo {
84 return _titleWasSetInfo.get(); 86 return _titleWasSetInfo.get();
85 } 87 }
86 88
87 - (web::TestDidChangeVisibleSecurityStateInfo*) 89 - (web::TestDidChangeVisibleSecurityStateInfo*)
88 didChangeVisibleSecurityStateInfo { 90 didChangeVisibleSecurityStateInfo {
89 return _didChangeVisibleSecurityStateInfo.get(); 91 return _didChangeVisibleSecurityStateInfo.get();
90 } 92 }
91 93
94 - (web::TestDidSuppressDialogInfo*)didSuppressDialogInfo {
95 return _didSuppressDialogInfo.get();
96 }
97
92 - (web::TestSubmitDocumentInfo*)submitDocumentInfo { 98 - (web::TestSubmitDocumentInfo*)submitDocumentInfo {
93 return _submitDocumentInfo.get(); 99 return _submitDocumentInfo.get();
94 } 100 }
95 101
96 - (web::TestFormActivityInfo*)formActivityInfo { 102 - (web::TestFormActivityInfo*)formActivityInfo {
97 return _formActivityInfo.get(); 103 return _formActivityInfo.get();
98 } 104 }
99 105
100 - (web::TestUpdateFaviconUrlCandidatesInfo*)updateFaviconUrlCandidatesInfo { 106 - (web::TestUpdateFaviconUrlCandidatesInfo*)updateFaviconUrlCandidatesInfo {
101 return _updateFaviconUrlCandidatesInfo.get(); 107 return _updateFaviconUrlCandidatesInfo.get();
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 _titleWasSetInfo = base::MakeUnique<web::TestTitleWasSetInfo>(); 187 _titleWasSetInfo = base::MakeUnique<web::TestTitleWasSetInfo>();
182 _titleWasSetInfo->web_state = webState; 188 _titleWasSetInfo->web_state = webState;
183 } 189 }
184 190
185 - (void)webStateDidChangeVisibleSecurityState:(web::WebState*)webState { 191 - (void)webStateDidChangeVisibleSecurityState:(web::WebState*)webState {
186 _didChangeVisibleSecurityStateInfo = 192 _didChangeVisibleSecurityStateInfo =
187 base::MakeUnique<web::TestDidChangeVisibleSecurityStateInfo>(); 193 base::MakeUnique<web::TestDidChangeVisibleSecurityStateInfo>();
188 _didChangeVisibleSecurityStateInfo->web_state = webState; 194 _didChangeVisibleSecurityStateInfo->web_state = webState;
189 } 195 }
190 196
197 - (void)webStateDidSuppressDialog:(web::WebState*)webState {
198 _didSuppressDialogInfo = base::MakeUnique<web::TestDidSuppressDialogInfo>();
199 _didSuppressDialogInfo->web_state = webState;
200 }
201
191 - (void)webState:(web::WebState*)webState 202 - (void)webState:(web::WebState*)webState
192 didSubmitDocumentWithFormNamed:(const std::string&)formName 203 didSubmitDocumentWithFormNamed:(const std::string&)formName
193 userInitiated:(BOOL)userInitiated { 204 userInitiated:(BOOL)userInitiated {
194 _submitDocumentInfo = base::MakeUnique<web::TestSubmitDocumentInfo>(); 205 _submitDocumentInfo = base::MakeUnique<web::TestSubmitDocumentInfo>();
195 _submitDocumentInfo->web_state = webState; 206 _submitDocumentInfo->web_state = webState;
196 _submitDocumentInfo->form_name = formName; 207 _submitDocumentInfo->form_name = formName;
197 _submitDocumentInfo->user_initiated = userInitiated; 208 _submitDocumentInfo->user_initiated = userInitiated;
198 } 209 }
199 210
200 - (void)webState:(web::WebState*)webState 211 - (void)webState:(web::WebState*)webState
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 _stopLoadingInfo = base::MakeUnique<web::TestStopLoadingInfo>(); 246 _stopLoadingInfo = base::MakeUnique<web::TestStopLoadingInfo>();
236 _stopLoadingInfo->web_state = webState; 247 _stopLoadingInfo->web_state = webState;
237 } 248 }
238 249
239 - (void)webStateDidStartLoading:(web::WebState*)webState { 250 - (void)webStateDidStartLoading:(web::WebState*)webState {
240 _startLoadingInfo = base::MakeUnique<web::TestStartLoadingInfo>(); 251 _startLoadingInfo = base::MakeUnique<web::TestStartLoadingInfo>();
241 _startLoadingInfo->web_state = webState; 252 _startLoadingInfo->web_state = webState;
242 } 253 }
243 254
244 @end 255 @end
OLDNEW
« 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