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

Unified Diff: ui/base/x/x11_util_unittest.cc

Issue 27156003: linux_aura: Enable HIDPI support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Took Daniel comments into consideration Created 7 years, 2 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
Index: ui/base/x/x11_util_unittest.cc
diff --git a/ui/base/x/x11_util_unittest.cc b/ui/base/x/x11_util_unittest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..4331ab3a5b30d4d5766ed96af10816ce9bfef3a9
--- /dev/null
+++ b/ui/base/x/x11_util_unittest.cc
@@ -0,0 +1,25 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/base/x/x11_util.h"
+
+#include "testing/gtest/include/gtest/gtest.h"
+
+typedef testing::Test XUtilTest;
+
+namespace ui {
+
+TEST_F(XUtilTest, TestBlackListedDisplay) {
+ EXPECT_TRUE(IsXDisplaySizeBlackListed(10, 10));
+ EXPECT_TRUE(IsXDisplaySizeBlackListed(40, 30));
+ EXPECT_TRUE(IsXDisplaySizeBlackListed(50, 40));
+ EXPECT_TRUE(IsXDisplaySizeBlackListed(160, 90));
+ EXPECT_TRUE(IsXDisplaySizeBlackListed(160, 100));
+
+ EXPECT_FALSE(IsXDisplaySizeBlackListed(50, 60));
+ EXPECT_FALSE(IsXDisplaySizeBlackListed(100, 70));
+ EXPECT_FALSE(IsXDisplaySizeBlackListed(272, 181));
+}
+
+}
« no previous file with comments | « ui/base/x/x11_util.cc ('k') | ui/ui_unittests.gypi » ('j') | ui/ui_unittests.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698