| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/magnifier/magnification_controller.h" | 5 #include "ash/magnifier/magnification_controller.h" |
| 6 #include "ash/shell.h" | 6 #include "ash/shell.h" |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" | 10 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" |
| 11 #include "chrome/browser/chromeos/accessibility/magnification_manager.h" | 11 #include "chrome/browser/chromeos/accessibility/magnification_manager.h" |
| 12 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h" | 12 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h" |
| 13 #include "chrome/browser/chromeos/login/helper.h" | 13 #include "chrome/browser/chromeos/login/helper.h" |
| 14 #include "chrome/browser/chromeos/login/login_utils.h" | 14 #include "chrome/browser/chromeos/login/login_utils.h" |
| 15 #include "chrome/browser/chromeos/login/user_manager.h" | 15 #include "chrome/browser/chromeos/login/user_manager.h" |
| 16 #include "chrome/browser/chromeos/login/user_manager_impl.h" | 16 #include "chrome/browser/chromeos/login/user_manager_impl.h" |
| 17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 18 #include "chrome/browser/profiles/profile_manager.h" | 18 #include "chrome/browser/profiles/profile_manager.h" |
| 19 #include "chrome/common/chrome_notification_types.h" | 19 #include "chrome/common/chrome_notification_types.h" |
| 20 #include "chrome/common/chrome_switches.h" | 20 #include "chrome/common/chrome_switches.h" |
| 21 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
| 22 #include "chrome/test/base/testing_profile.h" | 22 #include "chrome/test/base/testing_profile.h" |
| 23 #include "chromeos/chromeos_switches.h" | |
| 24 #include "components/user_prefs/user_prefs.h" | 23 #include "components/user_prefs/user_prefs.h" |
| 25 #include "content/public/browser/notification_details.h" | 24 #include "content/public/browser/notification_details.h" |
| 26 #include "content/public/browser/notification_service.h" | 25 #include "content/public/browser/notification_service.h" |
| 27 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
| 28 | 27 |
| 29 namespace chromeos { | 28 namespace chromeos { |
| 30 | 29 |
| 31 namespace { | 30 namespace { |
| 32 | 31 |
| 33 void SetMagnifierEnabled(bool enabled) { | 32 void SetMagnifierEnabled(bool enabled) { |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 // Enables full screen magnifier. | 361 // Enables full screen magnifier. |
| 363 SetMagnifierEnabled(true); | 362 SetMagnifierEnabled(true); |
| 364 EXPECT_TRUE(IsMagnifierEnabled()); | 363 EXPECT_TRUE(IsMagnifierEnabled()); |
| 365 EXPECT_EQ(ash::MAGNIFIER_FULL, GetMagnifierType()); | 364 EXPECT_EQ(ash::MAGNIFIER_FULL, GetMagnifierType()); |
| 366 | 365 |
| 367 // Confirms that the actual scale is set to the maximum scale. | 366 // Confirms that the actual scale is set to the maximum scale. |
| 368 EXPECT_EQ(4.0, GetFullScreenMagnifierScale()); | 367 EXPECT_EQ(4.0, GetFullScreenMagnifierScale()); |
| 369 } | 368 } |
| 370 | 369 |
| 371 } // namespace chromeos | 370 } // namespace chromeos |
| OLD | NEW |