Home | History | Annotate | Download | only in android

Lines Matching full:history_db_

197   HistoryDatabase history_db_;
276 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
282 &history_db_,
292 ASSERT_TRUE(history_db_.GetRowForURL(url3, &url_row));
327 ASSERT_TRUE(history_db_.DeleteURLRow(url_id2));
329 ASSERT_TRUE(history_db_.GetMostRecentVisitsForURL(url_id2, 10,
334 history_db_.DeleteVisit(*v);
429 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
436 &history_db_,
521 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
525 &history_db_,
632 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
637 &history_db_,
732 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
736 &history_db_,
825 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
829 &history_db_,
848 URLID url_id1 = history_db_.GetRowForURL(row1.url(), NULL);
850 URLID url_id2 = history_db_.GetRowForURL(row2.url(), NULL);
855 ASSERT_TRUE(history_db_.GetVisitsForURL(url_id1, &visits));
858 ASSERT_TRUE(history_db_.GetVisitsForURL(url_id2, &visits));
898 EXPECT_FALSE(history_db_.GetRowForURL(row1.url(), NULL));
900 EXPECT_TRUE(history_db_.GetVisitsForURL(url_id1, &visits));
904 EXPECT_TRUE(history_db_.GetRowForURL(update_row1.url(), &new_row));
909 EXPECT_TRUE(history_db_.GetVisitsForURL(new_row.id(), &visits));
912 ASSERT_TRUE(history_db_.GetAndroidURLRow(new_row.id(), &android_url_row1));
963 EXPECT_FALSE(history_db_.GetRowForURL(row2.url(), NULL));
965 EXPECT_TRUE(history_db_.GetVisitsForURL(url_id2, &visits));
970 ASSERT_TRUE(history_db_.GetRowForURL(update_row2.url(), &new_row2));
974 EXPECT_TRUE(history_db_.GetVisitsForURL(new_row2.id(), &visits));
977 ASSERT_TRUE(history_db_.GetAndroidURLRow(new_row2.id(), &android_url_row2));
981 ASSERT_TRUE(history_db_.GetVisitsForURL(new_row2.id(), &visits));
1007 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1011 &history_db_,
1045 ASSERT_TRUE(history_db_.GetRowForURL(row1.url(), &new_row1));
1048 ASSERT_TRUE(history_db_.GetVisitsForURL(new_row1.id(), &visits));
1062 ASSERT_TRUE(history_db_.GetRowForURL(row2.url(), &new_row2));
1065 ASSERT_TRUE(history_db_.GetVisitsForURL(new_row2.id(), &visits));
1090 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1094 &history_db_,
1125 ASSERT_TRUE(history_db_.GetRowForURL(row1.url(), &new_row1));
1129 ASSERT_TRUE(history_db_.GetVisitsForURL(new_row1.id(), &visits));
1154 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1158 &history_db_,
1222 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1226 &history_db_,
1238 URLID url_id = history_db_.GetRowForURL(row1.url(), NULL);
1240 ASSERT_TRUE(history_db_.SetKeywordSearchTermsForURL(url_id, 1, term));
1243 SearchTermID id = history_db_.GetSearchTerm(term, &keyword_cache);
1256 url_id = history_db_.GetRowForURL(row2.url(), NULL);
1259 ASSERT_TRUE(history_db_.SetKeywordSearchTermsForURL(url_id, 1, term2));
1261 SearchTermID search_id1 = history_db_.GetSearchTerm(term,
1269 SearchTermID id2 = history_db_.GetSearchTerm(term2, &keyword_cache);
1282 url_id = history_db_.GetRowForURL(row3.url(), NULL);
1284 ASSERT_TRUE(history_db_.SetKeywordSearchTermsForURL(url_id, 1, term));
1287 ASSERT_EQ(search_id1, history_db_.GetSearchTerm(term, &keyword_cache));
1291 EXPECT_EQ(id2, history_db_.GetSearchTerm(term2, NULL));
1294 ASSERT_TRUE(history_db_.DeleteKeywordSearchTerm(term));
1297 ASSERT_FALSE(history_db_.GetSearchTerm(term, NULL));
1299 EXPECT_EQ(id2, history_db_.GetSearchTerm(term2, NULL));
1303 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1307 &history_db_,
1319 URLID url_id = history_db_.GetRowForURL(row1.url(), NULL);
1321 ASSERT_TRUE(history_db_.SetKeywordSearchTermsForURL(url_id, 1, term));
1340 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1344 &history_db_,
1356 URLID url_id = history_db_.GetRowForURL(row1.url(), NULL);
1358 ASSERT_TRUE(history_db_.SetKeywordSearchTermsForURL(url_id, 1, term));
1392 ASSERT_TRUE(history_db_.GetKeywordSearchTermRows(term, &rows));
1395 ASSERT_TRUE(history_db_.GetKeywordSearchTermRows(update_term, &rows));
1398 ASSERT_TRUE(history_db_.GetRowForURL(row1.url(), NULL));
1400 ASSERT_TRUE(history_db_.GetRowForURL(search_row.url(), NULL));
1447 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1451 &history_db_,
1463 URLID url_id = history_db_.GetRowForURL(row1.url(), NULL);
1465 ASSERT_TRUE(history_db_.SetKeywordSearchTermsForURL(url_id, 1, term));
1490 URLID url_id2 = history_db_.GetRowForURL(row2.url(), NULL);
1492 ASSERT_TRUE(history_db_.SetKeywordSearchTermsForURL(url_id2, 1, term2));
1516 ASSERT_TRUE(history_db_.GetKeywordSearchTermRows(term, &rows));
1556 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1560 &history_db_,
1613 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1617 &history_db_,
1642 EXPECT_FALSE(history_db_.GetRowForURL(row2.url(), NULL));
1645 ASSERT_TRUE(history_db_.GetRowForURL(row1.url(), &url_row));
1669 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1673 &history_db_,
1679 history_db_.BeginTransaction();
1680 history_db_.BeginTransaction();
1681 history_db_.BeginTransaction();
1684 int history_transaction = history_db_.transaction_nesting();
1697 EXPECT_EQ(history_transaction, history_db_.transaction_nesting());
1703 EXPECT_EQ(history_transaction, history_db_.transaction_nesting());
1715 EXPECT_EQ(history_transaction, history_db_.transaction_nesting());
1722 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1726 &history_db_,
1733 history_db_.AddURL(url_row);
1762 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1766 &history_db_,
1881 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1888 &history_db_,
1958 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1961 &history_db_,
2043 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
2046 &history_db_,
2113 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
2116 &history_db_,