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

Unified Diff: chrome/browser/unload_uitest.cc

Issue 6257006: Move a bunch of random other files to src/ui/base... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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/views/user_data_dir_dialog.cc ('k') | chrome/plugin/plugin_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « chrome/browser/ui/views/user_data_dir_dialog.cc ('k') | chrome/plugin/plugin_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698