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

Unified Diff: ash/wm/system_modal_container_layout_manager_unittest.cc

Issue 2320273002: Refactors DimWindow and moves to ash/common (Closed)
Patch Set: WmWindowUserData test Created 4 years, 3 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/wm/system_modal_container_layout_manager_unittest.cc
diff --git a/ash/wm/system_modal_container_layout_manager_unittest.cc b/ash/wm/system_modal_container_layout_manager_unittest.cc
index 00226c7b4977246343790f21dbfbb2c248ec6b0c..08f54427a7729ab59611092ee3926ecd3be58116 100644
--- a/ash/wm/system_modal_container_layout_manager_unittest.cc
+++ b/ash/wm/system_modal_container_layout_manager_unittest.cc
@@ -52,7 +52,7 @@ bool AllRootWindowsHaveModalBackgroundsForContainer(int container_id) {
iter != containers.end(); ++iter) {
has_modal_screen &= static_cast<SystemModalContainerLayoutManager*>(
(*iter)->layout_manager())
- ->has_modal_background();
+ ->has_window_dimmer();
}
return has_modal_screen;
}
@@ -775,19 +775,19 @@ TEST_F(SystemModalContainerLayoutManagerTest, VisibilityChange) {
modal_window.get());
EXPECT_FALSE(WmShell::Get()->IsSystemModalWindowOpen());
- EXPECT_FALSE(layout_manager->has_modal_background());
+ EXPECT_FALSE(layout_manager->has_window_dimmer());
modal_window->Show();
EXPECT_TRUE(WmShell::Get()->IsSystemModalWindowOpen());
- EXPECT_TRUE(layout_manager->has_modal_background());
+ EXPECT_TRUE(layout_manager->has_window_dimmer());
modal_window->Hide();
EXPECT_FALSE(WmShell::Get()->IsSystemModalWindowOpen());
- EXPECT_FALSE(layout_manager->has_modal_background());
+ EXPECT_FALSE(layout_manager->has_window_dimmer());
modal_window->Show();
EXPECT_TRUE(WmShell::Get()->IsSystemModalWindowOpen());
- EXPECT_TRUE(layout_manager->has_modal_background());
+ EXPECT_TRUE(layout_manager->has_window_dimmer());
}
namespace {

Powered by Google App Engine
This is Rietveld 408576698