Lines Matching refs:url_ids
63 void AddExampleData(URLID url_ids[3], Time visit_times[4]);
191 void ExpireHistoryTest::AddExampleData(URLID url_ids[3], Time visit_times[4]) {
212 url_ids[0] = main_db_->AddURL(url_row1);
219 url_ids[1] = main_db_->AddURL(url_row2);
225 url_ids[2] = main_db_->AddURL(url_row3);
241 visit_row1.url_id = url_ids[0];
247 visit_row2.url_id = url_ids[1];
253 visit_row3.url_id = url_ids[1];
260 visit_row4.url_id = url_ids[2];
456 URLID url_ids[3];
458 AddExampleData(url_ids, visit_times);
462 ASSERT_TRUE(main_db_->GetURLRow(url_ids[2], &last_row));
466 // EXPECT_TRUE(HasThumbnail(url_ids[2]));
469 main_db_->GetVisitsForURL(url_ids[2], &visits);
520 URLID url_ids[3];
522 AddExampleData(url_ids, visit_times);
526 ASSERT_TRUE(main_db_->GetURLRow(url_ids[1], &last_row));
530 // EXPECT_TRUE(HasThumbnail(url_ids[1]));
533 main_db_->GetVisitsForURL(url_ids[1], &visits);
547 URLID url_ids[3];
549 AddExampleData(url_ids, visit_times);
552 ASSERT_TRUE(main_db_->GetURLRow(url_ids[2], &url_row));
592 URLID url_ids[3];
594 AddExampleData(url_ids, visit_times);
597 ASSERT_TRUE(main_db_->GetURLRow(url_ids[1], &url_row1));
598 ASSERT_TRUE(main_db_->GetURLRow(url_ids[2], &url_row2));
603 main_db_->GetVisitsForURL(url_ids[2], &visits);
620 main_db_->GetVisitsForURL(url_ids[1], &visits);
626 ASSERT_TRUE(main_db_->GetURLRow(url_ids[1], &temp_row));
650 URLID url_ids[3];
652 AddExampleData(url_ids, visit_times);
655 ASSERT_TRUE(main_db_->GetURLRow(url_ids[1], &url_row1));
656 ASSERT_TRUE(main_db_->GetURLRow(url_ids[2], &url_row2));
661 main_db_->GetVisitsForURL(url_ids[2], &visits);
679 main_db_->GetVisitsForURL(url_ids[1], &visits);
685 ASSERT_TRUE(main_db_->GetURLRow(url_ids[1], &temp_row));
700 EXPECT_TRUE(main_db_->GetURLRow(url_ids[2], &temp_row));
708 URLID url_ids[3];
710 AddExampleData(url_ids, visit_times);
713 ASSERT_TRUE(main_db_->GetURLRow(url_ids[1], &url_row1));
714 ASSERT_TRUE(main_db_->GetURLRow(url_ids[2], &url_row2));
726 ASSERT_TRUE(main_db_->GetURLRow(url_ids[1], &new_url_row1));
727 ASSERT_TRUE(main_db_->GetURLRow(url_ids[2], &new_url_row2));
754 URLID url_ids[3];
756 AddExampleData(url_ids, visit_times);
759 ASSERT_TRUE(main_db_->GetURLRow(url_ids[1], &url_row1));
760 ASSERT_TRUE(main_db_->GetURLRow(url_ids[2], &url_row2));
768 EXPECT_FALSE(main_db_->GetURLRow(url_ids[0], &temp_row));
769 EXPECT_TRUE(main_db_->GetURLRow(url_ids[1], &temp_row));
770 EXPECT_TRUE(main_db_->GetURLRow(url_ids[2], &temp_row));
779 EXPECT_FALSE(main_db_->GetURLRow(url_ids[1], &temp_row));
780 EXPECT_TRUE(main_db_->GetURLRow(url_ids[2], &temp_row));
792 URLID url_ids[3];
794 AddExampleData(url_ids, visit_times);
797 ASSERT_TRUE(main_db_->GetURLRow(url_ids[0], &url_row0));
798 ASSERT_TRUE(main_db_->GetURLRow(url_ids[1], &url_row1));
811 ASSERT_TRUE(main_db_->GetURLRow(url_ids[0], &temp_row));
821 ASSERT_TRUE(main_db_->GetURLRow(url_ids[1], &temp_row));
832 EXPECT_TRUE(main_db_->GetURLRow(url_ids[2], &temp_row));
840 URLID url_ids[3];
842 AddExampleData(url_ids, visit_times);
859 URLID url_ids[3];
861 AddExampleData(url_ids, visit_times);