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

Unified Diff: ios/web/public/test/fakes/crw_test_web_state_observer.mm

Issue 2710913006: Removed -[CRWWebDelegate webController:titleDidChange:]. (Closed)
Patch Set: Rebased Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: ios/web/public/test/fakes/crw_test_web_state_observer.mm
diff --git a/ios/web/public/test/fakes/crw_test_web_state_observer.mm b/ios/web/public/test/fakes/crw_test_web_state_observer.mm
index b7e785c0fddfb9d6d77a9be4534878e64e5dd16f..1d79daf3fafada6d69544c61a921ae8ffbfefe93 100644
--- a/ios/web/public/test/fakes/crw_test_web_state_observer.mm
+++ b/ios/web/public/test/fakes/crw_test_web_state_observer.mm
@@ -29,6 +29,8 @@ TestUpdateFaviconUrlCandidatesInfo::~TestUpdateFaviconUrlCandidatesInfo() =
// Arguments passed to |webState:didChangeLoadingProgress:|.
std::unique_ptr<web::TestChangeLoadingProgressInfo>
_changeLoadingProgressInfo;
+ // Arguments passed to |webStateDidChangeTitle:|.
+ std::unique_ptr<web::TestTitleWasSetInfo> _titleWasSetInfo;
// Arguments passed to
// |webState:didSubmitDocumentWithFormNamed:userInitiated:|.
std::unique_ptr<web::TestSubmitDocumentInfo> _submitDocumentInfo;
@@ -72,6 +74,10 @@ TestUpdateFaviconUrlCandidatesInfo::~TestUpdateFaviconUrlCandidatesInfo() =
return _changeLoadingProgressInfo.get();
}
+- (web::TestTitleWasSetInfo*)titleWasSetInfo {
+ return _titleWasSetInfo.get();
+}
+
- (web::TestSubmitDocumentInfo*)submitDocumentInfo {
return _submitDocumentInfo.get();
}
@@ -143,6 +149,11 @@ TestUpdateFaviconUrlCandidatesInfo::~TestUpdateFaviconUrlCandidatesInfo() =
_changeLoadingProgressInfo->progress = progress;
}
+- (void)webStateDidChangeTitle:(web::WebState*)webState {
+ _titleWasSetInfo = base::MakeUnique<web::TestTitleWasSetInfo>();
+ _titleWasSetInfo->web_state = webState;
+}
+
- (void)webState:(web::WebState*)webState
didSubmitDocumentWithFormNamed:(const std::string&)formName
userInitiated:(BOOL)userInitiated {
« no previous file with comments | « ios/web/public/test/fakes/crw_test_web_state_observer.h ('k') | ios/web/public/web_state/ui/crw_web_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698