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

Side by Side Diff: ui/gfx/screen_unittest.cc

Issue 854713003: More old files deletion. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix tryjobs? Created 5 years, 11 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
« no previous file with comments | « ui/gfx/screen_type_delegate.h ('k') | ui/gfx/screen_win.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 (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 =
14 gfx::Screen::GetNativeScreen()->GetPrimaryDisplay().size();
15 EXPECT_GE(size.width(), 1);
16 EXPECT_GE(size.height(), 1);
17 }
18
19 TEST(ScreenTest, GetNumDisplays) {
20 // We aren't actually testing that it's correct, just that it's sane.
21 EXPECT_GE(gfx::Screen::GetNativeScreen()->GetNumDisplays(), 1);
22 }
23
24 } // namespace
OLDNEW
« no previous file with comments | « ui/gfx/screen_type_delegate.h ('k') | ui/gfx/screen_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698