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

Unified Diff: ash/root_window_controller_unittest.cc

Issue 2290473004: Rename ash desktop_background to wallpaper. (Closed)
Patch Set: Cleanup Created 4 years, 4 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/root_window_controller_unittest.cc
diff --git a/ash/root_window_controller_unittest.cc b/ash/root_window_controller_unittest.cc
index 24612821e8c3513980bd2094cb93975cb7117081..fab81b834386b2aa376427ef4bc73e24ed5ff5c9 100644
--- a/ash/root_window_controller_unittest.cc
+++ b/ash/root_window_controller_unittest.cc
@@ -300,28 +300,28 @@ TEST_P(RootWindowControllerTest, MoveWindows_LockWindowsInUnified) {
UpdateDisplay("500x500");
const int kLockScreenWindowId = 1000;
- const int kLockBackgroundWindowId = 1001;
+ const int kLockWallpaperWindowId = 1001;
RootWindowController* controller = Shell::GetPrimaryRootWindowController();
aura::Window* lock_container =
controller->GetContainer(kShellWindowId_LockScreenContainer);
- aura::Window* lock_background_container =
- controller->GetContainer(kShellWindowId_LockScreenBackgroundContainer);
+ aura::Window* lock_wallpaper_container =
+ controller->GetContainer(kShellWindowId_LockScreenWallpaperContainer);
views::Widget* lock_screen =
CreateModalWidgetWithParent(gfx::Rect(10, 10, 100, 100), lock_container);
lock_screen->GetNativeWindow()->set_id(kLockScreenWindowId);
lock_screen->SetFullscreen(true);
- views::Widget* lock_background = CreateModalWidgetWithParent(
- gfx::Rect(10, 10, 100, 100), lock_background_container);
- lock_background->GetNativeWindow()->set_id(kLockBackgroundWindowId);
+ views::Widget* lock_wallpaper = CreateModalWidgetWithParent(
+ gfx::Rect(10, 10, 100, 100), lock_wallpaper_container);
+ lock_wallpaper->GetNativeWindow()->set_id(kLockWallpaperWindowId);
ASSERT_EQ(lock_screen->GetNativeWindow(),
controller->GetRootWindow()->GetChildById(kLockScreenWindowId));
- ASSERT_EQ(lock_background->GetNativeWindow(),
- controller->GetRootWindow()->GetChildById(kLockBackgroundWindowId));
+ ASSERT_EQ(lock_wallpaper->GetNativeWindow(),
+ controller->GetRootWindow()->GetChildById(kLockWallpaperWindowId));
EXPECT_EQ("0,0 500x500", lock_screen->GetNativeWindow()->bounds().ToString());
// Switch to unified.
@@ -332,8 +332,8 @@ TEST_P(RootWindowControllerTest, MoveWindows_LockWindowsInUnified) {
ASSERT_EQ(lock_screen->GetNativeWindow(),
controller->GetRootWindow()->GetChildById(kLockScreenWindowId));
- ASSERT_EQ(lock_background->GetNativeWindow(),
- controller->GetRootWindow()->GetChildById(kLockBackgroundWindowId));
+ ASSERT_EQ(lock_wallpaper->GetNativeWindow(),
+ controller->GetRootWindow()->GetChildById(kLockWallpaperWindowId));
EXPECT_EQ("0,0 500x500", lock_screen->GetNativeWindow()->bounds().ToString());
// Switch to mirror.
@@ -344,8 +344,8 @@ TEST_P(RootWindowControllerTest, MoveWindows_LockWindowsInUnified) {
controller = Shell::GetPrimaryRootWindowController();
ASSERT_EQ(lock_screen->GetNativeWindow(),
controller->GetRootWindow()->GetChildById(kLockScreenWindowId));
- ASSERT_EQ(lock_background->GetNativeWindow(),
- controller->GetRootWindow()->GetChildById(kLockBackgroundWindowId));
+ ASSERT_EQ(lock_wallpaper->GetNativeWindow(),
+ controller->GetRootWindow()->GetChildById(kLockWallpaperWindowId));
EXPECT_EQ("0,0 500x500", lock_screen->GetNativeWindow()->bounds().ToString());
// Switch to unified.
@@ -356,8 +356,8 @@ TEST_P(RootWindowControllerTest, MoveWindows_LockWindowsInUnified) {
ASSERT_EQ(lock_screen->GetNativeWindow(),
controller->GetRootWindow()->GetChildById(kLockScreenWindowId));
- ASSERT_EQ(lock_background->GetNativeWindow(),
- controller->GetRootWindow()->GetChildById(kLockBackgroundWindowId));
+ ASSERT_EQ(lock_wallpaper->GetNativeWindow(),
+ controller->GetRootWindow()->GetChildById(kLockWallpaperWindowId));
EXPECT_EQ("0,0 500x500", lock_screen->GetNativeWindow()->bounds().ToString());
// Switch to single display.
@@ -369,8 +369,8 @@ TEST_P(RootWindowControllerTest, MoveWindows_LockWindowsInUnified) {
ASSERT_EQ(lock_screen->GetNativeWindow(),
controller->GetRootWindow()->GetChildById(kLockScreenWindowId));
- ASSERT_EQ(lock_background->GetNativeWindow(),
- controller->GetRootWindow()->GetChildById(kLockBackgroundWindowId));
+ ASSERT_EQ(lock_wallpaper->GetNativeWindow(),
+ controller->GetRootWindow()->GetChildById(kLockWallpaperWindowId));
EXPECT_EQ("0,0 600x500", lock_screen->GetNativeWindow()->bounds().ToString());
}

Powered by Google App Engine
This is Rietveld 408576698