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

Unified Diff: components/exo/shell_surface_unittest.cc

Issue 2517833003: Allow to create ARC++ windows minimized on startup. (Closed)
Patch Set: Added a test. Created 4 years, 1 month 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 575dafc6d6f9d26540c2bc94ec67a8651d594d87..3543d762b4e884d6fa04bb98429c5fab8a7cc17e 100644
--- a/components/exo/shell_surface_unittest.cc
+++ b/components/exo/shell_surface_unittest.cc
@@ -132,6 +132,17 @@ TEST_F(ShellSurfaceTest, Minimize) {
EXPECT_TRUE(shell_surface->GetWidget()->IsMinimized());
}
+TEST_F(ShellSurfaceTest, Minimize_BeforeSurfaceCommit) {
reveman 2016/11/22 08:26:49 nit: s/Minimize_BeforeSurfaceCommit/InitiallyMinim
mtomasz 2016/11/22 08:39:34 Done.
+ gfx::Size buffer_size(256, 256);
+ std::unique_ptr<Buffer> buffer(
reveman 2016/11/22 08:26:48 Can you attach this buffer and commit after callin
mtomasz 2016/11/22 08:39:34 Done.
+ new Buffer(exo_test_helper()->CreateGpuMemoryBuffer(buffer_size)));
+ std::unique_ptr<Surface> surface(new Surface);
+ std::unique_ptr<ShellSurface> shell_surface(new ShellSurface(surface.get()));
+
+ shell_surface->Minimize();
+ EXPECT_TRUE(shell_surface->GetWidget()->IsMinimized());
+}
+
TEST_F(ShellSurfaceTest, Restore) {
gfx::Size buffer_size(256, 256);
std::unique_ptr<Buffer> buffer(
« 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