OLD | NEW |
| (Empty) |
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 "ash/display/display_change_observer_x11.h" | |
6 | |
7 // Undefine X's macros used in gtest. | |
8 #undef Bool | |
9 #undef None | |
10 | |
11 #include "testing/gtest/include/gtest/gtest.h" | |
12 | |
13 typedef testing::Test DisplayChangeObserverX11Test; | |
14 | |
15 namespace ash { | |
16 namespace internal { | |
17 | |
18 TEST_F(DisplayChangeObserverX11Test, TestBlackListedDisplay) { | |
19 EXPECT_TRUE(ShouldIgnoreSize(10, 10)); | |
20 EXPECT_TRUE(ShouldIgnoreSize(40, 30)); | |
21 EXPECT_TRUE(ShouldIgnoreSize(50, 40)); | |
22 EXPECT_TRUE(ShouldIgnoreSize(160, 90)); | |
23 EXPECT_TRUE(ShouldIgnoreSize(160, 100)); | |
24 | |
25 EXPECT_FALSE(ShouldIgnoreSize(50, 60)); | |
26 EXPECT_FALSE(ShouldIgnoreSize(100, 70)); | |
27 EXPECT_FALSE(ShouldIgnoreSize(272, 181)); | |
28 } | |
29 | |
30 } // namespace internal | |
31 } // namespace ash | |
OLD | NEW |