Lines Matching refs:model_
42 model_(NULL) {
54 model_ = profile_->GetBookmarkModel();
73 BookmarkModel* model_;
90 model_->AddURL(model_->GetBookmarkBarNode(), 0, ASCIIToUTF16("a"),
93 model_->AddFolder(model_->GetBookmarkBarNode(), 1, ASCIIToUTF16("F1"));
94 model_->AddURL(f1, 0, ASCIIToUTF16("f1a"), GURL(test_base + "f1a"));
95 const BookmarkNode* f11 = model_->AddFolder(f1, 1, ASCIIToUTF16("F11"));
96 model_->AddURL(f11, 0, ASCIIToUTF16("f11a"), GURL(test_base + "f11a"));
97 model_->AddFolder(model_->GetBookmarkBarNode(), 2, ASCIIToUTF16("F2"));
98 model_->AddFolder(model_->GetBookmarkBarNode(), 3, ASCIIToUTF16("F3"));
100 model_->AddFolder(model_->GetBookmarkBarNode(), 4, ASCIIToUTF16("F4"));
101 model_->AddURL(f4, 0, ASCIIToUTF16("f4a"), GURL(test_base + "f4a"));
108 nodes.push_back(model_->GetBookmarkBarNode()->GetChild(0));
111 GURL url = model_->GetBookmarkBarNode()->GetChild(0)->GetURL();
116 ASSERT_FALSE(model_->IsBookmarked(url));
121 const BookmarkNode* folder = model_->GetBookmarkBarNode()->GetChild(1);
133 NULL, NULL, profile_.get(), NULL, model_->other_node(),
151 nodes.push_back(model_->GetBookmarkBarNode()->GetChild(0));
170 nodes.push_back(model_->GetBookmarkBarNode()->GetChild(0));
171 nodes.push_back(model_->GetBookmarkBarNode()->GetChild(1)->GetChild(0));
190 nodes.push_back(model_->GetBookmarkBarNode()->GetChild(2));
209 nodes.push_back(model_->GetBookmarkBarNode()->GetChild(2));
210 nodes.push_back(model_->GetBookmarkBarNode()->GetChild(3));
229 nodes.push_back(model_->GetBookmarkBarNode()->GetChild(3));
230 nodes.push_back(model_->GetBookmarkBarNode()->GetChild(4));
248 nodes.push_back(model_->GetBookmarkBarNode()->GetChild(0));
260 nodes.push_back(model_->other_node());
287 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());