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

Unified Diff: chrome/browser/chromeos/accessibility/magnification_manager_browsertest.cc

Issue 11415025: A11y: Introduce High Contrast Mode and Screen Magnifier to ubar tray. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase @170134 Created 8 years, 1 month 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_browsertest.cc
diff --git a/chrome/browser/chromeos/accessibility/magnification_manager_browsertest.cc b/chrome/browser/chromeos/accessibility/magnification_manager_browsertest.cc
index 5f29f2f561631ce707e8241eb4c6c9e1b67572e1..bc619fc9733fb7bf99dfdfc7b15646343203d4b9 100644
--- a/chrome/browser/chromeos/accessibility/magnification_manager_browsertest.cc
+++ b/chrome/browser/chromeos/accessibility/magnification_manager_browsertest.cc
@@ -43,14 +43,14 @@ class MagnificationManagerTest : public CrosInProcessBrowserTest {
return PrefServiceBase::FromBrowserContext(profile());
}
- void SetScreenManagnifierTypeToPref(accessibility::ScreenMagnifierType type) {
- prefs()->SetString(prefs::kScreenMagnifierType,
- ScreenMagnifierNameFromType(type));
+ void SetScreenManagnifierTypeToPref(ash::MagnifierType type) {
+ prefs()->SetString(prefs::kMagnifierType,
+ accessibility::ScreenMagnifierNameFromType(type));
}
- void CheckCurrentScreenMagnifierType(
- accessibility::ScreenMagnifierType type) {
- EXPECT_EQ(MagnificationManager::GetInstance()->GetScreenMagnifierType(),
+ void CheckCurrentMagnifierType(
+ ash::MagnifierType type) {
+ EXPECT_EQ(MagnificationManager::GetInstance()->GetMagnifierType(),
type);
}
@@ -59,20 +59,20 @@ class MagnificationManagerTest : public CrosInProcessBrowserTest {
IN_PROC_BROWSER_TEST_F(MagnificationManagerTest, Login) {
// Confirms that magnifier is enabled on the login screen.
- CheckCurrentScreenMagnifierType(accessibility::MAGNIFIER_FULL);
+ CheckCurrentMagnifierType(ash::MAGNIFIER_FULL);
// Logs in.
UserManager::Get()->UserLoggedIn("owner@invalid.domain", true);
UserManager::Get()->SessionStarted();
// Confirms that magnifier is disabled just after login.
- CheckCurrentScreenMagnifierType(accessibility::MAGNIFIER_OFF);
+ CheckCurrentMagnifierType(ash::MAGNIFIER_OFF);
// Enables magnifier.
- SetScreenManagnifierTypeToPref(accessibility::MAGNIFIER_FULL);
+ SetScreenManagnifierTypeToPref(ash::MAGNIFIER_FULL);
// Confirms that magnifier is enabled.
- CheckCurrentScreenMagnifierType(accessibility::MAGNIFIER_FULL);
+ CheckCurrentMagnifierType(ash::MAGNIFIER_FULL);
}
IN_PROC_BROWSER_TEST_F(MagnificationManagerTest, WorkingWithPref) {
@@ -81,25 +81,25 @@ IN_PROC_BROWSER_TEST_F(MagnificationManagerTest, WorkingWithPref) {
UserManager::Get()->SessionStarted();
// Confirms that magnifier is disabled just after login.
- CheckCurrentScreenMagnifierType(accessibility::MAGNIFIER_OFF);
+ CheckCurrentMagnifierType(ash::MAGNIFIER_OFF);
// Sets the pref as true to enable magnifier.
- SetScreenManagnifierTypeToPref(accessibility::MAGNIFIER_FULL);
+ SetScreenManagnifierTypeToPref(ash::MAGNIFIER_FULL);
// Confirms that magnifier is enabled.
- CheckCurrentScreenMagnifierType(accessibility::MAGNIFIER_FULL);
+ CheckCurrentMagnifierType(ash::MAGNIFIER_FULL);
// Sets the pref as false to disabled magnifier.
- SetScreenManagnifierTypeToPref(accessibility::MAGNIFIER_OFF);
+ SetScreenManagnifierTypeToPref(ash::MAGNIFIER_OFF);
// Confirms that magnifier is disabled.
- CheckCurrentScreenMagnifierType(accessibility::MAGNIFIER_OFF);
+ CheckCurrentMagnifierType(ash::MAGNIFIER_OFF);
// Sets the pref as true to enable magnifier again.
- SetScreenManagnifierTypeToPref(accessibility::MAGNIFIER_FULL);
+ SetScreenManagnifierTypeToPref(ash::MAGNIFIER_FULL);
// Confirms that magnifier is enabled.
- CheckCurrentScreenMagnifierType(accessibility::MAGNIFIER_FULL);
+ CheckCurrentMagnifierType(ash::MAGNIFIER_FULL);
}
IN_PROC_BROWSER_TEST_F(MagnificationManagerTest, ResumeSavedPref) {
@@ -107,13 +107,13 @@ IN_PROC_BROWSER_TEST_F(MagnificationManagerTest, ResumeSavedPref) {
UserManager::Get()->UserLoggedIn("owner@invalid.domain", true);
// Sets the pref as true to enable magnifier before login.
- SetScreenManagnifierTypeToPref(accessibility::MAGNIFIER_FULL);
+ SetScreenManagnifierTypeToPref(ash::MAGNIFIER_FULL);
// Logs in.
UserManager::Get()->SessionStarted();
// Confirms that magnifier is enabled just after login.
- CheckCurrentScreenMagnifierType(accessibility::MAGNIFIER_FULL);
+ CheckCurrentMagnifierType(ash::MAGNIFIER_FULL);
}
} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/accessibility/magnification_manager.cc ('k') | chrome/browser/chromeos/preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698