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 { |