| 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/common/ash_switches.h" | |
| 11 #include "ash/common/session/session_state_delegate.h" | 10 #include "ash/common/session/session_state_delegate.h" |
| 12 #include "ash/common/shelf/shelf_layout_manager.h" | 11 #include "ash/common/shelf/shelf_layout_manager.h" |
| 13 #include "ash/common/shelf/shelf_widget.h" | 12 #include "ash/common/shelf/shelf_widget.h" |
| 14 #include "ash/common/shelf/wm_shelf.h" | 13 #include "ash/common/shelf/wm_shelf.h" |
| 15 #include "ash/common/shell_window_ids.h" | 14 #include "ash/common/shell_window_ids.h" |
| 16 #include "ash/common/wallpaper/wallpaper_widget_controller.h" | 15 #include "ash/common/wallpaper/wallpaper_widget_controller.h" |
| 17 #include "ash/common/wm_root_window_controller.h" | 16 #include "ash/common/wm_root_window_controller.h" |
| 18 #include "ash/common/wm_shell.h" | 17 #include "ash/common/wm_shell.h" |
| 19 #include "ash/common/wm_window.h" | 18 #include "ash/common/wm_window.h" |
| 20 #include "ash/display/mouse_cursor_event_filter.h" | 19 #include "ash/display/mouse_cursor_event_filter.h" |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 private: | 507 private: |
| 509 DISALLOW_COPY_AND_ASSIGN(ShellTest2); | 508 DISALLOW_COPY_AND_ASSIGN(ShellTest2); |
| 510 }; | 509 }; |
| 511 | 510 |
| 512 TEST_F(ShellTest2, DontCrashWhenWindowDeleted) { | 511 TEST_F(ShellTest2, DontCrashWhenWindowDeleted) { |
| 513 window_.reset(new aura::Window(NULL)); | 512 window_.reset(new aura::Window(NULL)); |
| 514 window_->Init(ui::LAYER_NOT_DRAWN); | 513 window_->Init(ui::LAYER_NOT_DRAWN); |
| 515 } | 514 } |
| 516 | 515 |
| 517 } // namespace ash | 516 } // namespace ash |
| OLD | NEW |