Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Side by Side Diff: ui/display/win/screen_win_unittest.cc

Issue 1929873005: Rename gfx::Display/Screen to display::Display/Screen in ui/display, ui/ozon (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/display/win/dpi.cc ('k') | ui/ozone/platform/drm/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/display/win/screen_win.h" 5 #include "ui/display/win/screen_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <inttypes.h> 8 #include <inttypes.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 10
(...skipping 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after
1561 public: 1561 public:
1562 ScreenWinUninitializedForced1x() = default; 1562 ScreenWinUninitializedForced1x() = default;
1563 1563
1564 void SetUp() override { 1564 void SetUp() override {
1565 testing::Test::SetUp(); 1565 testing::Test::SetUp();
1566 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( 1566 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
1567 switches::kForceDeviceScaleFactor, "1"); 1567 switches::kForceDeviceScaleFactor, "1");
1568 } 1568 }
1569 1569
1570 void TearDown() override { 1570 void TearDown() override {
1571 gfx::Display::ResetForceDeviceScaleFactorForTesting(); 1571 display::Display::ResetForceDeviceScaleFactorForTesting();
1572 testing::Test::TearDown(); 1572 testing::Test::TearDown();
1573 } 1573 }
1574 1574
1575 private: 1575 private:
1576 DISALLOW_COPY_AND_ASSIGN(ScreenWinUninitializedForced1x); 1576 DISALLOW_COPY_AND_ASSIGN(ScreenWinUninitializedForced1x);
1577 }; 1577 };
1578 1578
1579 } // namespace 1579 } // namespace
1580 1580
1581 TEST_F(ScreenWinUninitializedForced1x, ScreenToDIPPoints) { 1581 TEST_F(ScreenWinUninitializedForced1x, ScreenToDIPPoints) {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
1659 public: 1659 public:
1660 ScreenWinUninitializedForced2x() = default; 1660 ScreenWinUninitializedForced2x() = default;
1661 1661
1662 void SetUp() override { 1662 void SetUp() override {
1663 testing::Test::SetUp(); 1663 testing::Test::SetUp();
1664 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( 1664 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
1665 switches::kForceDeviceScaleFactor, "2"); 1665 switches::kForceDeviceScaleFactor, "2");
1666 } 1666 }
1667 1667
1668 void TearDown() override { 1668 void TearDown() override {
1669 gfx::Display::ResetForceDeviceScaleFactorForTesting(); 1669 display::Display::ResetForceDeviceScaleFactorForTesting();
1670 testing::Test::TearDown(); 1670 testing::Test::TearDown();
1671 } 1671 }
1672 1672
1673 private: 1673 private:
1674 DISALLOW_COPY_AND_ASSIGN(ScreenWinUninitializedForced2x); 1674 DISALLOW_COPY_AND_ASSIGN(ScreenWinUninitializedForced2x);
1675 }; 1675 };
1676 1676
1677 } // namespace 1677 } // namespace
1678 1678
1679 TEST_F(ScreenWinUninitializedForced2x, ScreenToDIPPoints) { 1679 TEST_F(ScreenWinUninitializedForced2x, ScreenToDIPPoints) {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
1743 ScreenWin::ScreenToDIPSize(nullptr, gfx::Size(42, 131))); 1743 ScreenWin::ScreenToDIPSize(nullptr, gfx::Size(42, 131)));
1744 } 1744 }
1745 1745
1746 TEST_F(ScreenWinUninitializedForced2x, DIPToScreenSize) { 1746 TEST_F(ScreenWinUninitializedForced2x, DIPToScreenSize) {
1747 EXPECT_EQ(gfx::Size(42, 132), 1747 EXPECT_EQ(gfx::Size(42, 132),
1748 ScreenWin::DIPToScreenSize(nullptr, gfx::Size(21, 66))); 1748 ScreenWin::DIPToScreenSize(nullptr, gfx::Size(21, 66)));
1749 } 1749 }
1750 1750
1751 } // namespace win 1751 } // namespace win
1752 } // namespace display 1752 } // namespace display
OLDNEW
« no previous file with comments | « ui/display/win/dpi.cc ('k') | ui/ozone/platform/drm/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698