extensions: EventRouter: pass the whole event to WillDispatchCallback
[chromium-blink-merge.git] / ui / gfx / screen_unittest.cc
blobdb5a03ffec90ad987f9886e458d74339c558ef01
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.
5 #include "ui/gfx/screen.h"
7 #include "testing/gtest/include/gtest/gtest.h"
9 namespace {
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);
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);
24 } // namespace