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

Unified Diff: components/exo/shell_surface_unittest.cc

Issue 2189073003: Add configuration_changed event and set_background_opacity request. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated interface comment Created 4 years, 5 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: components/exo/shell_surface_unittest.cc
diff --git a/components/exo/shell_surface_unittest.cc b/components/exo/shell_surface_unittest.cc
index 483ecc8d768b16014cde2ad48e79201b374c40c9..746184183ca560c94c5060169918a7dd8ae30e21 100644
--- a/components/exo/shell_surface_unittest.cc
+++ b/components/exo/shell_surface_unittest.cc
@@ -43,6 +43,8 @@ uint32_t ConfigureFullscreen(uint32_t serial,
return serial;
}
+} // namespace
+
TEST_F(ShellSurfaceTest, AcknowledgeConfigure) {
gfx::Size buffer_size(32, 32);
std::unique_ptr<Buffer> buffer(
@@ -599,6 +601,9 @@ TEST_F(ShellSurfaceTest, ShadowStartMaximized) {
surface->Commit();
EXPECT_FALSE(wm::ShadowController::GetShadowForWindow(window));
+ // Underlay should be created even without shadow.
+ ASSERT_TRUE(shell_surface->shadow_underlay_);
+ EXPECT_TRUE(shell_surface->shadow_underlay_->IsVisible());
// Restore the window and make sure the shadow is created, visible and
// has the latest bounds.
@@ -644,5 +649,4 @@ TEST_F(ShellSurfaceTest, ToggleFullscreen) {
shell_surface->GetWidget()->GetWindowBoundsInScreen().width());
}
-} // namespace
} // namespace exo

Powered by Google App Engine
This is Rietveld 408576698