Index: ui/base/test/run_all_unittests.cc |
diff --git a/ui/base/test/run_all_unittests.cc b/ui/base/test/run_all_unittests.cc |
index 8573da08506945d9afd770f696e9a9559dbc56fa..bfc5f2603b9310c0fa535df0941093a98eeab092 100644 |
--- a/ui/base/test/run_all_unittests.cc |
+++ b/ui/base/test/run_all_unittests.cc |
@@ -22,6 +22,10 @@ |
#include "base/mac/bundle_locations.h" |
#endif |
+#if defined(OS_WIN) |
+#include "ui/gfx/win/dpi.h" |
+#endif |
+ |
namespace { |
class UIBaseTestSuite : public base::TestSuite { |
@@ -43,6 +47,10 @@ UIBaseTestSuite::UIBaseTestSuite(int argc, char** argv) |
void UIBaseTestSuite::Initialize() { |
base::TestSuite::Initialize(); |
+#if defined(OS_WIN) |
+ gfx::ForceHighDPISupportForTesting(1.0); |
+#endif |
+ |
#if defined(OS_ANDROID) |
// Register JNI bindings for android. |
gfx::android::RegisterJni(base::android::AttachCurrentThread()); |