Lines Matching refs:visit_sources
635 VisitSourceMap visit_sources;
636 backend_->db_->GetVisitsSource(visits, &visit_sources);
637 ASSERT_EQ(3U, visit_sources.size());
640 switch (visit_sources[visits[i].visit_id]) {
689 VisitSourceMap visit_sources;
690 backend_->db_->GetVisitsSource(visits, &visit_sources);
691 ASSERT_EQ(1U, visit_sources.size());
692 EXPECT_EQ(history::SOURCE_SYNCED, visit_sources.begin()->second);
722 VisitSourceMap visit_sources;
723 backend_->db_->GetVisitsSource(visits, &visit_sources);
724 ASSERT_EQ(3U, visit_sources.size());
726 EXPECT_EQ(history::SOURCE_IE_IMPORTED, visit_sources[visits[i].visit_id]);
730 backend_->db_->GetVisitsSource(visits, &visit_sources);
731 ASSERT_EQ(2U, visit_sources.size());
733 EXPECT_EQ(history::SOURCE_SYNCED, visit_sources[visits[i].visit_id]);
766 VisitSourceMap visit_sources;
767 backend_->db_->GetVisitsSource(visits, &visit_sources);
768 ASSERT_EQ(0U, visit_sources.size());
772 backend_->db_->GetVisitsSource(visits, &visit_sources);
773 ASSERT_EQ(2U, visit_sources.size());
775 EXPECT_EQ(history::SOURCE_SYNCED, visit_sources[visits[i].visit_id]);