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

Unified Diff: ash/test/launcher_view_test_api.cc

Issue 10905201: Move app list (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review issues Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/launcher/launcher_view_unittest.cc ('k') | ash/wm/panel_layout_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/launcher_view_test_api.cc
diff --git a/ash/test/launcher_view_test_api.cc b/ash/test/launcher_view_test_api.cc
index f6a418a752e3353a187d2c8b8bcd605ecfe7f177..8d2885bb33e457543e09fe437244946bf20afd4d 100644
--- a/ash/test/launcher_view_test_api.cc
+++ b/ash/test/launcher_view_test_api.cc
@@ -5,6 +5,7 @@
#include "ash/test/launcher_view_test_api.h"
#include "ash/launcher/launcher_button.h"
+#include "ash/launcher/launcher_model.h"
#include "ash/launcher/launcher_view.h"
#include "ash/launcher/overflow_button.h"
#include "base/message_loop.h"
@@ -48,7 +49,7 @@ int LauncherViewTestAPI::GetButtonCount() {
internal::LauncherButton* LauncherViewTestAPI::GetButton(int index) {
// App list button is not a LauncherButton.
- if (index == GetButtonCount() - 1)
+ if (launcher_view_->model_->items()[index].type == ash::TYPE_APP_LIST)
return NULL;
return static_cast<internal::LauncherButton*>(
« no previous file with comments | « ash/launcher/launcher_view_unittest.cc ('k') | ash/wm/panel_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698