Home | History | Annotate | Download | only in history

Lines Matching defs:visits

69   // Add visits with source information.
176 // The example data consists of 4 visits. The middle two visits are to the
186 // The IDs of the added URLs, and the times of the four added visits will be
237 // Four visits.
322 // There should be no visits.
323 VisitVector visits;
324 main_db_->GetVisitsForURL(row.id(), &visits);
325 EXPECT_EQ(0U, visits.size());
414 VisitVector visits;
415 main_db_->GetVisitsForURL(url_ids[2], &visits);
416 ASSERT_EQ(1U, visits.size());
442 VisitVector visits;
443 main_db_->GetVisitsForURL(url_ids[1], &visits);
444 EXPECT_EQ(2U, visits.size());
477 // And no visits.
478 VisitVector visits;
479 main_db_->GetVisitsForURL(url_row.id(), &visits);
480 ASSERT_EQ(0U, visits.size());
533 // the two visits) and one is deleted.
543 VisitVector visits;
544 main_db_->GetVisitsForURL(url_ids[2], &visits);
545 ASSERT_EQ(1U, visits.size());
547 // This should delete the last two visits.
552 visits.clear();
553 main_db_->GetVisitsForURL(url_ids[1], &visits);
554 EXPECT_EQ(1U, visits.size());
588 VisitVector visits;
589 main_db_->GetVisitsForURL(url_ids[2], &visits);
590 ASSERT_EQ(1U, visits.size());
592 // This should delete the last two visits.
599 visits.clear();
600 main_db_->GetVisitsForURL(url_ids[1], &visits);
601 EXPECT_EQ(1U, visits.size());
627 // one of the two visits).
637 VisitVector visits;
638 main_db_->GetVisitsForURL(url_ids[2], &visits);
639 ASSERT_EQ(1U, visits.size());
641 // This should delete the last two visits.
647 visits.clear();
648 main_db_->GetVisitsForURL(url_ids[1], &visits);
649 EXPECT_EQ(1U, visits.size());
688 // This should delete the last two visits.
730 // Archive the oldest two visits. This will actually result in deleting them
772 // Now archive the first three visits (first two URLs). The first two visits
782 VisitVector visits;
783 main_db_->GetVisitsForURL(temp_row.id(), &visits);
784 EXPECT_EQ(0U, visits.size());
790 main_db_->GetVisitsForURL(temp_row.id(), &visits);
791 EXPECT_EQ(0U, visits.size());
795 archived_db_->GetVisitsForURL(temp_row.id(), &visits);
796 ASSERT_EQ(1U, visits.size());
797 EXPECT_TRUE(visit_times[2] == visits[0].visit_time);
835 VisitVector visits;
843 // First, attempt reading AUTO_SUBFRAME visits. We should get none.
844 EXPECT_FALSE(auto_subframes->Read(now, main_db_.get(), &visits, 1));
845 EXPECT_EQ(0U, visits.size());
848 // AUTO_SUBFRAME visits in the given time range.
851 // Now, read all visits and verify that there's at least one.
852 EXPECT_TRUE(all->Read(now, main_db_.get(), &visits, 1));
853 EXPECT_EQ(1U, visits.size());
863 // Archiving all the visits we added.
900 // TODO(brettw) add some visits with no URL to make sure everything is updated
901 // properly. Have the visits also refer to nonexistent FTS rows.