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

Unified Diff: ui/aura/window_event_dispatcher_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/aura/test/test_screen.cc ('k') | ui/aura/window_tree_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_event_dispatcher_unittest.cc
diff --git a/ui/aura/window_event_dispatcher_unittest.cc b/ui/aura/window_event_dispatcher_unittest.cc
index f22a0ac7e0361e919e165f7e7190c19fc80e2fd6..bbed82225ae05767aa8df1ab4caa20390bbff058 100644
--- a/ui/aura/window_event_dispatcher_unittest.cc
+++ b/ui/aura/window_event_dispatcher_unittest.cc
@@ -2084,7 +2084,7 @@ class WindowEventDispatcherTestInHighDPI : public WindowEventDispatcherTest {
protected:
void SetUp() override {
WindowEventDispatcherTest::SetUp();
- test_screen()->SetDeviceScaleFactor(2.f);
+ test_screen()->SetDeviceScaleFactorForTest(2.f);
}
};
@@ -2661,7 +2661,7 @@ TEST_F(WindowEventDispatcherTest, OnCursorMovedToRootLocationUpdatesHover) {
// The cursor should not be over |w| after changing the device scale factor to
// 2x. A ET_MOUSE_EXITED event should have been sent to |w|.
- test_screen()->SetDeviceScaleFactor(2.f);
+ test_screen()->SetDeviceScaleFactorForTest(2.f);
dispatcher->OnCursorMovedToRootLocation(gfx::Point(11, 11));
RunAllPendingInMessageLoop();
EXPECT_TRUE(recorder.HasReceivedEvent(ui::ET_MOUSE_EXITED));
« no previous file with comments | « ui/aura/test/test_screen.cc ('k') | ui/aura/window_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698