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 "ash/display/mirror_window_controller.h" | 5 #include "ash/display/mirror_window_controller.h" |
6 | 6 |
7 #include "ash/common/ash_switches.h" | 7 #include "ash/common/ash_switches.h" |
8 #include "ash/display/display_manager.h" | 8 #include "ash/display/display_manager.h" |
9 #include "ash/display/window_tree_host_manager.h" | 9 #include "ash/display/window_tree_host_manager.h" |
10 #include "ash/screen_util.h" | 10 #include "ash/screen_util.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 switches::kAshHostWindowBounds, "1+1-300x300,1+301-300x300"); | 42 switches::kAshHostWindowBounds, "1+1-300x300,1+301-300x300"); |
43 base::CommandLine::ForCurrentProcess()->AppendSwitch( | 43 base::CommandLine::ForCurrentProcess()->AppendSwitch( |
44 switches::kAshEnableSoftwareMirroring); | 44 switches::kAshEnableSoftwareMirroring); |
45 test::AshTestBase::SetUp(); | 45 test::AshTestBase::SetUp(); |
46 } | 46 } |
47 void TearDown() override { test::AshTestBase::TearDown(); } | 47 void TearDown() override { test::AshTestBase::TearDown(); } |
48 | 48 |
49 private: | 49 private: |
50 DISALLOW_COPY_AND_ASSIGN(MirrorOnBootTest); | 50 DISALLOW_COPY_AND_ASSIGN(MirrorOnBootTest); |
51 }; | 51 }; |
52 | |
53 } | 52 } |
54 | 53 |
55 typedef test::AshTestBase MirrorWindowControllerTest; | 54 typedef test::AshTestBase MirrorWindowControllerTest; |
56 | 55 |
57 #if defined(OS_WIN) | 56 #if defined(OS_WIN) |
58 // Software mirroring does not work on win. | 57 // Software mirroring does not work on win. |
59 #define MAYBE_MirrorCursorBasic DISABLED_MirrorCursorBasic | 58 #define MAYBE_MirrorCursorBasic DISABLED_MirrorCursorBasic |
60 #define MAYBE_MirrorCursorLocations DISABLED_MirrorCursorLocations | 59 #define MAYBE_MirrorCursorLocations DISABLED_MirrorCursorLocations |
61 #define MAYBE_MirrorCursorMoveOnEnter DISABLED_MirrorCursorMoveOnEnter | 60 #define MAYBE_MirrorCursorMoveOnEnter DISABLED_MirrorCursorMoveOnEnter |
62 #define MAYBE_MirrorCursorRotate DISABLED_MirrorCursorRotate | 61 #define MAYBE_MirrorCursorRotate DISABLED_MirrorCursorRotate |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 | 298 |
300 TEST_F(MirrorOnBootTest, MAYBE_MirrorOnBoot) { | 299 TEST_F(MirrorOnBootTest, MAYBE_MirrorOnBoot) { |
301 DisplayManager* display_manager = Shell::GetInstance()->display_manager(); | 300 DisplayManager* display_manager = Shell::GetInstance()->display_manager(); |
302 EXPECT_TRUE(display_manager->IsInMirrorMode()); | 301 EXPECT_TRUE(display_manager->IsInMirrorMode()); |
303 RunAllPendingInMessageLoop(); | 302 RunAllPendingInMessageLoop(); |
304 test::MirrorWindowTestApi test_api; | 303 test::MirrorWindowTestApi test_api; |
305 EXPECT_TRUE(test_api.GetHost()); | 304 EXPECT_TRUE(test_api.GetHost()); |
306 } | 305 } |
307 | 306 |
308 } // namespace ash | 307 } // namespace ash |
OLD | NEW |