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

Side by Side Diff: chrome/browser/chromeos/accessibility/magnification_manager_unittest.cc

Issue 2074913005: Convert TrayAccessibility to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webnotification
Patch Set: rebase 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 unified diff | Download patch
OLDNEW
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/test/ash_test_base.h" 8 #include "ash/test/ash_test_base.h"
8 #include "chrome/test/base/testing_profile.h" 9 #include "chrome/test/base/testing_profile.h"
9 #include "components/prefs/pref_service.h" 10 #include "components/prefs/pref_service.h"
10 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
11 #include "ui/chromeos/accessibility_types.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);
18 } 18 }
19 19
20 void DisableMagnifier() { 20 void DisableMagnifier() {
21 return MagnificationManager::Get()->SetMagnifierEnabled(false); 21 return MagnificationManager::Get()->SetMagnifierEnabled(false);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 EXPECT_TRUE(IsMagnifierEnabled()); 67 EXPECT_TRUE(IsMagnifierEnabled());
68 EXPECT_EQ(GetMagnifierType(), ui::MAGNIFIER_FULL); 68 EXPECT_EQ(GetMagnifierType(), ui::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(), ui::MAGNIFIER_FULL); 73 EXPECT_EQ(GetMagnifierType(), ui::MAGNIFIER_FULL);
74 } 74 }
75 75
76 } // namespace chromeos 76 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698