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

Unified Diff: ash/mus/workspace/workspace_layout_manager_unittest.cc

Issue 2227643003: Converts mash to use the common non-client frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@native_widget_mus_fix
Patch Set: feedback Created 4 years, 4 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 | « ash/mus/window_manager.cc ('k') | mash/example/window_type_launcher/window_type_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/workspace/workspace_layout_manager_unittest.cc
diff --git a/ash/mus/workspace/workspace_layout_manager_unittest.cc b/ash/mus/workspace/workspace_layout_manager_unittest.cc
index bf737d5c82e1db902dc9257996a3858c39532eb5..5c2f5d7d6c010e2055897729d9308c6e83174109 100644
--- a/ash/mus/workspace/workspace_layout_manager_unittest.cc
+++ b/ash/mus/workspace/workspace_layout_manager_unittest.cc
@@ -14,6 +14,7 @@
#include "ash/common/wm_root_window_controller_observer.h"
#include "ash/mus/bridge/wm_root_window_controller_mus.h"
#include "ash/mus/bridge/wm_window_mus.h"
+#include "ash/mus/bridge/wm_window_mus_test_api.h"
#include "ash/mus/test/wm_test_base.h"
#include "base/run_loop.h"
#include "services/ui/public/cpp/tests/test_window.h"
@@ -87,6 +88,7 @@ using WorkspaceLayoutManagerTest = WmTestBase;
TEST_F(WorkspaceLayoutManagerTest, RestoreFromMinimizeKeepsRestore) {
ui::Window* mus_window = CreateTestWindow(gfx::Rect(1, 2, 3, 4));
WmWindow* window = WmWindowMus::Get(mus_window);
+ WmWindowMusTestApi(window).set_use_empty_minimum_size(true);
gfx::Rect bounds(10, 15, 25, 35);
window->SetBounds(bounds);
@@ -697,11 +699,12 @@ TEST_F(WorkspaceLayoutManagerSoloTest, MaximizeResetsRestoreBounds) {
}
// Verifies that the restore bounds do not get reset when restoring to a
-// maximzied state from a minimized state.
+// maximized state from a minimized state.
TEST_F(WorkspaceLayoutManagerSoloTest,
BoundsAfterRestoringToMaximizeFromMinimize) {
ui::Window* mus_window = CreateTestWindow(gfx::Rect(1, 2, 3, 4));
WmWindow* window = WmWindowMus::Get(mus_window);
+ WmWindowMusTestApi(window).set_use_empty_minimum_size(true);
gfx::Rect bounds(10, 15, 25, 35);
window->SetBounds(bounds);
« no previous file with comments | « ash/mus/window_manager.cc ('k') | mash/example/window_type_launcher/window_type_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698