Index: ios/chrome/browser/tabs/tab_unittest.mm |
diff --git a/ios/chrome/browser/tabs/tab_unittest.mm b/ios/chrome/browser/tabs/tab_unittest.mm |
index f3924d59a5dc12aa195ddae2d07f65ee4680eee8..d32b83386e264e7201b416d2f00e68f59a70ae00 100644 |
--- a/ios/chrome/browser/tabs/tab_unittest.mm |
+++ b/ios/chrome/browser/tabs/tab_unittest.mm |
@@ -246,6 +246,8 @@ class TabTest : public BlockCleanupTest { |
[[tab_ navigationManager]->GetSessionController() commitPendingItem]; |
[[tab_ webController] webStateImpl]->OnNavigationCommitted(redirectUrl); |
[tab_ webDidStartLoadingURL:redirectUrl shouldUpdateHistory:YES]; |
+ base::string16 new_title = base::SysNSStringToUTF16(title); |
+ [tab_ navigationManager]->GetLastCommittedItem()->SetTitle(new_title); |
[tab_ webController:mock_web_controller_ titleDidChange:title]; |
[[[(id)mock_web_controller_ expect] |
andReturnValue:OCMOCK_VALUE(kPageLoaded)] loadPhase]; |