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

Unified Diff: ash/screen_util_unittest.cc

Issue 2860163005: chromeos: gets rid of wm_screen_util (Closed)
Patch Set: include Created 3 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
Index: ash/screen_util_unittest.cc
diff --git a/ash/screen_util_unittest.cc b/ash/screen_util_unittest.cc
index c72c16a4cb3f64176e587098f9c47c5b39fa1254..4a0b4c491886b8c83f4844d322558d07a33b2fb8 100644
--- a/ash/screen_util_unittest.cc
+++ b/ash/screen_util_unittest.cc
@@ -8,8 +8,6 @@
#include "ash/shell.h"
#include "ash/test/ash_test_base.h"
#include "ash/wm/window_util.h"
-#include "ash/wm/wm_screen_util.h"
-#include "ash/wm_window.h"
#include "ui/aura/env.h"
#include "ui/aura/window.h"
#include "ui/aura/window_event_dispatcher.h"
@@ -113,23 +111,27 @@ TEST_F(ScreenUtilTest, ShelfDisplayBoundsInUnifiedDesktop) {
views::Widget* widget = views::Widget::CreateWindowWithContextAndBounds(
NULL, CurrentContext(), gfx::Rect(10, 10, 100, 100));
- WmWindow* window = WmWindow::Get(widget->GetNativeWindow());
+ aura::Window* window = widget->GetNativeWindow();
UpdateDisplay("500x400");
- EXPECT_EQ("0,0 500x400", wm::GetDisplayBoundsWithShelf(window).ToString());
+ EXPECT_EQ("0,0 500x400",
+ ScreenUtil::GetDisplayBoundsWithShelf(window).ToString());
UpdateDisplay("500x400,600x400");
- EXPECT_EQ("0,0 500x400", wm::GetDisplayBoundsWithShelf(window).ToString());
+ EXPECT_EQ("0,0 500x400",
+ ScreenUtil::GetDisplayBoundsWithShelf(window).ToString());
// Move to the 2nd physical display. Shelf's display still should be
// the first.
widget->SetBounds(gfx::Rect(800, 0, 100, 100));
ASSERT_EQ("800,0 100x100", widget->GetWindowBoundsInScreen().ToString());
- EXPECT_EQ("0,0 500x400", wm::GetDisplayBoundsWithShelf(window).ToString());
+ EXPECT_EQ("0,0 500x400",
+ ScreenUtil::GetDisplayBoundsWithShelf(window).ToString());
UpdateDisplay("600x500");
- EXPECT_EQ("0,0 600x500", wm::GetDisplayBoundsWithShelf(window).ToString());
+ EXPECT_EQ("0,0 600x500",
+ ScreenUtil::GetDisplayBoundsWithShelf(window).ToString());
}
} // namespace test
« ash/screen_util.h ('K') | « ash/screen_util.cc ('k') | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698