Lines Matching refs:model_
47 model_(NULL) {
59 model_ = profile_->GetBookmarkModel();
78 BookmarkModel* model_;
95 model_->AddURL(model_->GetBookmarkBarNode(), 0, ASCIIToUTF16("a"),
98 model_->AddFolder(model_->GetBookmarkBarNode(), 1, ASCIIToUTF16("F1"));
99 model_->AddURL(f1, 0, ASCIIToUTF16("f1a"), GURL(test_base + "f1a"));
100 const BookmarkNode* f11 = model_->AddFolder(f1, 1, ASCIIToUTF16("F11"));
101 model_->AddURL(f11, 0, ASCIIToUTF16("f11a"), GURL(test_base + "f11a"));
102 model_->AddFolder(model_->GetBookmarkBarNode(), 2, ASCIIToUTF16("F2"));
103 model_->AddFolder(model_->GetBookmarkBarNode(), 3, ASCIIToUTF16("F3"));
105 model_->AddFolder(model_->GetBookmarkBarNode(), 4, ASCIIToUTF16("F4"));
106 model_->AddURL(f4, 0, ASCIIToUTF16("f4a"), GURL(test_base + "f4a"));
113 nodes.push_back(model_->GetBookmarkBarNode()->GetChild(0));
116 GURL url = model_->GetBookmarkBarNode()->GetChild(0)->GetURL();
121 ASSERT_FALSE(model_->IsBookmarked(url));
126 const BookmarkNode* folder = model_->GetBookmarkBarNode()->GetChild(1);
138 NULL, profile_.get(), NULL, model_->other_node(),
156 nodes.push_back(model_->GetBookmarkBarNode()->GetChild(0));
174 nodes.push_back(model_->GetBookmarkBarNode()->GetChild(0));
175 nodes.push_back(model_->GetBookmarkBarNode()->GetChild(1)->GetChild(0));
193 nodes.push_back(model_->GetBookmarkBarNode()->GetChild(2));
212 nodes.push_back(model_->GetBookmarkBarNode()->GetChild(2));
213 nodes.push_back(model_->GetBookmarkBarNode()->GetChild(3));
232 nodes.push_back(model_->GetBookmarkBarNode()->GetChild(3));
233 nodes.push_back(model_->GetBookmarkBarNode()->GetChild(4));
250 nodes.push_back(model_->GetBookmarkBarNode()->GetChild(0));
262 nodes.push_back(model_->other_node());
288 nodes.push_back(model_->GetBookmarkBarNode()->GetChild(0));
299 int old_count = model_->GetBookmarkBarNode()->child_count();
302 ASSERT_TRUE(model_->GetBookmarkBarNode()->GetChild(1)->is_url());
303 ASSERT_EQ(old_count + 1, model_->GetBookmarkBarNode()->child_count());
304 ASSERT_EQ(model_->GetBookmarkBarNode()->GetChild(0)->GetURL(),
305 model_->GetBookmarkBarNode()->GetChild(1)->GetURL());
311 ASSERT_TRUE(model_->GetBookmarkBarNode()->GetChild(0)->is_url());
312 ASSERT_TRUE(model_->GetBookmarkBarNode()->GetChild(1)->is_folder());
313 ASSERT_EQ(old_count, model_->GetBookmarkBarNode()->child_count());