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

Unified Diff: ash/wm/workspace/snap_sizer_unittest.cc

Issue 138003007: [Cleanup] Screen cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make sure screen_for_shutdown is reset everytime Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/workspace/snap_sizer.cc ('k') | ash/wm/workspace/workspace_event_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/snap_sizer_unittest.cc
diff --git a/ash/wm/workspace/snap_sizer_unittest.cc b/ash/wm/workspace/snap_sizer_unittest.cc
index 81a09f93940ecf4bb8177cfafe7ab3e27fcb3faa..a86c4de6145c00f9b08078d1588e6a16228c8649 100644
--- a/ash/wm/workspace/snap_sizer_unittest.cc
+++ b/ash/wm/workspace/snap_sizer_unittest.cc
@@ -5,7 +5,7 @@
#include "ash/wm/workspace/snap_sizer.h"
#include "ash/ash_switches.h"
-#include "ash/screen_ash.h"
+#include "ash/screen_util.h"
#include "ash/shell.h"
#include "ash/test/ash_test_base.h"
#include "ash/wm/window_state.h"
@@ -32,7 +32,7 @@ TEST_F(SnapSizerTest, MultipleDisplays) {
const gfx::Rect kPrimaryDisplayWorkAreaBounds =
ash::Shell::GetScreen()->GetPrimaryDisplay().work_area();
const gfx::Rect kSecondaryDisplayWorkAreaBounds =
- ScreenAsh::GetSecondaryDisplay().work_area();
+ ScreenUtil::GetSecondaryDisplay().work_area();
scoped_ptr<aura::Window> window(
CreateTestWindowInShellWithBounds(gfx::Rect(100, 100, 100, 100)));
@@ -53,7 +53,7 @@ TEST_F(SnapSizerTest, MultipleDisplays) {
// Move the window to the secondary display.
window->SetBoundsInScreen(gfx::Rect(600, 0, 100, 100),
- ScreenAsh::GetSecondaryDisplay());
+ ScreenUtil::GetSecondaryDisplay());
SnapSizer::SnapWindow(window_state, SnapSizer::RIGHT_EDGE);
expected = gfx::Rect(
@@ -254,8 +254,8 @@ TEST_F(SnapSizerTest, Default) {
gfx::Rect expected(work_area);
expected.set_width(work_area.width() * 0.9);
EXPECT_EQ(expected.ToString(),
- ScreenAsh::ConvertRectToScreen(window->parent(),
- sizer.target_bounds()).ToString());
+ ScreenUtil::ConvertRectToScreen(window->parent(),
+ sizer.target_bounds()).ToString());
// If the largest width the window can snap to is between 1024 and 1280, we
// should snap to 1024.
« no previous file with comments | « ash/wm/workspace/snap_sizer.cc ('k') | ash/wm/workspace/workspace_event_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698