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

Unified Diff: ash/extended_desktop_unittest.cc

Issue 2355063002: Separate ash::test::DisplayManagerTestApi from ash (Closed)
Patch Set: review comment Created 4 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: ash/extended_desktop_unittest.cc
diff --git a/ash/extended_desktop_unittest.cc b/ash/extended_desktop_unittest.cc
index 8f5642e57c1dead4bfbbe4bd2256565c48a6179b..29d908a36ccb7fb3940c8cf3261769d0af589b7a 100644
--- a/ash/extended_desktop_unittest.cc
+++ b/ash/extended_desktop_unittest.cc
@@ -8,7 +8,6 @@
#include "ash/common/wm/root_window_finder.h"
#include "ash/display/display_manager.h"
#include "ash/root_window_controller.h"
-#include "ash/screen_util.h"
#include "ash/shell.h"
#include "ash/test/ash_test_base.h"
#include "ash/wm/window_properties.h"
@@ -818,7 +817,7 @@ TEST_F(ExtendedDesktopTest, StayInSameRootWindow) {
aura::Window* window =
aura::test::CreateTestWindowWithId(100, settings_bubble_container);
window->SetBoundsInScreen(gfx::Rect(150, 10, 50, 50),
- ScreenUtil::GetSecondaryDisplay());
+ display_manager()->GetSecondaryDisplay());
EXPECT_EQ(root_windows[0], window->GetRootWindow());
aura::Window* status_container =
@@ -826,7 +825,7 @@ TEST_F(ExtendedDesktopTest, StayInSameRootWindow) {
kShellWindowId_StatusContainer);
window = aura::test::CreateTestWindowWithId(100, status_container);
window->SetBoundsInScreen(gfx::Rect(150, 10, 50, 50),
- ScreenUtil::GetSecondaryDisplay());
+ display_manager()->GetSecondaryDisplay());
EXPECT_EQ(root_windows[0], window->GetRootWindow());
}
@@ -843,7 +842,7 @@ TEST_F(ExtendedDesktopTest, KeyEventsOnLockScreen) {
widget1->Show();
EXPECT_EQ(root_windows[0], widget1->GetNativeView()->GetRootWindow());
views::Widget* widget2 =
- CreateTestWidget(ScreenUtil::GetSecondaryDisplay().bounds());
+ CreateTestWidget(display_manager()->GetSecondaryDisplay().bounds());
widget2->Show();
EXPECT_EQ(root_windows[1], widget2->GetNativeView()->GetRootWindow());
« no previous file with comments | « ash/display/window_tree_host_manager_unittest.cc ('k') | ash/mus/workspace/workspace_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698