summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/translate_infobar_unittest.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cocoa/translate_infobar_unittest.mm')
-rw-r--r--chrome/browser/cocoa/translate_infobar_unittest.mm7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/cocoa/translate_infobar_unittest.mm b/chrome/browser/cocoa/translate_infobar_unittest.mm
index f871139..e2188d1 100644
--- a/chrome/browser/cocoa/translate_infobar_unittest.mm
+++ b/chrome/browser/cocoa/translate_infobar_unittest.mm
@@ -26,7 +26,7 @@ class MockTranslateInfoBarDelegate : public TranslateInfoBarDelegate {
public:
MockTranslateInfoBarDelegate() {
// Start out in the "Before Translate" state.
- UpdateState(kBeforeTranslate);
+ UpdateState(kBeforeTranslate, TranslateErrors::NONE);
}
virtual string16 GetDisplayNameForLocale(const std::string& language_code) {
@@ -71,7 +71,7 @@ class TranslationBarInfoTest : public CocoaTest {
}
void CreateInfoBar(TranslateInfoBarDelegate::TranslateState initial_state) {
- infobar_delegate->UpdateState(initial_state);
+ infobar_delegate->UpdateState(initial_state, TranslateErrors::NONE);
[[infobar_controller view] removeFromSuperview];
infobar_controller.reset(
[[TranslateInfoBarController alloc]
@@ -104,7 +104,8 @@ TEST_F(TranslationBarInfoTest, StateTransitions) {
CreateInfoBar();
for (size_t i = 0; i < arraysize(kTranslateToolbarStates); ++i) {
- infobar_delegate->UpdateState(kTranslateToolbarStates[i]);
+ infobar_delegate->UpdateState(kTranslateToolbarStates[i],
+ TranslateErrors::NONE);
// First time around, the toolbar should already be layed out.
if (i != 0)