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

Unified Diff: ash/wm/window_state_unittest.cc

Issue 2370913002: Removes AshTestBase::SupportsHostWindowResize (Closed)
Patch Set: feedback Created 4 years, 3 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/wm/window_positioner_unittest.cc ('k') | ash/wm/workspace/workspace_layout_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_state_unittest.cc
diff --git a/ash/wm/window_state_unittest.cc b/ash/wm/window_state_unittest.cc
index 1a1bf33c1d494ffb4968e091beabfef8aeb84649..956cb4b48c1c11050840d071dadf26dae252a2ca 100644
--- a/ash/wm/window_state_unittest.cc
+++ b/ash/wm/window_state_unittest.cc
@@ -107,9 +107,6 @@ TEST_P(WindowStateTest, SnapWindowBasic) {
// Test how the minimum and maximum size specified by the aura::WindowDelegate
// affect snapping.
TEST_P(WindowStateTest, SnapWindowMinimumSize) {
- if (!SupportsHostWindowResize())
- return;
-
UpdateDisplay("0+0-600x900");
const gfx::Rect kWorkAreaBounds =
display::Screen::GetScreen()->GetPrimaryDisplay().work_area();
@@ -142,9 +139,6 @@ TEST_P(WindowStateTest, SnapWindowMinimumSize) {
// Test that the minimum size specified by aura::WindowDelegate gets respected.
TEST_P(WindowStateTest, TestRespectMinimumSize) {
- if (!SupportsHostWindowResize())
- return;
-
UpdateDisplay("0+0-1024x768");
aura::test::TestWindowDelegate delegate;
@@ -172,9 +166,6 @@ TEST_P(WindowStateTest, TestRespectMinimumSize) {
// Test that the minimum window size specified by aura::WindowDelegate does not
// exceed the screen size.
TEST_P(WindowStateTest, TestIgnoreTooBigMinimumSize) {
- if (!SupportsHostWindowResize())
- return;
-
UpdateDisplay("0+0-1024x768");
const gfx::Size work_area_size =
display::Screen::GetScreen()->GetPrimaryDisplay().work_area().size();
@@ -203,9 +194,6 @@ TEST_P(WindowStateTest, TestIgnoreTooBigMinimumSize) {
// Test that setting the bounds of a snapped window keeps its snapped.
TEST_P(WindowStateTest, SnapWindowSetBounds) {
- if (!SupportsHostWindowResize())
- return;
-
UpdateDisplay("0+0-900x600");
const gfx::Rect kWorkAreaBounds =
display::Screen::GetScreen()->GetPrimaryDisplay().work_area();
@@ -321,9 +309,6 @@ TEST_P(WindowStateTest, StateSwapRestore) {
// Tests that a window that had same bounds as the work area shrinks after the
// window is maximized and then restored.
TEST_P(WindowStateTest, RestoredWindowBoundsShrink) {
- if (!SupportsHostWindowResize())
- return;
-
UpdateDisplay("0+0-600x900");
std::unique_ptr<aura::Window> window(CreateTestWindowInShellWithId(0));
WindowState* window_state = GetWindowState(window.get());
@@ -343,8 +328,6 @@ TEST_P(WindowStateTest, RestoredWindowBoundsShrink) {
}
TEST_P(WindowStateTest, DoNotResizeMaximizedWindowInFullscreen) {
- if (!SupportsHostWindowResize())
- return;
const int height_offset = GetMdMaximizedWindowHeightOffset();
std::unique_ptr<aura::Window> maximized(CreateTestWindowInShellWithId(0));
« no previous file with comments | « ash/wm/window_positioner_unittest.cc ('k') | ash/wm/workspace/workspace_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698