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

Unified Diff: chrome/browser/chromeos/policy/recommendation_restorer_unittest.cc

Issue 682943002: Make chrome/browser/chromeos/accessibility compile on Athena with use_ash=0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@athena_do_not_use_ash41_scroll_end_effect
Patch Set: Created 6 years, 2 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/policy/recommendation_restorer_unittest.cc
diff --git a/chrome/browser/chromeos/policy/recommendation_restorer_unittest.cc b/chrome/browser/chromeos/policy/recommendation_restorer_unittest.cc
index 98759512591b3980cae0a018de4f7bb878a8004e..c33f64550b030cccd2e4201b581c91fd0480d61e 100644
--- a/chrome/browser/chromeos/policy/recommendation_restorer_unittest.cc
+++ b/chrome/browser/chromeos/policy/recommendation_restorer_unittest.cc
@@ -4,7 +4,6 @@
#include "chrome/browser/chromeos/policy/recommendation_restorer.h"
-#include "ash/magnifier/magnifier_constants.h"
#include "base/memory/scoped_ptr.h"
#include "base/prefs/pref_notifier_impl.h"
#include "base/prefs/testing_pref_store.h"
@@ -28,6 +27,7 @@
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_source.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "ui/chromeos/accessibility_types.h"
namespace policy {
@@ -129,7 +129,7 @@ void RecommendationRestorerTest::SetUserSettings() {
prefs_->SetBoolean(prefs::kAccessibilityHighContrastEnabled, true);
prefs_->SetBoolean(prefs::kAccessibilityScreenMagnifierEnabled, true);
prefs_->SetInteger(prefs::kAccessibilityScreenMagnifierType,
- ash::MAGNIFIER_FULL);
+ ui::MAGNIFIER_FULL);
prefs_->SetBoolean(prefs::kAccessibilityVirtualKeyboardEnabled, true);
}
@@ -186,7 +186,7 @@ void RecommendationRestorerTest::VerifyPrefsFollowUser() const {
VerifyPrefFollowsUser(prefs::kAccessibilityScreenMagnifierEnabled,
base::FundamentalValue(true));
VerifyPrefFollowsUser(prefs::kAccessibilityScreenMagnifierType,
- base::FundamentalValue(ash::MAGNIFIER_FULL));
+ base::FundamentalValue(ui::MAGNIFIER_FULL));
VerifyPrefFollowsUser(prefs::kAccessibilityVirtualKeyboardEnabled,
base::FundamentalValue(true));
}
@@ -323,7 +323,7 @@ TEST_F(RecommendationRestorerTest, RestoreOnRecommendationChangeOnLoginScreen) {
VerifyPrefFollowsUser(prefs::kAccessibilityScreenMagnifierEnabled,
base::FundamentalValue(true));
VerifyPrefFollowsUser(prefs::kAccessibilityScreenMagnifierType,
- base::FundamentalValue(ash::MAGNIFIER_FULL));
+ base::FundamentalValue(ui::MAGNIFIER_FULL));
VerifyTimerIsRunning();
runner_->RunUntilIdle();
VerifyPrefFollowsRecommendation(prefs::kAccessibilityScreenMagnifierEnabled,
@@ -378,7 +378,7 @@ TEST_F(RecommendationRestorerTest, RestoreOnRecommendationChangeInUserSession) {
VerifyPrefFollowsUser(prefs::kAccessibilityScreenMagnifierEnabled,
base::FundamentalValue(true));
VerifyPrefFollowsUser(prefs::kAccessibilityScreenMagnifierType,
- base::FundamentalValue(ash::MAGNIFIER_FULL));
+ base::FundamentalValue(ui::MAGNIFIER_FULL));
recommended_prefs_->SetBoolean(prefs::kAccessibilityScreenMagnifierEnabled,
false);
recommended_prefs_->SetInteger(prefs::kAccessibilityScreenMagnifierType, 0);
@@ -426,11 +426,11 @@ TEST_F(RecommendationRestorerTest, DoNothingOnUserChange) {
prefs_->SetBoolean(prefs::kAccessibilityScreenMagnifierEnabled, true);
prefs_->SetInteger(prefs::kAccessibilityScreenMagnifierType,
- ash::MAGNIFIER_FULL);
+ ui::MAGNIFIER_FULL);
VerifyPrefFollowsUser(prefs::kAccessibilityScreenMagnifierEnabled,
base::FundamentalValue(true));
VerifyPrefFollowsUser(prefs::kAccessibilityScreenMagnifierType,
- base::FundamentalValue(ash::MAGNIFIER_FULL));
+ base::FundamentalValue(ui::MAGNIFIER_FULL));
VerifyTimerIsStopped();
prefs_->SetBoolean(prefs::kAccessibilityVirtualKeyboardEnabled, true);
@@ -478,11 +478,11 @@ TEST_F(RecommendationRestorerTest, RestoreOnUserChange) {
VerifyTimerIsStopped();
prefs_->SetBoolean(prefs::kAccessibilityScreenMagnifierEnabled, true);
prefs_->SetInteger(prefs::kAccessibilityScreenMagnifierType,
- ash::MAGNIFIER_FULL);
+ ui::MAGNIFIER_FULL);
VerifyPrefFollowsUser(prefs::kAccessibilityScreenMagnifierEnabled,
base::FundamentalValue(true));
VerifyPrefFollowsUser(prefs::kAccessibilityScreenMagnifierType,
- base::FundamentalValue(ash::MAGNIFIER_FULL));
+ base::FundamentalValue(ui::MAGNIFIER_FULL));
VerifyTimerIsRunning();
runner_->RunUntilIdle();
VerifyPrefFollowsRecommendation(prefs::kAccessibilityScreenMagnifierEnabled,
« no previous file with comments | « chrome/browser/chromeos/policy/login_screen_default_policy_browsertest.cc ('k') | chrome/browser/chromeos/preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698