diff options
Diffstat (limited to 'chrome/test/automation/automation_proxy_uitest.cc')
-rw-r--r-- | chrome/test/automation/automation_proxy_uitest.cc | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/chrome/test/automation/automation_proxy_uitest.cc b/chrome/test/automation/automation_proxy_uitest.cc index 464fa81..bd5495a 100644 --- a/chrome/test/automation/automation_proxy_uitest.cc +++ b/chrome/test/automation/automation_proxy_uitest.cc @@ -1005,12 +1005,11 @@ TEST_F(AutomationProxyTest, DISABLED_AppModalDialogTest) { ASSERT_TRUE(tab.get()); bool modal_dialog_showing = false; - views::DialogDelegate::DialogButton button = - views::DialogDelegate::DIALOGBUTTON_NONE; + MessageBox::DialogButton button = MessageBox::DIALOGBUTTON_NONE; EXPECT_TRUE(automation()->GetShowingAppModalDialog(&modal_dialog_showing, &button)); EXPECT_FALSE(modal_dialog_showing); - EXPECT_EQ(views::DialogDelegate::DIALOGBUTTON_NONE, button); + EXPECT_EQ(MessageBox::DIALOGBUTTON_NONE, button); // Show a simple alert. std::string content = @@ -1022,19 +1021,19 @@ TEST_F(AutomationProxyTest, DISABLED_AppModalDialogTest) { EXPECT_TRUE(automation()->GetShowingAppModalDialog(&modal_dialog_showing, &button)); EXPECT_TRUE(modal_dialog_showing); - EXPECT_EQ(views::DialogDelegate::DIALOGBUTTON_OK, button); + EXPECT_EQ(MessageBox::DIALOGBUTTON_OK, button); // Test that clicking missing button fails graciously and does not close the // dialog. EXPECT_FALSE(automation()->ClickAppModalDialogButton( - views::DialogDelegate::DIALOGBUTTON_CANCEL)); + MessageBox::DIALOGBUTTON_CANCEL)); EXPECT_TRUE(automation()->GetShowingAppModalDialog(&modal_dialog_showing, &button)); EXPECT_TRUE(modal_dialog_showing); // Now click OK, that should close the dialog. EXPECT_TRUE(automation()->ClickAppModalDialogButton( - views::DialogDelegate::DIALOGBUTTON_OK)); + MessageBox::DIALOGBUTTON_OK)); EXPECT_TRUE(automation()->GetShowingAppModalDialog(&modal_dialog_showing, &button)); EXPECT_FALSE(modal_dialog_showing); @@ -1049,12 +1048,12 @@ TEST_F(AutomationProxyTest, DISABLED_AppModalDialogTest) { EXPECT_TRUE(automation()->GetShowingAppModalDialog(&modal_dialog_showing, &button)); EXPECT_TRUE(modal_dialog_showing); - EXPECT_EQ(views::DialogDelegate::DIALOGBUTTON_OK | - views::DialogDelegate::DIALOGBUTTON_CANCEL, button); + EXPECT_EQ(MessageBox::DIALOGBUTTON_OK | + MessageBox::DIALOGBUTTON_CANCEL, button); // Click OK. EXPECT_TRUE(automation()->ClickAppModalDialogButton( - views::DialogDelegate::DIALOGBUTTON_OK)); + MessageBox::DIALOGBUTTON_OK)); EXPECT_TRUE(automation()->GetShowingAppModalDialog(&modal_dialog_showing, &button)); EXPECT_FALSE(modal_dialog_showing); @@ -1069,12 +1068,12 @@ TEST_F(AutomationProxyTest, DISABLED_AppModalDialogTest) { EXPECT_TRUE(automation()->GetShowingAppModalDialog(&modal_dialog_showing, &button)); EXPECT_TRUE(modal_dialog_showing); - EXPECT_EQ(views::DialogDelegate::DIALOGBUTTON_OK | - views::DialogDelegate::DIALOGBUTTON_CANCEL, button); + EXPECT_EQ(MessageBox::DIALOGBUTTON_OK | + MessageBox::DIALOGBUTTON_CANCEL, button); // Click Cancel this time. EXPECT_TRUE(automation()->ClickAppModalDialogButton( - views::DialogDelegate::DIALOGBUTTON_CANCEL)); + MessageBox::DIALOGBUTTON_CANCEL)); EXPECT_TRUE(automation()->GetShowingAppModalDialog(&modal_dialog_showing, &button)); EXPECT_FALSE(modal_dialog_showing); |