Lines Matching refs:item1
139 AppListItem* item1 = model_.top_level_item_list()->item_at(1);
140 ASSERT_TRUE(item1);
141 EXPECT_EQ(model_.GetItemName(1), item1->id());
152 AppListItem* item1 = model_.FindItem(item_name1);
153 ASSERT_TRUE(item1);
154 EXPECT_EQ(item_name1, item1->id());
168 AppListItem* item1 = model_.top_level_item_list()->item_at(1);
169 ASSERT_TRUE(item1);
174 item2, item0->position().CreateBetween(item1->position()));
292 AppListItem* item1 = model_.top_level_item_list()->item_at(1);
296 std::string folder1_id = model_.MergeItems(item0->id(), item1->id());
303 std::string folder2_id = model_.MergeItems(item2->id(), item1->id());
339 AppListItem* item1 = new AppListItem("Item 1");
341 model_.AddItem(item1);
343 // Move item0 and item1 to folder.
346 model_.MoveItemToFolder(item1, folder_id);
350 EXPECT_EQ(folder_id, item1->folder_id());
357 // Move item1 out of folder, folder should be deleted.
358 model_.MoveItemToFolder(item1, "");
359 EXPECT_EQ("", item1->folder_id());
403 AppListItem* item1 = new AppListItem("Item 1");
405 model_.AddItemToFolder(item1, folder0->id());
407 EXPECT_EQ(folder0->id(), item1->folder_id());
418 // Move item1 from folder0 to folder1. folder0 should get deleted.
419 model_.MoveItemToFolder(item1, folder1->id());
422 EXPECT_EQ(folder1->id(), item1->folder_id());
425 // Move item1 to a non-existant folder2 which should get created.
426 model_.MoveItemToFolder(item1, "folder2");
429 EXPECT_EQ("folder2", item1->folder_id());
463 AppListItem* item1 = new AppListItem("Item 1");
464 model_.AddItemToFolder(item1, folder_id);
465 syncer::StringOrdinal item1_pos = item1->position();
466 bool move_res = model_.MoveItemToFolderAt(item1, "", syncer::StringOrdinal());
468 EXPECT_TRUE(item1->position().Equals(item1_pos));
479 AppListItem* item1 = new AppListItem("Item 1");
480 model_.AddItemToFolder(item1, folder_id);
499 EXPECT_EQ(std::string(), model_.MergeItems(item0->id(), item1->id()));