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

Side by Side 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: Made GetDeviceScaleFactor clearer. Put unittest to 'all_sources' in .gyp Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/base/x/x11_util.h"
6
7 #include "testing/gtest/include/gtest/gtest.h"
8
9 typedef testing::Test XUtilTest;
10
11 namespace ui {
12
13 TEST_F(XUtilTest, TestBlackListedDisplay) {
14 EXPECT_TRUE(IsXDisplaySizeBlackListed(10, 10));
15 EXPECT_TRUE(IsXDisplaySizeBlackListed(40, 30));
16 EXPECT_TRUE(IsXDisplaySizeBlackListed(50, 40));
17 EXPECT_TRUE(IsXDisplaySizeBlackListed(160, 90));
18 EXPECT_TRUE(IsXDisplaySizeBlackListed(160, 100));
19
20 EXPECT_FALSE(IsXDisplaySizeBlackListed(50, 60));
21 EXPECT_FALSE(IsXDisplaySizeBlackListed(100, 70));
22 EXPECT_FALSE(IsXDisplaySizeBlackListed(272, 181));
23 }
24
25 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698