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

Side by Side Diff: ash/launcher/launcher_unittest.cc

Issue 23606016: Refactor LauncherItemController and LauncherItemDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix for unittest.. Created 7 years, 2 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 unified diff | Download patch
« no previous file with comments | « ash/launcher/launcher_item_delegate_manager.cc ('k') | ash/launcher/launcher_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
10 #include "ash/shelf/shelf_widget.h" 9 #include "ash/shelf/shelf_widget.h"
11 #include "ash/shell.h" 10 #include "ash/shell.h"
12 #include "ash/test/ash_test_base.h" 11 #include "ash/test/ash_test_base.h"
13 #include "ash/test/launcher_test_api.h" 12 #include "ash/test/launcher_test_api.h"
14 #include "ash/test/launcher_view_test_api.h" 13 #include "ash/test/launcher_view_test_api.h"
15 #include "ash/wm/window_util.h" 14 #include "ash/wm/window_util.h"
16 #include "ui/aura/root_window.h" 15 #include "ui/aura/root_window.h"
17 #include "ui/gfx/display.h" 16 #include "ui/gfx/display.h"
18 #include "ui/gfx/screen.h" 17 #include "ui/gfx/screen.h"
19 #include "ui/views/corewm/corewm_switches.h" 18 #include "ui/views/corewm/corewm_switches.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Removes the first item in main launcher view. 142 // Removes the first item in main launcher view.
144 launcher_model()->RemoveItemAt( 143 launcher_model()->RemoveItemAt(
145 launcher_model()->ItemIndexByID(first_item_id)); 144 launcher_model()->ItemIndexByID(first_item_id));
146 145
147 // Waits for all transitions to finish and there should be no crash. 146 // Waits for all transitions to finish and there should be no crash.
148 test_api()->RunMessageLoopUntilAnimationsDone(); 147 test_api()->RunMessageLoopUntilAnimationsDone();
149 EXPECT_FALSE(launcher()->IsShowingOverflowBubble()); 148 EXPECT_FALSE(launcher()->IsShowingOverflowBubble());
150 } 149 }
151 150
152 } // namespace ash 151 } // namespace ash
OLDNEW
« no previous file with comments | « ash/launcher/launcher_item_delegate_manager.cc ('k') | ash/launcher/launcher_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698