OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012 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/gfx/screen.h" | |
6 | |
7 #include "testing/gtest/include/gtest/gtest.h" | |
8 | |
9 namespace { | |
10 | |
11 TEST(ScreenTest, GetPrimaryDisplaySize) { | |
12 // We aren't actually testing that it's correct, just that it's sane. | |
13 const gfx::Size size = gfx::Screen::GetScreen()->GetPrimaryDisplay().size(); | |
14 EXPECT_GE(size.width(), 1); | |
15 EXPECT_GE(size.height(), 1); | |
16 } | |
17 | |
18 TEST(ScreenTest, GetNumDisplays) { | |
19 // We aren't actually testing that it's correct, just that it's sane. | |
20 EXPECT_GE(gfx::Screen::GetScreen()->GetNumDisplays(), 1); | |
21 } | |
22 | |
23 } // namespace | |
OLD | NEW |