| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ash/mus/test/wm_test_base.h" |
| 6 #include "base/bind.h" |
| 7 #include "base/macros.h" |
| 8 #include "services/ui/public/cpp/window.h" |
| 9 |
| 10 namespace ash { |
| 11 class WindowManagerAshTest : public mus::WmTestBase { |
| 12 public: |
| 13 WindowManagerAshTest() {} |
| 14 void SetUp() override { mus::WmTestBase::SetUp(); } |
| 15 ~WindowManagerAshTest() override {} |
| 16 |
| 17 private: |
| 18 DISALLOW_COPY_AND_ASSIGN(WindowManagerAshTest); |
| 19 }; |
| 20 |
| 21 TEST_F(WindowManagerAshTest, isWidgetShownInCorrectDisplay) { |
| 22 if (!SupportsMultipleDisplays()) |
| 23 return; |
| 24 |
| 25 UpdateDisplay("400x400,400x400"); |
| 26 EXPECT_NE(GetPrimaryRootWindowController(), |
| 27 GetSecondaryRootWindowController()); |
| 28 |
| 29 ui::Window* ui_primary_window = |
| 30 CreateFullscreenTestWindow(GetPrimaryRootWindowController()); |
| 31 ui::Window* ui_secondary_window = |
| 32 CreateFullscreenTestWindow(GetSecondaryRootWindowController()); |
| 33 |
| 34 DCHECK(ui_primary_window); |
| 35 DCHECK(ui_secondary_window); |
| 36 |
| 37 EXPECT_NE(ui_primary_window->display_id(), ui_secondary_window->display_id()); |
| 38 } |
| 39 |
| 40 } // namespace ash |
| OLD | NEW |