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

Unified Diff: ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11_unittest.cc

Issue 2207043002: SetDeviceScaleFactorForTest Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SetDeviceScaleFactorForTest Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11_unittest.cc
diff --git a/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11_unittest.cc b/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11_unittest.cc
index bd1e5e8e47464a816a965830b2b331f366a4077e..17e57727f34a26762a60794d526f20d91b1a9798 100644
--- a/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11_unittest.cc
+++ b/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11_unittest.cc
@@ -573,7 +573,7 @@ void HighDPIStep(TestDragDropClient* client) {
TEST_F(DesktopDragDropClientAuraX11Test, HighDPI200) {
aura::TestScreen* screen =
static_cast<aura::TestScreen*>(display::Screen::GetScreen());
- screen->SetDeviceScaleFactor(2.0f);
+ screen->SetDeviceScaleFactorForTest(2.0f);
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::Bind(&HighDPIStep, client()));
@@ -584,7 +584,7 @@ TEST_F(DesktopDragDropClientAuraX11Test, HighDPI200) {
TEST_F(DesktopDragDropClientAuraX11Test, HighDPI150) {
aura::TestScreen* screen =
static_cast<aura::TestScreen*>(display::Screen::GetScreen());
- screen->SetDeviceScaleFactor(1.5f);
+ screen->SetDeviceScaleFactorForTest(1.5f);
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::Bind(&HighDPIStep, client()));
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698