| OLD | NEW |
| 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/window_tree_host_manager.h" | 5 #include "ash/display/window_tree_host_manager.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "ash/display/display_util.h" | 9 #include "ash/display/display_util.h" |
| 10 #include "ash/screen_util.h" | 10 #include "ash/screen_util.h" |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 // views::MouseWatcherListener: | 383 // views::MouseWatcherListener: |
| 384 void MouseMovedOutOfHost() override {} | 384 void MouseMovedOutOfHost() override {} |
| 385 | 385 |
| 386 DISALLOW_COPY_AND_ASSIGN(TestMouseWatcherListener); | 386 DISALLOW_COPY_AND_ASSIGN(TestMouseWatcherListener); |
| 387 }; | 387 }; |
| 388 | 388 |
| 389 } // namespace | 389 } // namespace |
| 390 | 390 |
| 391 class WindowTreeHostManagerTest : public test::AshTestBase, public TestHelper { | 391 class WindowTreeHostManagerTest : public test::AshTestBase, public TestHelper { |
| 392 public: | 392 public: |
| 393 WindowTreeHostManagerTest() : TestHelper(this){}; | 393 WindowTreeHostManagerTest() : TestHelper(this) {} |
| 394 ~WindowTreeHostManagerTest() override{}; | 394 ~WindowTreeHostManagerTest() override {} |
| 395 | 395 |
| 396 private: | 396 private: |
| 397 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostManagerTest); | 397 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostManagerTest); |
| 398 }; | 398 }; |
| 399 | 399 |
| 400 TEST_F(WindowTreeHostManagerShutdownTest, Shutdown) { | 400 TEST_F(WindowTreeHostManagerShutdownTest, Shutdown) { |
| 401 UpdateDisplay("444x333, 200x200"); | 401 UpdateDisplay("444x333, 200x200"); |
| 402 } | 402 } |
| 403 | 403 |
| 404 TEST_F(WindowTreeHostManagerStartupTest, Startup) { | 404 TEST_F(WindowTreeHostManagerStartupTest, Startup) { |
| (...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1696 widget->GetNativeWindow()->GetRootWindow()); | 1696 widget->GetNativeWindow()->GetRootWindow()); |
| 1697 event_generator.MoveMouseToCenterOf(widget->GetNativeWindow()); | 1697 event_generator.MoveMouseToCenterOf(widget->GetNativeWindow()); |
| 1698 | 1698 |
| 1699 UpdateDisplay("300x300"); | 1699 UpdateDisplay("300x300"); |
| 1700 watcher.Stop(); | 1700 watcher.Stop(); |
| 1701 | 1701 |
| 1702 widget->CloseNow(); | 1702 widget->CloseNow(); |
| 1703 } | 1703 } |
| 1704 | 1704 |
| 1705 } // namespace ash | 1705 } // namespace ash |
| OLD | NEW |