Chromium Code Reviews| Index: ash/display/display_controller_unittest.cc |
| diff --git a/ash/display/display_controller_unittest.cc b/ash/display/display_controller_unittest.cc |
| index cb2bcb2542c20d7baee41447332622d73a3a1263..cfc6109b611f120f67d535ed677136f7698cd3c2 100644 |
| --- a/ash/display/display_controller_unittest.cc |
| +++ b/ash/display/display_controller_unittest.cc |
| @@ -23,6 +23,7 @@ |
| #include "ui/aura/client/focus_change_observer.h" |
| #include "ui/aura/client/focus_client.h" |
| #include "ui/aura/env.h" |
| +#include "ui/aura/test/test_window_delegate.h" |
| #include "ui/aura/window_tracker.h" |
| #include "ui/aura/window_tree_host.h" |
| #include "ui/events/event_handler.h" |
| @@ -554,7 +555,10 @@ TEST_F(DisplayControllerTest, MirrorToDockedWithFullscreen) { |
| return; |
| // Creates windows to catch activation change event. |
| - scoped_ptr<aura::Window> w1(CreateTestWindowInShellWithId(1)); |
| + scoped_ptr<aura::Window> w1(CreateTestWindowInShellWithDelegate( |
| + aura::test::TestWindowDelegate::CreateSelfDestroyingDelegate(), |
| + 1, |
| + gfx::Rect())); |
|
oshima
2014/09/11 17:25:49
what kind of error you had?
jackhou1
2014/09/11 18:02:18
Basically they'd fail because CanMaximize is false
|
| w1->Focus(); |
| // Docked mode. |