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

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

Issue 2752013002: Removed webControllerDidUpdateSSLStatusForCurrentNavigationItem:. (Closed)
Patch Set: 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 16 matching lines...) Expand all
27 std::unique_ptr<web::TestCommitNavigationInfo> _commitNavigationInfo; 27 std::unique_ptr<web::TestCommitNavigationInfo> _commitNavigationInfo;
28 // Arguments passed to |webState:didLoadPageWithSuccess:|. 28 // Arguments passed to |webState:didLoadPageWithSuccess:|.
29 std::unique_ptr<web::TestLoadPageInfo> _loadPageInfo; 29 std::unique_ptr<web::TestLoadPageInfo> _loadPageInfo;
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:|.
38 std::unique_ptr<web::TestDidChangeVisibleSecurityStateInfo>
39 _didChangeVisibleSecurityStateInfo;
37 // Arguments passed to 40 // Arguments passed to
38 // |webState:didSubmitDocumentWithFormNamed:userInitiated:|. 41 // |webState:didSubmitDocumentWithFormNamed:userInitiated:|.
39 std::unique_ptr<web::TestSubmitDocumentInfo> _submitDocumentInfo; 42 std::unique_ptr<web::TestSubmitDocumentInfo> _submitDocumentInfo;
40 // Arguments passed to 43 // Arguments passed to
41 // |webState:didRegisterFormActivityWithFormNamed:fieldName:type:value:|. 44 // |webState:didRegisterFormActivityWithFormNamed:fieldName:type:value:|.
42 std::unique_ptr<web::TestFormActivityInfo> _formActivityInfo; 45 std::unique_ptr<web::TestFormActivityInfo> _formActivityInfo;
43 // Arguments passed to |webState:didUpdateFaviconURLCandidates|. 46 // Arguments passed to |webState:didUpdateFaviconURLCandidates|.
44 std::unique_ptr<web::TestUpdateFaviconUrlCandidatesInfo> 47 std::unique_ptr<web::TestUpdateFaviconUrlCandidatesInfo>
45 _updateFaviconUrlCandidatesInfo; 48 _updateFaviconUrlCandidatesInfo;
46 // Arguments passed to |webState:renderProcessGoneForWebState:|. 49 // Arguments passed to |webState:renderProcessGoneForWebState:|.
(...skipping 27 matching lines...) Expand all
74 } 77 }
75 78
76 - (web::TestChangeLoadingProgressInfo*)changeLoadingProgressInfo { 79 - (web::TestChangeLoadingProgressInfo*)changeLoadingProgressInfo {
77 return _changeLoadingProgressInfo.get(); 80 return _changeLoadingProgressInfo.get();
78 } 81 }
79 82
80 - (web::TestTitleWasSetInfo*)titleWasSetInfo { 83 - (web::TestTitleWasSetInfo*)titleWasSetInfo {
81 return _titleWasSetInfo.get(); 84 return _titleWasSetInfo.get();
82 } 85 }
83 86
87 - (web::TestDidChangeVisibleSecurityStateInfo*)
88 didChangeVisibleSecurityStateInfo {
89 return _didChangeVisibleSecurityStateInfo.get();
90 }
91
84 - (web::TestSubmitDocumentInfo*)submitDocumentInfo { 92 - (web::TestSubmitDocumentInfo*)submitDocumentInfo {
85 return _submitDocumentInfo.get(); 93 return _submitDocumentInfo.get();
86 } 94 }
87 95
88 - (web::TestFormActivityInfo*)formActivityInfo { 96 - (web::TestFormActivityInfo*)formActivityInfo {
89 return _formActivityInfo.get(); 97 return _formActivityInfo.get();
90 } 98 }
91 99
92 - (web::TestUpdateFaviconUrlCandidatesInfo*)updateFaviconUrlCandidatesInfo { 100 - (web::TestUpdateFaviconUrlCandidatesInfo*)updateFaviconUrlCandidatesInfo {
93 return _updateFaviconUrlCandidatesInfo.get(); 101 return _updateFaviconUrlCandidatesInfo.get();
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 base::MakeUnique<web::TestChangeLoadingProgressInfo>(); 175 base::MakeUnique<web::TestChangeLoadingProgressInfo>();
168 _changeLoadingProgressInfo->web_state = webState; 176 _changeLoadingProgressInfo->web_state = webState;
169 _changeLoadingProgressInfo->progress = progress; 177 _changeLoadingProgressInfo->progress = progress;
170 } 178 }
171 179
172 - (void)webStateDidChangeTitle:(web::WebState*)webState { 180 - (void)webStateDidChangeTitle:(web::WebState*)webState {
173 _titleWasSetInfo = base::MakeUnique<web::TestTitleWasSetInfo>(); 181 _titleWasSetInfo = base::MakeUnique<web::TestTitleWasSetInfo>();
174 _titleWasSetInfo->web_state = webState; 182 _titleWasSetInfo->web_state = webState;
175 } 183 }
176 184
185 - (void)webStateDidChangeVisibleSecurityState:(web::WebState*)webState {
186 _didChangeVisibleSecurityStateInfo =
187 base::MakeUnique<web::TestDidChangeVisibleSecurityStateInfo>();
188 _didChangeVisibleSecurityStateInfo->web_state = webState;
189 }
190
177 - (void)webState:(web::WebState*)webState 191 - (void)webState:(web::WebState*)webState
178 didSubmitDocumentWithFormNamed:(const std::string&)formName 192 didSubmitDocumentWithFormNamed:(const std::string&)formName
179 userInitiated:(BOOL)userInitiated { 193 userInitiated:(BOOL)userInitiated {
180 _submitDocumentInfo = base::MakeUnique<web::TestSubmitDocumentInfo>(); 194 _submitDocumentInfo = base::MakeUnique<web::TestSubmitDocumentInfo>();
181 _submitDocumentInfo->web_state = webState; 195 _submitDocumentInfo->web_state = webState;
182 _submitDocumentInfo->form_name = formName; 196 _submitDocumentInfo->form_name = formName;
183 _submitDocumentInfo->user_initiated = userInitiated; 197 _submitDocumentInfo->user_initiated = userInitiated;
184 } 198 }
185 199
186 - (void)webState:(web::WebState*)webState 200 - (void)webState:(web::WebState*)webState
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 _stopLoadingInfo = base::MakeUnique<web::TestStopLoadingInfo>(); 235 _stopLoadingInfo = base::MakeUnique<web::TestStopLoadingInfo>();
222 _stopLoadingInfo->web_state = webState; 236 _stopLoadingInfo->web_state = webState;
223 } 237 }
224 238
225 - (void)webStateDidStartLoading:(web::WebState*)webState { 239 - (void)webStateDidStartLoading:(web::WebState*)webState {
226 _startLoadingInfo = base::MakeUnique<web::TestStartLoadingInfo>(); 240 _startLoadingInfo = base::MakeUnique<web::TestStartLoadingInfo>();
227 _startLoadingInfo->web_state = webState; 241 _startLoadingInfo->web_state = webState;
228 } 242 }
229 243
230 @end 244 @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