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

Unified Diff: ash/frame/custom_frame_view_ash_unittest.cc

Issue 2905383003: (fix landed) Reland of name MaximizeMode to TabletMode (Closed)
Patch Set: Created 3 years, 7 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/frame/caption_buttons/frame_caption_button_container_view_unittest.cc ('k') | ash/frame/header_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/frame/custom_frame_view_ash_unittest.cc
diff --git a/ash/frame/custom_frame_view_ash_unittest.cc b/ash/frame/custom_frame_view_ash_unittest.cc
index 0d797e777a18c95c0b813093e7bb49e20932d6f6..84b4508f3a2cb94874eace4db48e3c572861911f 100644
--- a/ash/frame/custom_frame_view_ash_unittest.cc
+++ b/ash/frame/custom_frame_view_ash_unittest.cc
@@ -13,7 +13,7 @@
#include "ash/shell_port.h"
#include "ash/test/ash_test_base.h"
#include "ash/test/test_session_state_delegate.h"
-#include "ash/wm/maximize_mode/maximize_mode_controller.h"
+#include "ash/wm/tablet_mode/tablet_mode_controller.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/image/image_skia.h"
#include "ui/gfx/image/image_unittest_util.h"
@@ -202,7 +202,7 @@
EXPECT_FALSE(custom_frame_view->GetAvatarIconViewForTest());
}
-// The visibility of the size button is updated when maximize mode is toggled.
+// The visibility of the size button is updated when tablet mode is toggled.
// Verify that the layout of the HeaderView is updated for the size button's
// new visibility.
TEST_F(CustomFrameViewAshTest, HeaderViewNotifiedOfChildSizeChange) {
@@ -211,14 +211,12 @@
const gfx::Rect initial =
delegate->GetFrameCaptionButtonContainerViewBounds();
- Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
- true);
+ Shell::Get()->tablet_mode_controller()->EnableTabletModeWindowManager(true);
delegate->EndFrameCaptionButtonContainerViewAnimations();
- const gfx::Rect maximize_mode_bounds =
+ const gfx::Rect tablet_mode_bounds =
delegate->GetFrameCaptionButtonContainerViewBounds();
- EXPECT_GT(initial.width(), maximize_mode_bounds.width());
- Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
- false);
+ EXPECT_GT(initial.width(), tablet_mode_bounds.width());
+ Shell::Get()->tablet_mode_controller()->EnableTabletModeWindowManager(false);
delegate->EndFrameCaptionButtonContainerViewAnimations();
const gfx::Rect after_restore =
delegate->GetFrameCaptionButtonContainerViewBounds();
« no previous file with comments | « ash/frame/caption_buttons/frame_caption_button_container_view_unittest.cc ('k') | ash/frame/header_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698