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

Unified Diff: ash/accelerators/accelerator_controller_unittest.cc

Issue 557693002: [Ash] Only snap windows that can maximize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix up other tests. Created 6 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
Index: ash/accelerators/accelerator_controller_unittest.cc
diff --git a/ash/accelerators/accelerator_controller_unittest.cc b/ash/accelerators/accelerator_controller_unittest.cc
index 31ebf9b4e41372d262315ef9e27db36153c2af10..5ca644ede6f791cbf43c01c909fabff65bd158c8 100644
--- a/ash/accelerators/accelerator_controller_unittest.cc
+++ b/ash/accelerators/accelerator_controller_unittest.cc
@@ -423,8 +423,10 @@ TEST_F(AcceleratorControllerTest, IsRegistered) {
}
TEST_F(AcceleratorControllerTest, WindowSnap) {
- scoped_ptr<aura::Window> window(
- CreateTestWindowInShellWithBounds(gfx::Rect(5, 5, 20, 20)));
+ scoped_ptr<aura::Window> window(CreateTestWindowInShellWithDelegate(
+ aura::test::TestWindowDelegate::CreateSelfDestroyingDelegate(),
+ 0,
+ gfx::Rect(5, 5, 20, 20)));
const ui::Accelerator dummy;
wm::WindowState* window_state = wm::GetWindowState(window.get());
« no previous file with comments | « no previous file | ash/display/display_controller_unittest.cc » ('j') | ash/display/display_controller_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698