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

Unified Diff: ash/accelerators/accelerator_controller_unittest.cc

Issue 2078393005: mash: Move accessibility_types.h from ui namespace to ash namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a11y
Patch Set: fix chromevox code generated from js 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
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | ash/accelerators/spoken_feedback_toggler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_controller_unittest.cc
diff --git a/ash/accelerators/accelerator_controller_unittest.cc b/ash/accelerators/accelerator_controller_unittest.cc
index 2ed4eb51efc709fa13ca94484a4bdad15354da5b..c104961eb57bc9cb0efd74aab8ce0c4a4b85c309 100644
--- a/ash/accelerators/accelerator_controller_unittest.cc
+++ b/ash/accelerators/accelerator_controller_unittest.cc
@@ -7,6 +7,7 @@
#include "ash/accelerators/accelerator_table.h"
#include "ash/aura/wm_window_aura.h"
#include "ash/common/accessibility_delegate.h"
+#include "ash/common/accessibility_types.h"
#include "ash/common/ash_switches.h"
#include "ash/common/shell_window_ids.h"
#include "ash/common/system/tray/system_tray_delegate.h"
@@ -996,13 +997,13 @@ TEST_F(AcceleratorControllerTest, GlobalAcceleratorsToggleAppList) {
GetPreviousAccelerator().key_code());
// When spoken feedback is on, the AppList should not toggle.
- delegate->ToggleSpokenFeedback(ui::A11Y_NOTIFICATION_NONE);
+ delegate->ToggleSpokenFeedback(A11Y_NOTIFICATION_NONE);
EXPECT_FALSE(
ProcessInController(ui::Accelerator(ui::VKEY_LWIN, ui::EF_NONE)));
EXPECT_FALSE(
ProcessInController(ReleaseAccelerator(
ui::VKEY_LWIN, ui::EF_NONE)));
- delegate->ToggleSpokenFeedback(ui::A11Y_NOTIFICATION_NONE);
+ delegate->ToggleSpokenFeedback(A11Y_NOTIFICATION_NONE);
EXPECT_TRUE(ash::Shell::GetInstance()->GetAppListTargetVisibility());
EXPECT_FALSE(
@@ -1013,13 +1014,13 @@ TEST_F(AcceleratorControllerTest, GlobalAcceleratorsToggleAppList) {
EXPECT_FALSE(ash::Shell::GetInstance()->GetAppListTargetVisibility());
// When spoken feedback is on, the AppList should not toggle.
- delegate->ToggleSpokenFeedback(ui::A11Y_NOTIFICATION_NONE);
+ delegate->ToggleSpokenFeedback(A11Y_NOTIFICATION_NONE);
EXPECT_FALSE(
ProcessInController(ui::Accelerator(ui::VKEY_LWIN, ui::EF_NONE)));
EXPECT_FALSE(
ProcessInController(ReleaseAccelerator(
ui::VKEY_LWIN, ui::EF_NONE)));
- delegate->ToggleSpokenFeedback(ui::A11Y_NOTIFICATION_NONE);
+ delegate->ToggleSpokenFeedback(A11Y_NOTIFICATION_NONE);
EXPECT_FALSE(ash::Shell::GetInstance()->GetAppListTargetVisibility());
#if defined(OS_CHROMEOS)
@@ -1320,11 +1321,10 @@ TEST_F(AcceleratorControllerTest, DisallowedWithNoWindow) {
ash::Shell::GetInstance()->accessibility_delegate();
for (size_t i = 0; i < kActionsNeedingWindowLength; ++i) {
- delegate->TriggerAccessibilityAlert(ui::A11Y_ALERT_NONE);
+ delegate->TriggerAccessibilityAlert(A11Y_ALERT_NONE);
EXPECT_TRUE(
GetController()->PerformActionIfEnabled(kActionsNeedingWindow[i]));
- EXPECT_EQ(delegate->GetLastAccessibilityAlert(),
- ui::A11Y_ALERT_WINDOW_NEEDED);
+ EXPECT_EQ(delegate->GetLastAccessibilityAlert(), A11Y_ALERT_WINDOW_NEEDED);
}
// Make sure we don't alert if we do have a window.
@@ -1332,10 +1332,9 @@ TEST_F(AcceleratorControllerTest, DisallowedWithNoWindow) {
for (size_t i = 0; i < kActionsNeedingWindowLength; ++i) {
window.reset(CreateTestWindowInShellWithBounds(gfx::Rect(5, 5, 20, 20)));
wm::ActivateWindow(window.get());
- delegate->TriggerAccessibilityAlert(ui::A11Y_ALERT_NONE);
+ delegate->TriggerAccessibilityAlert(A11Y_ALERT_NONE);
GetController()->PerformActionIfEnabled(kActionsNeedingWindow[i]);
- EXPECT_NE(delegate->GetLastAccessibilityAlert(),
- ui::A11Y_ALERT_WINDOW_NEEDED);
+ EXPECT_NE(delegate->GetLastAccessibilityAlert(), A11Y_ALERT_WINDOW_NEEDED);
}
// Don't alert if we have a minimized window either.
@@ -1343,10 +1342,9 @@ TEST_F(AcceleratorControllerTest, DisallowedWithNoWindow) {
window.reset(CreateTestWindowInShellWithBounds(gfx::Rect(5, 5, 20, 20)));
wm::ActivateWindow(window.get());
GetController()->PerformActionIfEnabled(WINDOW_MINIMIZE);
- delegate->TriggerAccessibilityAlert(ui::A11Y_ALERT_NONE);
+ delegate->TriggerAccessibilityAlert(A11Y_ALERT_NONE);
GetController()->PerformActionIfEnabled(kActionsNeedingWindow[i]);
- EXPECT_NE(delegate->GetLastAccessibilityAlert(),
- ui::A11Y_ALERT_WINDOW_NEEDED);
+ EXPECT_NE(delegate->GetLastAccessibilityAlert(), A11Y_ALERT_WINDOW_NEEDED);
}
}
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | ash/accelerators/spoken_feedback_toggler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698