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

Unified Diff: ash/extended_desktop_unittest.cc

Issue 2739553005: Moves maintaining root_window_for_new_windows_ to Shell (Closed)
Patch Set: remove ash:: Created 3 years, 9 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/drag_drop/drag_drop_tracker_unittest.cc ('k') | ash/magnifier/magnification_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/extended_desktop_unittest.cc
diff --git a/ash/extended_desktop_unittest.cc b/ash/extended_desktop_unittest.cc
index 8dc73cbabb8bc3dc38076fc7f9f57a8c78da2868..a0f2c5052afe7e7cc11221f59c38d1aa76b3cf11 100644
--- a/ash/extended_desktop_unittest.cc
+++ b/ash/extended_desktop_unittest.cc
@@ -224,7 +224,7 @@ TEST_F(ExtendedDesktopTest, SystemModal) {
views::Widget* widget_on_1st = CreateTestWidget(gfx::Rect(10, 10, 100, 100));
EXPECT_TRUE(wm::IsActiveWindow(widget_on_1st->GetNativeView()));
EXPECT_EQ(root_windows[0], widget_on_1st->GetNativeView()->GetRootWindow());
- EXPECT_EQ(root_windows[0], Shell::GetTargetRootWindow());
+ EXPECT_EQ(root_windows[0], Shell::GetRootWindowForNewWindows());
// Open system modal. Make sure it's on 2nd root window and active.
views::Widget* modal_widget = views::Widget::CreateWindowWithContextAndBounds(
@@ -233,7 +233,7 @@ TEST_F(ExtendedDesktopTest, SystemModal) {
modal_widget->Show();
EXPECT_TRUE(wm::IsActiveWindow(modal_widget->GetNativeView()));
EXPECT_EQ(root_windows[1], modal_widget->GetNativeView()->GetRootWindow());
- EXPECT_EQ(root_windows[1], Shell::GetTargetRootWindow());
+ EXPECT_EQ(root_windows[1], Shell::GetRootWindowForNewWindows());
ui::test::EventGenerator& event_generator(GetEventGenerator());
@@ -241,14 +241,14 @@ TEST_F(ExtendedDesktopTest, SystemModal) {
event_generator.MoveMouseToCenterOf(widget_on_1st->GetNativeView());
event_generator.ClickLeftButton();
EXPECT_TRUE(wm::IsActiveWindow(modal_widget->GetNativeView()));
- EXPECT_EQ(root_windows[1], Shell::GetTargetRootWindow());
+ EXPECT_EQ(root_windows[1], Shell::GetRootWindowForNewWindows());
// Close system modal and so clicking a widget should work now.
modal_widget->Close();
event_generator.MoveMouseToCenterOf(widget_on_1st->GetNativeView());
event_generator.ClickLeftButton();
EXPECT_TRUE(wm::IsActiveWindow(widget_on_1st->GetNativeView()));
- EXPECT_EQ(root_windows[0], Shell::GetTargetRootWindow());
+ EXPECT_EQ(root_windows[0], Shell::GetRootWindowForNewWindows());
}
TEST_F(ExtendedDesktopTest, TestCursor) {
« no previous file with comments | « ash/drag_drop/drag_drop_tracker_unittest.cc ('k') | ash/magnifier/magnification_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698