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

Unified Diff: ash/wm/overview/window_selector_unittest.cc

Issue 2101263004: mash: Migrate AccessibilityDelegate access to WmShell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 6 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
Index: ash/wm/overview/window_selector_unittest.cc
diff --git a/ash/wm/overview/window_selector_unittest.cc b/ash/wm/overview/window_selector_unittest.cc
index e0bc70bfbd96b5a6c5b33fb5024904e156ed4f2c..e451f82488a92d8b636039f6f97a0ef41242c852 100644
--- a/ash/wm/overview/window_selector_unittest.cc
+++ b/ash/wm/overview/window_selector_unittest.cc
@@ -140,7 +140,7 @@ class WindowSelectorTest
aura::Window* window = CreateWindow(bounds);
aura::client::SetActivationDelegate(window,
&non_activatable_activation_delegate_);
- EXPECT_FALSE(ash::wm::CanActivateWindow(window));
+ EXPECT_FALSE(wm::CanActivateWindow(window));
return window;
}
@@ -290,11 +290,11 @@ class WindowSelectorTest
.IsIdentity();
}
- views::Widget* GetCloseButton(ash::WindowSelectorItem* window) {
+ views::Widget* GetCloseButton(WindowSelectorItem* window) {
return window->close_button_->GetWidget();
}
- views::LabelButton* GetLabelButtonView(ash::WindowSelectorItem* window) {
+ views::LabelButton* GetLabelButtonView(WindowSelectorItem* window) {
return window->window_label_button_view_;
}
@@ -391,8 +391,7 @@ TEST_P(WindowSelectorTest, OverviewScreenRotation) {
// Tests that an a11y alert is sent on entering overview mode.
TEST_P(WindowSelectorTest, A11yAlertOnOverviewMode) {
gfx::Rect bounds(0, 0, 400, 400);
- AccessibilityDelegate* delegate =
- ash::Shell::GetInstance()->accessibility_delegate();
+ AccessibilityDelegate* delegate = WmShell::Get()->GetAccessibilityDelegate();
std::unique_ptr<aura::Window> window1(CreateWindow(bounds));
EXPECT_NE(delegate->GetLastAccessibilityAlert(),
A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED);
@@ -930,8 +929,7 @@ TEST_P(WindowSelectorTest, OverviewUndimsShelf) {
std::unique_ptr<aura::Window> window1(CreateWindow(bounds));
wm::WindowState* window_state = wm::GetWindowState(window1.get());
window_state->Maximize();
- ash::ShelfWidget* shelf =
- Shell::GetPrimaryRootWindowController()->shelf_widget();
+ ShelfWidget* shelf = Shell::GetPrimaryRootWindowController()->shelf_widget();
EXPECT_TRUE(shelf->GetDimsShelf());
ToggleOverview();
EXPECT_FALSE(shelf->GetDimsShelf());
@@ -1275,7 +1273,7 @@ TEST_P(WindowSelectorTest, DISABLED_DragDropInProgress) {
gfx::Rect bounds(0, 0, 400, 400);
std::unique_ptr<aura::Window> window(CreateWindow(bounds));
test::ShellTestApi shell_test_api(Shell::GetInstance());
- ash::DragDropController* drag_drop_controller =
+ DragDropController* drag_drop_controller =
shell_test_api.drag_drop_controller();
ui::OSExchangeData data;
base::ThreadTaskRunnerHandle::Get()->PostTask(
« no previous file with comments | « ash/wm/lock_state_controller.cc ('k') | chrome/browser/chromeos/accessibility/touch_exploration_controller_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698