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

Unified Diff: chrome/browser/metrics/display_utils_unittest.cc

Issue 8382019: Move DisplayUtils methods into gfx::Screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove DCHECKS Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/metrics/display_utils_unittest.cc
diff --git a/chrome/browser/metrics/display_utils_unittest.cc b/chrome/browser/metrics/display_utils_unittest.cc
deleted file mode 100644
index 40ebc4c9c77a2499e722ec121af03e87c085b35f..0000000000000000000000000000000000000000
--- a/chrome/browser/metrics/display_utils_unittest.cc
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/message_loop.h"
-#include "chrome/browser/metrics/display_utils.h"
-#include "content/browser/browser_thread.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-// Crashes on Linux Aura, probably because we need to initialize a Screen
-// object. See http://crbug.com/100341
-#if defined(USE_AURA) && !defined(OS_WIN)
-#define MAYBE_GetPrimaryDisplayDimensions DISABLED_GetPrimaryDisplayDimensions
-#else
-#define MAYBE_GetPrimaryDisplayDimensions GetPrimaryDisplayDimensions
-#endif
-TEST(DisplayUtilsTest, MAYBE_GetPrimaryDisplayDimensions) {
- MessageLoop message_loop;
- BrowserThread ui_thread(BrowserThread::UI, &message_loop);
- int width = 0, height = 0;
- // We aren't actually testing that it's correct, just that it's sane.
- DisplayUtils::GetPrimaryDisplayDimensions(&width, &height);
- EXPECT_GE(width, 10);
- EXPECT_GE(height, 10);
-}
-
-TEST(DisplayUtilsTest, GetDisplayCount) {
- MessageLoop message_loop;
- BrowserThread ui_thread(BrowserThread::UI, &message_loop);
- // We aren't actually testing that it's correct, just that it's sane.
- EXPECT_GE(DisplayUtils::GetDisplayCount(), 1);
-}

Powered by Google App Engine
This is Rietveld 408576698