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

Unified Diff: ui/app_list/views/app_list_main_view_unittest.cc

Issue 947903002: Change ContentsView::SetActivePage to use States rather than indexes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more_rebase Created 5 years, 9 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 | « ui/app_list/views/app_list_main_view.cc ('k') | ui/app_list/views/app_list_view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/app_list_main_view_unittest.cc
diff --git a/ui/app_list/views/app_list_main_view_unittest.cc b/ui/app_list/views/app_list_main_view_unittest.cc
index accc731b76c4abf51a03b35420199c0542709281..547b9b395a2d21b8546282d5fce2ca4c2d60f89b 100644
--- a/ui/app_list/views/app_list_main_view_unittest.cc
+++ b/ui/app_list/views/app_list_main_view_unittest.cc
@@ -278,8 +278,7 @@ TEST_F(AppListMainViewTest, MouseHoverToHighlight) {
// If experimental launcher, switch to All Apps page
if (app_list::switches::IsExperimentalAppListEnabled()) {
- GetContentsView()->SetActivePage(
- GetContentsView()->GetPageIndexForState(AppListModel::STATE_APPS));
+ GetContentsView()->SetActiveState(AppListModel::STATE_APPS);
GetContentsView()->Layout();
}
@@ -314,8 +313,7 @@ TEST_F(AppListMainViewTest, MAYBE_TapGestureToHighlight) {
// If experimental launcher, switch to All Apps page
if (app_list::switches::IsExperimentalAppListEnabled()) {
- GetContentsView()->SetActivePage(
- GetContentsView()->GetPageIndexForState(AppListModel::STATE_APPS));
+ GetContentsView()->SetActiveState(AppListModel::STATE_APPS);
GetContentsView()->Layout();
}
@@ -371,8 +369,7 @@ TEST_F(AppListMainViewTest, DragReparentItemOntoPageSwitcher) {
// Ensure we are on the apps grid view page.
app_list::ContentsView* contents_view = GetContentsView();
- contents_view->SetActivePage(
- contents_view->GetPageIndexForState(AppListModel::STATE_APPS));
+ contents_view->SetActiveState(AppListModel::STATE_APPS);
contents_view->Layout();
AppListItemView* folder_item_view = CreateAndOpenSingleItemFolder();
« no previous file with comments | « ui/app_list/views/app_list_main_view.cc ('k') | ui/app_list/views/app_list_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698