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

Unified Diff: ui/display/screen_unittest.cc

Issue 1964153002: Move Screen, its impls, DisplayObserver and DisplayChangeNotifier to ui/display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tabs Created 4 years, 7 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
« no previous file with comments | « ui/display/screen_aura.cc ('k') | ui/display/test/test_screen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/screen_unittest.cc
diff --git a/ui/gfx/screen_unittest.cc b/ui/display/screen_unittest.cc
similarity index 74%
rename from ui/gfx/screen_unittest.cc
rename to ui/display/screen_unittest.cc
index 8b63ac70b52a3a493ffb110f0fee463a95ca4560..f9b9d0cf65b6b651c585f43a63b1abfdbe261ebe 100644
--- a/ui/gfx/screen_unittest.cc
+++ b/ui/display/screen_unittest.cc
@@ -2,22 +2,22 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ui/gfx/screen.h"
+#include "ui/display/screen.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace {
+namespace display {
TEST(ScreenTest, GetPrimaryDisplaySize) {
// We aren't actually testing that it's correct, just that it's sane.
- const gfx::Size size = gfx::Screen::GetScreen()->GetPrimaryDisplay().size();
+ const gfx::Size size = Screen::GetScreen()->GetPrimaryDisplay().size();
EXPECT_GE(size.width(), 1);
EXPECT_GE(size.height(), 1);
}
TEST(ScreenTest, GetNumDisplays) {
// We aren't actually testing that it's correct, just that it's sane.
- EXPECT_GE(gfx::Screen::GetScreen()->GetNumDisplays(), 1);
+ EXPECT_GE(Screen::GetScreen()->GetNumDisplays(), 1);
}
} // namespace
« no previous file with comments | « ui/display/screen_aura.cc ('k') | ui/display/test/test_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698