| 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 755753f1660e00ca3a68a520de3069f565affb6f..08b7ea849efe478161adf588b439080951427eea 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
|
| @@ -31,6 +31,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;
|
| @@ -78,6 +80,10 @@ TestUpdateFaviconUrlCandidatesInfo::~TestUpdateFaviconUrlCandidatesInfo() =
|
| return _changeLoadingProgressInfo.get();
|
| }
|
|
|
| +- (web::TestTitleWasSetInfo*)titleWasSetInfo {
|
| + return _titleWasSetInfo.get();
|
| +}
|
| +
|
| - (web::TestSubmitDocumentInfo*)submitDocumentInfo {
|
| return _submitDocumentInfo.get();
|
| }
|
| @@ -154,6 +160,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 {
|
|
|