Lines Matching refs:model_
284 model_(NULL) {
306 model_ = profile_.GetBookmarkModel();
311 model_->ClearStore();
347 model_ = NULL;
362 if (bnode != model_->GetBookmarkBarNode() &&
363 bnode != model_->other_node()) {
459 const BookmarkNode* root = model_->root_node();
460 EXPECT_EQ(root->GetIndexOf(model_->GetBookmarkBarNode()), 0);
461 model_->other_node()), 1);
486 model_associator_->GetSyncIdFromChromeId(model_->other_node()->id());
491 model_->GetBookmarkBarNode()->id());
498 // Needed by |model_|.
505 BookmarkModel* model_;
527 model_->AddFolder(model_->other_node(), 0, ASCIIToUTF16("foobar"));
531 model_->AddFolder(folder, 0, ASCIIToUTF16("nested"));
534 const BookmarkNode* url1 = model_->AddURL(
539 const BookmarkNode* url2 = model_->AddURL(
545 model_->SetTitle(url2, ASCIIToUTF16("EasyJet"));
547 model_->Move(url1, folder2, 0);
549 model_->Move(folder2, model_->GetBookmarkBarNode(), 0);
551 model_->SetTitle(folder2, ASCIIToUTF16("Not Nested"));
553 model_->Move(folder, folder2, 0);
555 model_->SetTitle(folder, ASCIIToUTF16("who's nested now?"));
557 model_->Copy(url2, model_->GetBookmarkBarNode(), 0);
562 model_->Remove(url2->parent(), url2->parent()->GetIndexOf(url2));
565 model_->Remove(folder2->parent(),
721 EXPECT_TRUE(model_->other_node()->child_count() == 1);
731 EXPECT_TRUE(model_->other_node()->child_count() == 1);
755 child_count = model_->other_node()->child_count();
766 EXPECT_EQ(model_->other_node()->child_count(), child_count);
797 model_->AddFolder(model_->other_node(), 0, ASCIIToUTF16(names[i]));
798 model_->AddURL(model_->other_node(), 0, ASCIIToUTF16(names[i]), url);
802 EXPECT_TRUE(model_->other_node()->child_count() == 2*arraysize(names));
817 model_->AddFolder(model_->other_node(), 0, ASCIIToUTF16("Alpha"));
818 model_->AddFolder(model_->other_node(), 1, ASCIIToUTF16("Omega"));
825 model_->AddFolder(model_->other_node(), 1, title);
833 model_->AddFolder(model_->other_node(), count - 1, title);
838 EXPECT_EQ(model_->other_node()->child_count(), count);
853 model_->AddFolder(model_->other_node(), 0, ASCIIToUTF16("node"));
871 model_->AddFolder(node, 0, ASCIIToUTF16("nested"));
881 model_->AddURL(model_->other_node(), 0, ASCIIToUTF16("Dup"),
883 model_->AddURL(model_->other_node(), 0, ASCIIToUTF16("Dup"),
886 EXPECT_EQ(2, model_->other_node()->child_count());
892 EXPECT_EQ(2, model_->other_node()->child_count());
1011 model_->AddURL(node, i, WideToUTF16Hack(item.title), GURL(item.url));
1013 model_->AddFolder(node, i, WideToUTF16Hack(item.title));
1042 const BookmarkNode* bookmarks_bar_node = model_->GetBookmarkBarNode();
1053 const BookmarkNode* other_bookmarks_node = model_->other_node();
1073 const BookmarkNode* bookmark_bar_node = model_->GetBookmarkBarNode();
1084 const BookmarkNode* other_bookmarks_node = model_->other_node();
1162 EXPECT_EQ(model_->GetBookmarkBarNode()->child_count(), 0);
1163 EXPECT_EQ(model_->other_node()->child_count(), 0);
1195 const BookmarkNode* bookmark_bar = model_->GetBookmarkBarNode();
1198 model_->Move(bookmark_bar->GetChild(0), bookmark_bar, 1);
1212 const BookmarkNode* bookmark_bar_node = model_->GetBookmarkBarNode();
1218 model_->Remove(bookmark_bar_node, remove_index);
1223 model_->Remove(bookmark_bar_node, remove_index);
1225 const BookmarkNode* other_node = model_->other_node();
1232 model_->Remove(f3_node, remove_index);
1234 model_->Remove(f3_node, remove_index);
1245 bookmark_bar_node = model_->GetBookmarkBarNode();
1251 model_->Remove(bookmark_bar_node, remove_index);
1256 model_->Remove(bookmark_bar_node, remove_index);
1259 model_->Move(bookmark_bar_node->GetChild(0), bookmark_bar_node, 1);
1261 other_node = model_->other_node();
1268 model_->Remove(f3_node, remove_index);
1270 model_->Remove(f3_node, remove_index);
1273 model_->Move(other_node->GetChild(0), other_node, 1);
1274 model_->Move(other_node->GetChild(2), other_node, 3);
1309 const BookmarkNode* bookmark_bar_node = model_->GetBookmarkBarNode();
1310 model_->AddURL(bookmark_bar_node, 0, ASCIIToUTF16("xtra"),
1325 const BookmarkNode* folder_added = model_->other_node()->GetChild(0);
1332 model_->SortChildren(folder_added);