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

Unified Diff: components/exo/shell_surface_unittest.cc

Issue 2596743002: Replace WM shadow types (on/off) and styles (small/inactive/active) (Closed)
Patch Set: one more mechanical change Created 3 years, 11 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 | « components/exo/shell_surface.cc ('k') | ui/keyboard/content/keyboard_ui_content.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/shell_surface_unittest.cc
diff --git a/components/exo/shell_surface_unittest.cc b/components/exo/shell_surface_unittest.cc
index 303e3704625b887a3ad0aa9669ec93bed0700845..b6a660aedae38b5158354d7efdabc4937237efd3 100644
--- a/components/exo/shell_surface_unittest.cc
+++ b/components/exo/shell_surface_unittest.cc
@@ -550,14 +550,14 @@ TEST_F(ShellSurfaceTest, Shadow) {
shell_surface->SetRectangularShadow(false);
surface->Commit();
- EXPECT_EQ(wm::SHADOW_TYPE_NONE, wm::GetShadowType(window));
+ EXPECT_EQ(wm::ShadowElevation::NONE, wm::GetShadowElevation(window));
EXPECT_FALSE(shadow->layer()->visible());
// 6) This should enable shadow.
shell_surface->SetRectangularShadow(true);
surface->Commit();
- EXPECT_EQ(wm::SHADOW_TYPE_RECTANGULAR, wm::GetShadowType(window));
+ EXPECT_EQ(wm::ShadowElevation::MEDIUM, wm::GetShadowElevation(window));
EXPECT_TRUE(shadow->layer()->visible());
}
@@ -588,7 +588,7 @@ TEST_F(ShellSurfaceTest, ShadowWithStateChange) {
shell_surface->SetRectangularShadow(true);
shell_surface->SetRectangularShadowContentBounds(shadow_bounds);
surface->Commit();
- EXPECT_EQ(wm::SHADOW_TYPE_RECTANGULAR, wm::GetShadowType(window));
+ EXPECT_EQ(wm::ShadowElevation::MEDIUM, wm::GetShadowElevation(window));
// Shadow overlay bounds.
EXPECT_TRUE(shadow->layer()->visible());
« no previous file with comments | « components/exo/shell_surface.cc ('k') | ui/keyboard/content/keyboard_ui_content.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698