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/launcher/launcher.h" | 5 #include "ash/launcher/launcher.h" |
6 #include "ash/launcher/launcher_button.h" | 6 #include "ash/launcher/launcher_button.h" |
7 #include "ash/launcher/launcher_model.h" | 7 #include "ash/launcher/launcher_model.h" |
8 #include "ash/launcher/launcher_view.h" | 8 #include "ash/launcher/launcher_view.h" |
| 9 |
9 #include "ash/shelf/shelf_widget.h" | 10 #include "ash/shelf/shelf_widget.h" |
10 #include "ash/shell.h" | 11 #include "ash/shell.h" |
11 #include "ash/test/ash_test_base.h" | 12 #include "ash/test/ash_test_base.h" |
12 #include "ash/test/launcher_test_api.h" | 13 #include "ash/test/launcher_test_api.h" |
13 #include "ash/test/launcher_view_test_api.h" | 14 #include "ash/test/launcher_view_test_api.h" |
14 #include "ash/wm/window_util.h" | 15 #include "ash/wm/window_util.h" |
15 #include "ui/aura/root_window.h" | 16 #include "ui/aura/root_window.h" |
16 #include "ui/gfx/display.h" | 17 #include "ui/gfx/display.h" |
17 #include "ui/gfx/screen.h" | 18 #include "ui/gfx/screen.h" |
18 #include "ui/views/corewm/corewm_switches.h" | 19 #include "ui/views/corewm/corewm_switches.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // Removes the first item in main launcher view. | 143 // Removes the first item in main launcher view. |
143 launcher_model()->RemoveItemAt( | 144 launcher_model()->RemoveItemAt( |
144 launcher_model()->ItemIndexByID(first_item_id)); | 145 launcher_model()->ItemIndexByID(first_item_id)); |
145 | 146 |
146 // Waits for all transitions to finish and there should be no crash. | 147 // Waits for all transitions to finish and there should be no crash. |
147 test_api()->RunMessageLoopUntilAnimationsDone(); | 148 test_api()->RunMessageLoopUntilAnimationsDone(); |
148 EXPECT_FALSE(launcher()->IsShowingOverflowBubble()); | 149 EXPECT_FALSE(launcher()->IsShowingOverflowBubble()); |
149 } | 150 } |
150 | 151 |
151 } // namespace ash | 152 } // namespace ash |
OLD | NEW |