| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "chrome/browser/chromeos/accessibility/magnification_manager.h" | 5 #include "chrome/browser/chromeos/accessibility/magnification_manager.h" |
| 6 | 6 |
| 7 #include "ash/common/accessibility_types.h" | 7 #include "ash/accessibility_types.h" |
| 8 #include "ash/test/ash_test_base.h" | 8 #include "ash/test/ash_test_base.h" |
| 9 #include "chrome/test/base/testing_profile.h" | 9 #include "chrome/test/base/testing_profile.h" |
| 10 #include "components/prefs/pref_service.h" | 10 #include "components/prefs/pref_service.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 12 |
| 13 namespace chromeos { | 13 namespace chromeos { |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 void EnableMagnifier() { | 16 void EnableMagnifier() { |
| 17 return MagnificationManager::Get()->SetMagnifierEnabled(true); | 17 return MagnificationManager::Get()->SetMagnifierEnabled(true); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 EXPECT_TRUE(IsMagnifierEnabled()); | 67 EXPECT_TRUE(IsMagnifierEnabled()); |
| 68 EXPECT_EQ(GetMagnifierType(), ash::MAGNIFIER_FULL); | 68 EXPECT_EQ(GetMagnifierType(), ash::MAGNIFIER_FULL); |
| 69 | 69 |
| 70 // Disables magnifier, and confirm the status is set successfully. | 70 // Disables magnifier, and confirm the status is set successfully. |
| 71 DisableMagnifier(); | 71 DisableMagnifier(); |
| 72 EXPECT_FALSE(IsMagnifierEnabled()); | 72 EXPECT_FALSE(IsMagnifierEnabled()); |
| 73 EXPECT_EQ(GetMagnifierType(), ash::MAGNIFIER_FULL); | 73 EXPECT_EQ(GetMagnifierType(), ash::MAGNIFIER_FULL); |
| 74 } | 74 } |
| 75 | 75 |
| 76 } // namespace chromeos | 76 } // namespace chromeos |
| OLD | NEW |