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

Unified Diff: chrome/browser/ui/website_settings/website_settings_unittest.cc

Issue 10830353: Introduce InfoBarTabService API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments, merge to LKGR Created 8 years, 4 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 | « chrome/browser/ui/website_settings/website_settings_infobar_delegate.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/website_settings/website_settings_unittest.cc
diff --git a/chrome/browser/ui/website_settings/website_settings_unittest.cc b/chrome/browser/ui/website_settings/website_settings_unittest.cc
index d8cedc0fb1816f5a3b1672ba2321064f522d2293..ae9f6bdcb22a033586e7906a4e958be492ca5094 100644
--- a/chrome/browser/ui/website_settings/website_settings_unittest.cc
+++ b/chrome/browser/ui/website_settings/website_settings_unittest.cc
@@ -329,18 +329,18 @@ TEST_F(WebsiteSettingsTest, HTTPSConnectionError) {
TEST_F(WebsiteSettingsTest, NoInfoBar) {
SetDefaultUIExpectations(mock_ui());
- EXPECT_EQ(0u, infobar_tab_helper()->infobar_count());
+ EXPECT_EQ(0u, infobar_tab_helper()->GetInfoBarCount());
website_settings()->OnUIClosing();
- EXPECT_EQ(0u, infobar_tab_helper()->infobar_count());
+ EXPECT_EQ(0u, infobar_tab_helper()->GetInfoBarCount());
}
TEST_F(WebsiteSettingsTest, ShowInfoBar) {
SetDefaultUIExpectations(mock_ui());
- EXPECT_EQ(0u, infobar_tab_helper()->infobar_count());
+ EXPECT_EQ(0u, infobar_tab_helper()->GetInfoBarCount());
website_settings()->OnSitePermissionChanged(
CONTENT_SETTINGS_TYPE_GEOLOCATION, CONTENT_SETTING_ALLOW);
website_settings()->OnUIClosing();
- EXPECT_EQ(1u, infobar_tab_helper()->infobar_count());
+ EXPECT_EQ(1u, infobar_tab_helper()->GetInfoBarCount());
// Removing an |InfoBarDelegate| from the |InfoBarTabHelper| does not delete
// it. Hence the |delegate| must be cleaned up after it was removed from the
« no previous file with comments | « chrome/browser/ui/website_settings/website_settings_infobar_delegate.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698