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

Side by Side Diff: ash/display/display_controller_unittest.cc

Issue 10827237: Enabling Extended Deskop by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « ash/display/display_controller.cc ('k') | ash/display/multi_display_manager_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/display/display_controller.h" 5 #include "ash/display/display_controller.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/test/ash_test_base.h" 8 #include "ash/test/ash_test_base.h"
9 #include "ui/aura/display_manager.h" 9 #include "ui/aura/display_manager.h"
10 #include "ui/aura/env.h" 10 #include "ui/aura/env.h"
(...skipping 10 matching lines...) Expand all
21 Shell::GetAllRootWindows()[0]); 21 Shell::GetAllRootWindows()[0]);
22 } 22 }
23 23
24 gfx::Display GetSecondaryDisplay() { 24 gfx::Display GetSecondaryDisplay() {
25 return gfx::Screen::GetDisplayNearestWindow( 25 return gfx::Screen::GetDisplayNearestWindow(
26 Shell::GetAllRootWindows()[1]); 26 Shell::GetAllRootWindows()[1]);
27 } 27 }
28 28
29 } // namespace 29 } // namespace
30 30
31 class DisplayControllerTest : public test::AshTestBase { 31 typedef test::AshTestBase DisplayControllerTest;
32 public:
33 DisplayControllerTest() {}
34 virtual ~DisplayControllerTest() {}
35
36 virtual void SetUp() OVERRIDE {
37 internal::DisplayController::SetExtendedDesktopEnabled(true);
38 AshTestBase::SetUp();
39 }
40
41 virtual void TearDown() OVERRIDE {
42 AshTestBase::TearDown();
43 internal::DisplayController::SetExtendedDesktopEnabled(false);
44 }
45
46 private:
47 DISALLOW_COPY_AND_ASSIGN(DisplayControllerTest);
48 };
49 32
50 #if defined(OS_WIN) 33 #if defined(OS_WIN)
51 // TOD(oshima): Windows creates a window with smaller client area. 34 // TOD(oshima): Windows creates a window with smaller client area.
52 // Fix this and enable tests. 35 // Fix this and enable tests.
53 #define MAYBE_SecondaryDisplayLayout DISABLED_SecondaryDisplayLayout 36 #define MAYBE_SecondaryDisplayLayout DISABLED_SecondaryDisplayLayout
54 #define MAYBE_BoundsUpdated DISABLED_BoundsUpdated 37 #define MAYBE_BoundsUpdated DISABLED_BoundsUpdated
55 #else 38 #else
56 #define MAYBE_SecondaryDisplayLayout SecondaryDisplayLayout 39 #define MAYBE_SecondaryDisplayLayout SecondaryDisplayLayout
57 #define MAYBE_BoundsUpdated BoundsUpdated 40 #define MAYBE_BoundsUpdated BoundsUpdated
58 #endif 41 #endif
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 controller->set_dont_warp_mouse(false); 183 controller->set_dont_warp_mouse(false);
201 is_warped = controller->WarpMouseCursorIfNecessary(root_windows[0], 184 is_warped = controller->WarpMouseCursorIfNecessary(root_windows[0],
202 gfx::Point(499, 11)); 185 gfx::Point(499, 11));
203 EXPECT_TRUE(is_warped); 186 EXPECT_TRUE(is_warped);
204 EXPECT_EQ("501,11", 187 EXPECT_EQ("501,11",
205 aura::Env::GetInstance()->last_mouse_location().ToString()); 188 aura::Env::GetInstance()->last_mouse_location().ToString());
206 } 189 }
207 190
208 } // namespace test 191 } // namespace test
209 } // namespace ash 192 } // namespace ash
OLDNEW
« no previous file with comments | « ash/display/display_controller.cc ('k') | ash/display/multi_display_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698