Lines Matching refs:n2
44 void SwapDateAdded(BookmarkNode* n1, BookmarkNode* n2) {
46 n1->set_date_added(n2->date_added());
47 n2->set_date_added(tmp);
412 // nodes: n1 > n2 > n3 > n4.
418 BookmarkNode* n2 = AsMutable(model.AddURL(model.GetBookmarkBarNode(),
431 n2->set_date_added(base_time + TimeDelta::FromDays(3));
440 ASSERT_TRUE(n2 == recently_added[1]);
444 SwapDateAdded(n1, n2);
447 ASSERT_TRUE(n2 == recently_added[0]);
456 // nodes: n1 > n2
461 BookmarkNode* n2 = AsMutable(model.AddURL(
464 n2->set_date_added(base_time + TimeDelta::FromDays(3));
470 SwapDateAdded(n1, n2);
471 ASSERT_EQ(n2, model.GetMostRecentlyAddedNodeForURL(url));
543 const BookmarkNode* n2 = model.AddURL(
548 // Remove n2.
549 model.Remove(n2->parent(), 1);
550 n2 = NULL;