| 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 16 matching lines...) Expand all Loading... |
| 27 info.SetBounds(bounds); | 27 info.SetBounds(bounds); |
| 28 return info; | 28 return info; |
| 29 } | 29 } |
| 30 | 30 |
| 31 class MirrorOnBootTest : public test::AshTestBase { | 31 class MirrorOnBootTest : public test::AshTestBase { |
| 32 public: | 32 public: |
| 33 MirrorOnBootTest() {} | 33 MirrorOnBootTest() {} |
| 34 ~MirrorOnBootTest() override {} | 34 ~MirrorOnBootTest() override {} |
| 35 | 35 |
| 36 void SetUp() override { | 36 void SetUp() override { |
| 37 CommandLine::ForCurrentProcess()->AppendSwitchASCII( | 37 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( |
| 38 switches::kAshHostWindowBounds, "1+1-300x300,1+301-300x300"); | 38 switches::kAshHostWindowBounds, "1+1-300x300,1+301-300x300"); |
| 39 CommandLine::ForCurrentProcess()->AppendSwitch( | 39 base::CommandLine::ForCurrentProcess()->AppendSwitch( |
| 40 switches::kAshEnableSoftwareMirroring); | 40 switches::kAshEnableSoftwareMirroring); |
| 41 test::AshTestBase::SetUp(); | 41 test::AshTestBase::SetUp(); |
| 42 } | 42 } |
| 43 void TearDown() override { test::AshTestBase::TearDown(); } | 43 void TearDown() override { test::AshTestBase::TearDown(); } |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 DISALLOW_COPY_AND_ASSIGN(MirrorOnBootTest); | 46 DISALLOW_COPY_AND_ASSIGN(MirrorOnBootTest); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } | 49 } |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 | 278 |
| 279 TEST_F(MirrorOnBootTest, MAYBE_MirrorOnBoot) { | 279 TEST_F(MirrorOnBootTest, MAYBE_MirrorOnBoot) { |
| 280 DisplayManager* display_manager = Shell::GetInstance()->display_manager(); | 280 DisplayManager* display_manager = Shell::GetInstance()->display_manager(); |
| 281 EXPECT_TRUE(display_manager->IsMirrored()); | 281 EXPECT_TRUE(display_manager->IsMirrored()); |
| 282 RunAllPendingInMessageLoop(); | 282 RunAllPendingInMessageLoop(); |
| 283 test::MirrorWindowTestApi test_api; | 283 test::MirrorWindowTestApi test_api; |
| 284 EXPECT_TRUE(test_api.GetHost()); | 284 EXPECT_TRUE(test_api.GetHost()); |
| 285 } | 285 } |
| 286 | 286 |
| 287 } // namespace ash | 287 } // namespace ash |
| OLD | NEW |