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

Unified Diff: components/exo/shell_surface_unittest.cc

Issue 2870613002: Use defualt shadow elevation. (Closed)
Patch Set: update unit tests to use DEFAULT Created 3 years, 7 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') | no next file » | 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 c0f63125418fa583dcdfbd17c277f93681a96308..d92a731337d06228c5343c48e0b47c89e6bb3293 100644
--- a/components/exo/shell_surface_unittest.cc
+++ b/components/exo/shell_surface_unittest.cc
@@ -624,7 +624,7 @@ TEST_F(ShellSurfaceTest, SurfaceShadow) {
shell_surface->SetRectangularSurfaceShadow(gfx::Rect(10, 10, 100, 100));
surface->Commit();
- EXPECT_EQ(wm::ShadowElevation::MEDIUM, GetShadowElevation(window));
+ EXPECT_EQ(wm::ShadowElevation::DEFAULT, GetShadowElevation(window));
EXPECT_TRUE(shadow->layer()->visible());
// For surface shadow, the underlay is placed at the bottom of shell surfaces.
@@ -701,7 +701,7 @@ TEST_F(ShellSurfaceTest, NonSurfaceShadow) {
shell_surface->SetRectangularShadowEnabled(true);
surface->Commit();
- EXPECT_EQ(wm::ShadowElevation::MEDIUM, GetShadowElevation(window));
+ EXPECT_EQ(wm::ShadowElevation::DEFAULT, GetShadowElevation(window));
EXPECT_TRUE(shadow->layer()->visible());
// For no surface shadow, both of underlay and overlay should be stacked
@@ -747,7 +747,7 @@ TEST_F(ShellSurfaceTest, ShadowWithStateChange) {
shell_surface->SetRectangularSurfaceShadow(shadow_bounds);
surface->Commit();
- EXPECT_EQ(wm::ShadowElevation::MEDIUM, GetShadowElevation(window));
+ EXPECT_EQ(wm::ShadowElevation::DEFAULT, GetShadowElevation(window));
// Shadow overlay bounds.
EXPECT_TRUE(shadow->layer()->visible());
« no previous file with comments | « components/exo/shell_surface.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698