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

Unified Diff: ios/chrome/browser/tabs/tab_unittest.mm

Issue 2685803002: Fixed title updating for back forward navigation. (Closed)
Patch Set: Stubbed title call 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
« no previous file with comments | « ios/chrome/browser/tabs/tab.mm ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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];
« no previous file with comments | « ios/chrome/browser/tabs/tab.mm ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698