| 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/ash_switches.h" | 7 #include "ash/ash_switches.h" |
| 8 #include "ash/display/display_manager.h" | 8 #include "ash/display/display_manager.h" |
| 9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
| 10 #include "ash/test/ash_test_base.h" | 10 #include "ash/test/ash_test_base.h" |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 EXPECT_EQ(1U, display_manager->GetNumDisplays()); | 277 EXPECT_EQ(1U, display_manager->GetNumDisplays()); |
| 278 EXPECT_TRUE(display_manager->IsMirrored()); | 278 EXPECT_TRUE(display_manager->IsMirrored()); |
| 279 EXPECT_EQ(external_id, display_manager->mirrored_display_id()); | 279 EXPECT_EQ(external_id, display_manager->mirrored_display_id()); |
| 280 } | 280 } |
| 281 | 281 |
| 282 TEST_F(MirrorOnBootTest, MAYBE_MirrorOnBoot) { | 282 TEST_F(MirrorOnBootTest, MAYBE_MirrorOnBoot) { |
| 283 DisplayManager* display_manager = Shell::GetInstance()->display_manager(); | 283 DisplayManager* display_manager = Shell::GetInstance()->display_manager(); |
| 284 EXPECT_TRUE(display_manager->IsMirrored()); | 284 EXPECT_TRUE(display_manager->IsMirrored()); |
| 285 RunAllPendingInMessageLoop(); | 285 RunAllPendingInMessageLoop(); |
| 286 test::MirrorWindowTestApi test_api; | 286 test::MirrorWindowTestApi test_api; |
| 287 EXPECT_TRUE(test_api.GetDispatcher()); | 287 EXPECT_TRUE(test_api.GetHost()); |
| 288 } | 288 } |
| 289 | 289 |
| 290 } // namsspace internal | 290 } // namsspace internal |
| 291 } // namespace ash | 291 } // namespace ash |
| OLD | NEW |