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

Unified Diff: ash/mus/test/wm_test_base.cc

Issue 2391153002: Converts most of WorkspaceLayoutManager tests to use common code (Closed)
Patch Set: merge Created 4 years, 2 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/test/ash_test_impl_mus.cc ('k') | ash/system/chromeos/power/power_event_observer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/test/wm_test_base.cc
diff --git a/ash/mus/test/wm_test_base.cc b/ash/mus/test/wm_test_base.cc
index afc950ebc9bc6d6515f616597aecb2114461685c..c45eb6e73457fd27f8e573754940c7f90f90f533 100644
--- a/ash/mus/test/wm_test_base.cc
+++ b/ash/mus/test/wm_test_base.cc
@@ -7,6 +7,7 @@
#include <algorithm>
#include <vector>
+#include "ash/mus/bridge/wm_window_mus_test_api.h"
#include "ash/mus/root_window_controller.h"
#include "ash/mus/test/wm_test_helper.h"
#include "ash/mus/window_manager.h"
@@ -117,6 +118,8 @@ ui::Window* WmTestBase::CreateTestWindow(const gfx::Rect& bounds,
->window_manager()
->NewTopLevelWindow(&properties);
window->SetVisible(true);
+ // Most tests expect a minimum size of 0x0.
+ WmWindowMusTestApi(WmWindowMus::Get(window)).set_use_empty_minimum_size(true);
return window;
}
« no previous file with comments | « ash/mus/test/ash_test_impl_mus.cc ('k') | ash/system/chromeos/power/power_event_observer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698