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

Unified Diff: chrome/browser/translate/translate_manager_browsertest.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/translate/translate_manager.cc ('k') | chrome/browser/ui/android/infobar_stubs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/translate/translate_manager_browsertest.cc
diff --git a/chrome/browser/translate/translate_manager_browsertest.cc b/chrome/browser/translate/translate_manager_browsertest.cc
index ce7225231b3d4549a7ace772be2d0c85f69b9794..d1ede69531bc1f5ea129bd5abaae7d5936405f1c 100644
--- a/chrome/browser/translate/translate_manager_browsertest.cc
+++ b/chrome/browser/translate/translate_manager_browsertest.cc
@@ -107,7 +107,7 @@ class TranslateManagerTest : public TabContentsTestHarness,
// Returns the translate infobar if there is 1 infobar and it is a translate
// infobar.
TranslateInfoBarDelegate* GetTranslateInfoBar() {
- return (infobar_tab_helper()->infobar_count() == 1) ?
+ return (infobar_tab_helper()->GetInfoBarCount() == 1) ?
infobar_tab_helper()->GetInfoBarDelegateAt(0)->
AsTranslateInfoBarDelegate() : NULL;
}
@@ -731,18 +731,18 @@ TEST_F(TranslateManagerTest, MultipleOnPageContents) {
// Simulate clicking 'Nope' (don't translate).
EXPECT_TRUE(DenyTranslation());
- EXPECT_EQ(0U, infobar_tab_helper()->infobar_count());
+ EXPECT_EQ(0U, infobar_tab_helper()->GetInfoBarCount());
// Send a new PageContents, we should not show an infobar.
SimulateOnTranslateLanguageDetermined("fr", true);
- EXPECT_EQ(0U, infobar_tab_helper()->infobar_count());
+ EXPECT_EQ(0U, infobar_tab_helper()->GetInfoBarCount());
// Do the same steps but simulate closing the infobar this time.
SimulateNavigation(GURL("http://www.youtube.fr"), "fr", true);
EXPECT_TRUE(CloseTranslateInfoBar());
- EXPECT_EQ(0U, infobar_tab_helper()->infobar_count());
+ EXPECT_EQ(0U, infobar_tab_helper()->GetInfoBarCount());
SimulateOnTranslateLanguageDetermined("fr", true);
- EXPECT_EQ(0U, infobar_tab_helper()->infobar_count());
+ EXPECT_EQ(0U, infobar_tab_helper()->GetInfoBarCount());
}
// Test that reloading the page brings back the infobar.
« no previous file with comments | « chrome/browser/translate/translate_manager.cc ('k') | chrome/browser/ui/android/infobar_stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698