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

Side by Side Diff: ash/magnifier/magnification_controller_unittest.cc

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (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 "ash/magnifier/magnification_controller.h" 5 #include "ash/magnifier/magnification_controller.h"
6 6
7 #include "ash/common/accessibility_types.h" 7 #include "ash/accessibility_types.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "ash/test/ash_test_base.h" 9 #include "ash/test/ash_test_base.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
11 #include "ui/aura/env.h" 11 #include "ui/aura/env.h"
12 #include "ui/aura/test/aura_test_utils.h" 12 #include "ui/aura/test/aura_test_utils.h"
13 #include "ui/aura/window_tree_host.h" 13 #include "ui/aura/window_tree_host.h"
14 #include "ui/base/ime/input_method.h" 14 #include "ui/base/ime/input_method.h"
15 #include "ui/display/manager/display_manager.h" 15 #include "ui/display/manager/display_manager.h"
16 #include "ui/display/screen.h" 16 #include "ui/display/screen.h"
17 #include "ui/events/test/event_generator.h" 17 #include "ui/events/test/event_generator.h"
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 UpdateDisplay("500x500"); 695 UpdateDisplay("500x500");
696 EXPECT_EQ("0,0 500x500", screen->GetPrimaryDisplay().bounds().ToString()); 696 EXPECT_EQ("0,0 500x500", screen->GetPrimaryDisplay().bounds().ToString());
697 EXPECT_EQ(2.0f, GetMagnificationController()->GetScale()); 697 EXPECT_EQ(2.0f, GetMagnificationController()->GetScale());
698 698
699 GetMagnificationController()->SetEnabled(false); 699 GetMagnificationController()->SetEnabled(false);
700 EXPECT_EQ("0,0 500x500", screen->GetPrimaryDisplay().bounds().ToString()); 700 EXPECT_EQ("0,0 500x500", screen->GetPrimaryDisplay().bounds().ToString());
701 EXPECT_EQ(1.0f, GetMagnificationController()->GetScale()); 701 EXPECT_EQ(1.0f, GetMagnificationController()->GetScale());
702 } 702 }
703 703
704 } // namespace ash 704 } // namespace ash
OLDNEW
« no previous file with comments | « ash/magnifier/magnification_controller.cc ('k') | ash/material_design/material_design_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698