Lines Matching refs:url
187 const GURL url("http://foo.com");
189 const BookmarkNode* new_node = model.AddURL(root, 0, title, url);
195 ASSERT_TRUE(url == new_node->GetURL());
196 ASSERT_EQ(BookmarkNode::URL, new_node->type());
197 ASSERT_TRUE(new_node == model.GetMostRecentlyAddedNodeForURL(url));
228 const GURL url("http://foo.com");
229 model.AddURL(root, 0, title, url);
237 // Make sure there is no mapping for the URL.
238 ASSERT_TRUE(model.GetMostRecentlyAddedNodeForURL(url) == NULL);
247 // Add a URL as a child.
249 const GURL url("http://foo.com");
250 model.AddURL(folder, 0, title, url);
260 // Make sure there is no mapping for the URL.
261 ASSERT_TRUE(model.GetMostRecentlyAddedNodeForURL(url) == NULL);
267 const GURL url("http://foo.com");
268 const BookmarkNode* node = model.AddURL(root, 0, title, url);
282 GURL url("http://foo.com");
283 const BookmarkNode* node = model.AddURL(root, 0, title, url);
287 url = GURL("http://foo2.com");
288 model.SetURL(node, url);
291 EXPECT_EQ(url, node->GetURL());
297 const GURL url("http://foo.com");
298 const BookmarkNode* node = model.AddURL(root, 0, title, url);
317 EXPECT_TRUE(model.GetMostRecentlyAddedNodeForURL(url) == NULL);
330 // Copy 'd' to be after '1:b': URL item from bar to folder.
337 // Copy '1:d' to be after 'a': URL item from folder to bar.
359 // Copy first 'd' to be after 'h': URL item within the bar.
375 // Tests that adding a URL to a folder updates the last modified time.
380 const GURL url("http://foo.com");
382 model.AddURL(model.other_node(), 0, title, url);
386 // Make sure recently modified stays in sync when adding a URL.
391 // Add a URL to it.
458 const GURL url("http://foo.com/0");
460 model.GetBookmarkBarNode(), 0, ASCIIToUTF16("blah"), url));
462 model.GetBookmarkBarNode(), 1, ASCIIToUTF16("blah"), url));
467 ASSERT_EQ(n1, model.GetMostRecentlyAddedNodeForURL(url));
471 ASSERT_EQ(n2, model.GetMostRecentlyAddedNodeForURL(url));
476 const GURL url("http://foo.com/0");
477 model.AddURL(model.GetBookmarkBarNode(), 0, ASCIIToUTF16("blah"), url);
478 model.AddURL(model.GetBookmarkBarNode(), 1, ASCIIToUTF16("blah"), url);
483 ASSERT_TRUE(urls[0] == url);
487 const GURL url("http://foo.com/");
488 model.AddURL(model.GetBookmarkBarNode(), 0, ASCIIToUTF16("bar"), url);
529 const GURL url("http://foo.com/0");
531 model.GetBookmarkBarNode(), 0, ASCIIToUTF16("blah"), url);
537 EXPECT_TRUE(url == *(listener.details_.changed_urls.begin()));
541 // Add another bookmark for the same URL. This should not send any
544 model.GetBookmarkBarNode(), 1, ASCIIToUTF16("blah"), url);
553 // URL.
556 EXPECT_TRUE(model.GetMostRecentlyAddedNodeForURL(url) == n1);
565 EXPECT_TRUE(url == *(listener.details_.changed_urls.begin()));
596 // Add a new URL.
602 parent->Add(new TestNode(UTF8ToUTF16(element), BookmarkNode::URL),
614 // text: creates a new URL node.
619 // In words: a node of type URL with the title a, followed by a folder node with
620 // the title 1 having the single child of type url with name b, followed by
621 // the url node with the title c.
686 // No need to check the URL, just the title is enough.
687 ASSERT_TRUE(actual_child->type() == BookmarkNode::URL);
824 ASSERT_EQ(BookmarkNode::URL, child->type());
835 ASSERT_EQ(BookmarkNode::URL, child->type());
846 ASSERT_EQ(BookmarkNode::URL, child->type());
859 ASSERT_EQ(BookmarkNode::URL, child->type());
955 // Add a URL.
956 GURL url("http://www.google.com");
957 bb_model_->SetURLStarred(url, string16(), true);
960 url, NULL, 1, GURL(), PageTransition::TYPED,
963 // This won't actually delete the URL, rather it'll empty out the visits.
965 profile_->GetHistoryService(Profile::EXPLICIT_ACCESS)->DeleteURL(url);