1 // Copyright 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
TEST_F(XUtilTest,TestBlackListedDisplay)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 }
26