| Index: chrome/browser/unload_uitest.cc
|
| ===================================================================
|
| --- chrome/browser/unload_uitest.cc (revision 71854)
|
| +++ chrome/browser/unload_uitest.cc (working copy)
|
| @@ -2,7 +2,6 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "app/message_box_flags.h"
|
| #include "base/file_util.h"
|
| #include "chrome/browser/net/url_request_mock_http_job.h"
|
| #include "chrome/browser/ui/view_ids.h"
|
| @@ -12,6 +11,7 @@
|
| #include "chrome/test/automation/window_proxy.h"
|
| #include "chrome/test/ui/ui_test.h"
|
| #include "net/url_request/url_request_unittest.h"
|
| +#include "ui/base/message_box_flags.h"
|
| #include "views/event.h"
|
|
|
| const std::string NOLISTENERS_HTML =
|
| @@ -164,9 +164,9 @@
|
| EXPECT_TRUE(CloseBrowser(browser.get(), &application_closed));
|
| }
|
|
|
| - void ClickModalDialogButton(MessageBoxFlags::DialogButton button) {
|
| + void ClickModalDialogButton(ui::MessageBoxFlags::DialogButton button) {
|
| bool modal_dialog_showing = false;
|
| - MessageBoxFlags::DialogButton available_buttons;
|
| + ui::MessageBoxFlags::DialogButton available_buttons;
|
| EXPECT_TRUE(automation()->WaitForAppModalDialog());
|
| EXPECT_TRUE(automation()->GetShowingAppModalDialog(&modal_dialog_showing,
|
| &available_buttons));
|
| @@ -299,7 +299,7 @@
|
| NavigateToDataURL(BEFORE_UNLOAD_HTML, L"beforeunload");
|
|
|
| CloseBrowserAsync(browser.get());
|
| - ClickModalDialogButton(MessageBoxFlags::DIALOGBUTTON_OK);
|
| + ClickModalDialogButton(ui::MessageBoxFlags::DIALOGBUTTON_OK);
|
| WaitForBrowserClosed();
|
| }
|
|
|
| @@ -311,14 +311,14 @@
|
| NavigateToDataURL(BEFORE_UNLOAD_HTML, L"beforeunload");
|
|
|
| CloseBrowserAsync(browser.get());
|
| - ClickModalDialogButton(MessageBoxFlags::DIALOGBUTTON_CANCEL);
|
| + ClickModalDialogButton(ui::MessageBoxFlags::DIALOGBUTTON_CANCEL);
|
| // There's no real graceful way to wait for something _not_ to happen, so
|
| // we just wait a short period.
|
| CrashAwareSleep(500);
|
| ASSERT_TRUE(IsBrowserRunning());
|
|
|
| CloseBrowserAsync(browser.get());
|
| - ClickModalDialogButton(MessageBoxFlags::DIALOGBUTTON_OK);
|
| + ClickModalDialogButton(ui::MessageBoxFlags::DIALOGBUTTON_OK);
|
| WaitForBrowserClosed();
|
| }
|
|
|
| @@ -340,7 +340,7 @@
|
| NavigateToDataURL(INNER_FRAME_WITH_FOCUS_HTML, L"innerframewithfocus");
|
|
|
| CloseBrowserAsync(browser.get());
|
| - ClickModalDialogButton(MessageBoxFlags::DIALOGBUTTON_OK);
|
| + ClickModalDialogButton(ui::MessageBoxFlags::DIALOGBUTTON_OK);
|
| WaitForBrowserClosed();
|
| }
|
|
|
|
|