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 2710913006: Removed -[CRWWebDelegate webController:titleDidChange:]. (Closed)
Patch Set: iOS9 fix 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/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 1136415493f190801421ef8b94cb97e5c989ca29..7594a6980f7c480f4e7db71e21a50908c2c4ace6 100644
--- a/ios/chrome/browser/tabs/tab_unittest.mm
+++ b/ios/chrome/browser/tabs/tab_unittest.mm
@@ -54,7 +54,6 @@
using web::WebStateImpl;
static const char kNewTabUrl[] = "chrome://newtab/";
-static NSString* const kNewTabTitle = @"New Tab";
static const char kGoogleUserUrl[] = "http://google.com";
static const char kGoogleRedirectUrl[] = "http://www.google.fr/";
static NSString* const kGoogleTitle = @"Google";
@@ -247,7 +246,7 @@ class TabTest : public BlockCleanupTest {
base::string16 new_title = base::SysNSStringToUTF16(title);
[tab_ navigationManager]->GetLastCommittedItem()->SetTitle(new_title);
- [tab_ webController:mock_web_controller_ titleDidChange:title];
+ web_state_impl_->OnTitleChanged();
[[[(id)mock_web_controller_ expect]
andReturnValue:OCMOCK_VALUE(kPageLoaded)] loadPhase];
web_state_impl_->OnPageLoaded(redirectUrl, true);
@@ -267,7 +266,7 @@ class TabTest : public BlockCleanupTest {
[[[(id)mock_web_controller_ expect]
andReturnValue:OCMOCK_VALUE(kPageLoaded)] loadPhase];
web_state_impl_->OnPageLoaded(url, true);
- [tab_ webController:mock_web_controller_ titleDidChange:kNewTabTitle];
+ web_state_impl_->OnTitleChanged();
}
void QueryAllHistory(history::QueryResults* results) {

Powered by Google App Engine
This is Rietveld 408576698