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

Side by Side Diff: ash/display/display_change_observer_x11_unittest.cc

Issue 21297003: Add ability to set resolution on external display (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: adraddressed comment, adjusted test Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/display/display_change_observer_x11.cc ('k') | ash/display/display_info.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « ash/display/display_change_observer_x11.cc ('k') | ash/display/display_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698