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

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

Issue 2734733002: Revert "chromeos: Move files in //ash/common to //ash, part 3" (Closed)
Patch Set: Created 3 years, 9 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/accessibility_types.h" 7 #include "ash/common/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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698