| Index: content/browser/renderer_host/input/web_input_event_unittest.cc
|
| diff --git a/content/browser/renderer_host/input/web_input_event_unittest.cc b/content/browser/renderer_host/input/web_input_event_unittest.cc
|
| index 51f9e19b92eda42512dd20d44fd7a21692bc74e5..f78143650191a9d259963d1410f99b775d875fe9 100644
|
| --- a/content/browser/renderer_host/input/web_input_event_unittest.cc
|
| +++ b/content/browser/renderer_host/input/web_input_event_unittest.cc
|
| @@ -6,6 +6,7 @@
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| #include "third_party/WebKit/public/web/WebInputEvent.h"
|
| #include "ui/events/event_constants.h"
|
| +#include "ui/gfx/display.h"
|
| #include "ui/gfx/switches.h"
|
|
|
| #if defined(OS_WIN)
|
| @@ -24,6 +25,8 @@ TEST(WebInputEventBuilderTest, TestMouseEventScale) {
|
| if (base::win::GetVersion() < base::win::VERSION_WIN7)
|
| return;
|
|
|
| + gfx::Display::ResetForceDeviceScaleFactorForTesting();
|
| +
|
| base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
|
| command_line->AppendSwitchASCII(switches::kForceDeviceScaleFactor, "2");
|
|
|
| @@ -47,6 +50,7 @@ TEST(WebInputEventBuilderTest, TestMouseEventScale) {
|
| EXPECT_EQ(100, mouse_move.globalY);
|
|
|
| command_line->AppendSwitchASCII(switches::kForceDeviceScaleFactor, "1");
|
| + gfx::Display::ResetForceDeviceScaleFactorForTesting();
|
| }
|
| #endif
|
|
|
|
|