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

Unified Diff: chrome/browser/chromeos/accessibility/magnification_manager_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
Index: chrome/browser/chromeos/accessibility/magnification_manager_unittest.cc
diff --git a/chrome/browser/chromeos/accessibility/magnification_manager_unittest.cc b/chrome/browser/chromeos/accessibility/magnification_manager_unittest.cc
index 84b049a66adb91088f77c411ab630a73f46a8ec3..d2e5bf4b25e0231244e4cf254e988cbb0f64e4ac 100644
--- a/chrome/browser/chromeos/accessibility/magnification_manager_unittest.cc
+++ b/chrome/browser/chromeos/accessibility/magnification_manager_unittest.cc
@@ -25,11 +25,11 @@ bool IsMagnifierEnabled() {
return MagnificationManager::Get()->IsMagnifierEnabled();
}
-ui::MagnifierType GetMagnifierType() {
+ash::MagnifierType GetMagnifierType() {
return MagnificationManager::Get()->GetMagnifierType();
}
-void SetMagnifierType(ui::MagnifierType type) {
+void SetMagnifierType(ash::MagnifierType type) {
return MagnificationManager::Get()->SetMagnifierType(type);
}
@@ -58,19 +58,19 @@ class MagnificationManagerTest : public ash::test::AshTestBase {
TEST_F(MagnificationManagerTest, ChangeType) {
// Set full screen magnifier, and confirm the status is set successfully.
EnableMagnifier();
- SetMagnifierType(ui::MAGNIFIER_FULL);
+ SetMagnifierType(ash::MAGNIFIER_FULL);
EXPECT_TRUE(IsMagnifierEnabled());
- EXPECT_EQ(GetMagnifierType(), ui::MAGNIFIER_FULL);
+ EXPECT_EQ(GetMagnifierType(), ash::MAGNIFIER_FULL);
// Set partial screen magnifier, and confirm the change is ignored.
- SetMagnifierType(ui::MAGNIFIER_PARTIAL);
+ SetMagnifierType(ash::MAGNIFIER_PARTIAL);
EXPECT_TRUE(IsMagnifierEnabled());
- EXPECT_EQ(GetMagnifierType(), ui::MAGNIFIER_FULL);
+ EXPECT_EQ(GetMagnifierType(), ash::MAGNIFIER_FULL);
// Disables magnifier, and confirm the status is set successfully.
DisableMagnifier();
EXPECT_FALSE(IsMagnifierEnabled());
- EXPECT_EQ(GetMagnifierType(), ui::MAGNIFIER_FULL);
+ EXPECT_EQ(GetMagnifierType(), ash::MAGNIFIER_FULL);
}
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698