| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ui/gfx/screen_win.h" | 5 #include "ui/gfx/screen_win.h" |
| 6 | 6 |
| 7 #include <cwchar> | 7 #include <cwchar> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include <windows.h> | 11 #include <windows.h> |
| 12 #include <stddef.h> |
| 12 | 13 |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 14 #include "ui/gfx/display.h" | 15 #include "ui/gfx/display.h" |
| 15 #include "ui/gfx/geometry/rect.h" | 16 #include "ui/gfx/geometry/rect.h" |
| 16 #include "ui/gfx/win/dpi.h" | 17 #include "ui/gfx/win/dpi.h" |
| 17 | 18 |
| 18 namespace gfx { | 19 namespace gfx { |
| 19 | 20 |
| 20 namespace { | 21 namespace { |
| 21 | 22 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 L"primary")); | 71 L"primary")); |
| 71 std::vector<gfx::Display> displays = | 72 std::vector<gfx::Display> displays = |
| 72 ScreenWin::GetDisplaysForMonitorInfos(monitor_infos); | 73 ScreenWin::GetDisplaysForMonitorInfos(monitor_infos); |
| 73 | 74 |
| 74 ASSERT_EQ(1u, displays.size()); | 75 ASSERT_EQ(1u, displays.size()); |
| 75 EXPECT_EQ(gfx::Rect(0, 0, 960, 600), displays[0].bounds()); | 76 EXPECT_EQ(gfx::Rect(0, 0, 960, 600), displays[0].bounds()); |
| 76 EXPECT_EQ(gfx::Rect(0, 0, 960, 550), displays[0].work_area()); | 77 EXPECT_EQ(gfx::Rect(0, 0, 960, 550), displays[0].work_area()); |
| 77 } | 78 } |
| 78 | 79 |
| 79 } // namespace gfx | 80 } // namespace gfx |
| OLD | NEW |