OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ash/shell.h" | 5 #include "ash/shell.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/ash_switches.h" | 10 #include "ash/ash_switches.h" |
11 #include "ash/desktop_background/desktop_background_widget_controller.h" | 11 #include "ash/desktop_background/desktop_background_widget_controller.h" |
12 #include "ash/launcher/launcher.h" | 12 #include "ash/launcher/launcher.h" |
13 #include "ash/root_window_controller.h" | 13 #include "ash/root_window_controller.h" |
14 #include "ash/session_state_delegate.h" | 14 #include "ash/session_state_delegate.h" |
15 #include "ash/shelf/shelf_layout_manager.h" | 15 #include "ash/shelf/shelf_layout_manager.h" |
16 #include "ash/shelf/shelf_widget.h" | 16 #include "ash/shelf/shelf_widget.h" |
17 #include "ash/shell_window_ids.h" | 17 #include "ash/shell_window_ids.h" |
18 #include "ash/test/ash_test_base.h" | 18 #include "ash/test/ash_test_base.h" |
19 #include "ash/wm/root_window_layout_manager.h" | 19 #include "ash/wm/root_window_layout_manager.h" |
20 #include "ash/wm/window_util.h" | 20 #include "ash/wm/window_util.h" |
21 #include "base/utf_string_conversions.h" | 21 #include "base/strings/utf_string_conversions.h" |
22 #include "ui/aura/client/aura_constants.h" | 22 #include "ui/aura/client/aura_constants.h" |
23 #include "ui/aura/root_window.h" | 23 #include "ui/aura/root_window.h" |
24 #include "ui/aura/window.h" | 24 #include "ui/aura/window.h" |
25 #include "ui/gfx/size.h" | 25 #include "ui/gfx/size.h" |
26 #include "ui/views/widget/widget.h" | 26 #include "ui/views/widget/widget.h" |
27 #include "ui/views/widget/widget_delegate.h" | 27 #include "ui/views/widget/widget_delegate.h" |
28 #include "ui/views/window/dialog_delegate.h" | 28 #include "ui/views/window/dialog_delegate.h" |
29 | 29 |
30 using aura::RootWindow; | 30 using aura::RootWindow; |
31 | 31 |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 private: | 441 private: |
442 DISALLOW_COPY_AND_ASSIGN(ShellTest2); | 442 DISALLOW_COPY_AND_ASSIGN(ShellTest2); |
443 }; | 443 }; |
444 | 444 |
445 TEST_F(ShellTest2, DontCrashWhenWindowDeleted) { | 445 TEST_F(ShellTest2, DontCrashWhenWindowDeleted) { |
446 window_.reset(new aura::Window(NULL)); | 446 window_.reset(new aura::Window(NULL)); |
447 window_->Init(ui::LAYER_NOT_DRAWN); | 447 window_->Init(ui::LAYER_NOT_DRAWN); |
448 } | 448 } |
449 | 449 |
450 } // namespace ash | 450 } // namespace ash |
OLD | NEW |