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

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

Issue 305013014: Disable folder UI when app sync is disabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 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/apps_grid_view.cc ('k') | ui/app_list/views/folder_header_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/apps_grid_view_unittest.cc
diff --git a/ui/app_list/views/apps_grid_view_unittest.cc b/ui/app_list/views/apps_grid_view_unittest.cc
index 181f51ce3d1267019c0b6050201a989d68ef16a8..95e4f855ced0d65a0fbe4e9abaf3f674bc3a0f9f 100644
--- a/ui/app_list/views/apps_grid_view_unittest.cc
+++ b/ui/app_list/views/apps_grid_view_unittest.cc
@@ -106,6 +106,7 @@ class AppsGridViewTest : public views::ViewsTestBase {
virtual void SetUp() OVERRIDE {
views::ViewsTestBase::SetUp();
model_.reset(new AppListTestModel);
+ model_->SetFoldersEnabled(true);
apps_grid_view_.reset(new AppsGridView(NULL));
apps_grid_view_->SetLayout(kIconDimension, kCols, kRows);
@@ -280,7 +281,7 @@ TEST_F(AppsGridViewTest, RemoveSelectedLastApp) {
}
TEST_F(AppsGridViewTest, MouseDragWithFolderDisabled) {
- CommandLine::ForCurrentProcess()->AppendSwitch(switches::kDisableSyncAppList);
+ model_->SetFoldersEnabled(false);
const int kTotalItems = 4;
model_->PopulateApps(kTotalItems);
EXPECT_EQ(std::string("Item 0,Item 1,Item 2,Item 3"),
@@ -550,7 +551,7 @@ TEST_F(AppsGridViewTest, MouseDragFlipPage) {
}
TEST_F(AppsGridViewTest, SimultaneousDragWithFolderDisabled) {
- CommandLine::ForCurrentProcess()->AppendSwitch(switches::kDisableSyncAppList);
+ model_->SetFoldersEnabled(false);
const int kTotalItems = 4;
model_->PopulateApps(kTotalItems);
EXPECT_EQ(std::string("Item 0,Item 1,Item 2,Item 3"),
« no previous file with comments | « ui/app_list/views/apps_grid_view.cc ('k') | ui/app_list/views/folder_header_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698