Home | History | Annotate | Download | only in android

Lines Matching defs:history_db_

190   HistoryDatabase history_db_;
268 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
270 &history_db_));
274 new AndroidProviderBackend(android_cache_db_name_, &history_db_,
282 ASSERT_TRUE(history_db_.GetRowForURL(url3, &url_row));
317 ASSERT_TRUE(history_db_.DeleteURLRow(url_id2));
319 ASSERT_TRUE(history_db_.GetMostRecentVisitsForURL(url_id2, 10,
324 history_db_.DeleteVisit(*v);
418 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
420 &history_db_));
425 new AndroidProviderBackend(android_cache_db_name_, &history_db_,
508 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
510 &history_db_));
512 new AndroidProviderBackend(android_cache_db_name_, &history_db_,
617 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
619 &history_db_));
622 new AndroidProviderBackend(android_cache_db_name_, &history_db_,
715 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
717 &history_db_));
719 new AndroidProviderBackend(android_cache_db_name_, &history_db_,
806 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
808 &history_db_));
810 new AndroidProviderBackend(android_cache_db_name_, &history_db_,
827 URLID url_id1 = history_db_.GetRowForURL(row1.url(), NULL);
829 URLID url_id2 = history_db_.GetRowForURL(row2.url(), NULL);
834 ASSERT_TRUE(history_db_.GetVisitsForURL(url_id1, &visits));
837 ASSERT_TRUE(history_db_.GetVisitsForURL(url_id2, &visits));
877 EXPECT_FALSE(history_db_.GetRowForURL(row1.url(), NULL));
879 EXPECT_TRUE(history_db_.GetVisitsForURL(url_id1, &visits));
883 EXPECT_TRUE(history_db_.GetRowForURL(update_row1.url(), &new_row));
888 EXPECT_TRUE(history_db_.GetVisitsForURL(new_row.id(), &visits));
891 ASSERT_TRUE(history_db_.GetAndroidURLRow(new_row.id(), &android_url_row1));
942 EXPECT_FALSE(history_db_.GetRowForURL(row2.url(), NULL));
944 EXPECT_TRUE(history_db_.GetVisitsForURL(url_id2, &visits));
949 ASSERT_TRUE(history_db_.GetRowForURL(update_row2.url(), &new_row2));
953 EXPECT_TRUE(history_db_.GetVisitsForURL(new_row2.id(), &visits));
956 ASSERT_TRUE(history_db_.GetAndroidURLRow(new_row2.id(), &android_url_row2));
960 ASSERT_TRUE(history_db_.GetVisitsForURL(new_row2.id(), &visits));
986 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
988 &history_db_));
990 new AndroidProviderBackend(android_cache_db_name_, &history_db_,
1022 ASSERT_TRUE(history_db_.GetRowForURL(row1.url(), &new_row1));
1025 ASSERT_TRUE(history_db_.GetVisitsForURL(new_row1.id(), &visits));
1039 ASSERT_TRUE(history_db_.GetRowForURL(row2.url(), &new_row2));
1042 ASSERT_TRUE(history_db_.GetVisitsForURL(new_row2.id(), &visits));
1067 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1069 &history_db_));
1071 new AndroidProviderBackend(android_cache_db_name_, &history_db_,
1100 ASSERT_TRUE(history_db_.GetRowForURL(row1.url(), &new_row1));
1104 ASSERT_TRUE(history_db_.GetVisitsForURL(new_row1.id(), &visits));
1129 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1131 &history_db_));
1133 new AndroidProviderBackend(android_cache_db_name_, &history_db_,
1195 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1197 &history_db_));
1199 new AndroidProviderBackend(android_cache_db_name_, &history_db_,
1209 URLID url_id = history_db_.GetRowForURL(row1.url(), NULL);
1211 ASSERT_TRUE(history_db_.SetKeywordSearchTermsForURL(url_id, 1, term));
1214 SearchTermID id = history_db_.GetSearchTerm(term, &keyword_cache);
1227 url_id = history_db_.GetRowForURL(row2.url(), NULL);
1230 ASSERT_TRUE(history_db_.SetKeywordSearchTermsForURL(url_id, 1, term2));
1232 SearchTermID search_id1 = history_db_.GetSearchTerm(term,
1240 SearchTermID id2 = history_db_.GetSearchTerm(term2, &keyword_cache);
1253 url_id = history_db_.GetRowForURL(row3.url(), NULL);
1255 ASSERT_TRUE(history_db_.SetKeywordSearchTermsForURL(url_id, 1, term));
1258 ASSERT_EQ(search_id1, history_db_.GetSearchTerm(term, &keyword_cache));
1262 EXPECT_EQ(id2, history_db_.GetSearchTerm(term2, NULL));
1265 ASSERT_TRUE(history_db_.DeleteKeywordSearchTerm(term));
1268 ASSERT_FALSE(history_db_.GetSearchTerm(term, NULL));
1270 EXPECT_EQ(id2, history_db_.GetSearchTerm(term2, NULL));
1274 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1276 &history_db_));
1278 new AndroidProviderBackend(android_cache_db_name_, &history_db_,
1288 URLID url_id = history_db_.GetRowForURL(row1.url(), NULL);
1290 ASSERT_TRUE(history_db_.SetKeywordSearchTermsForURL(url_id, 1, term));
1308 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1310 &history_db_));
1312 new AndroidProviderBackend(android_cache_db_name_, &history_db_,
1322 URLID url_id = history_db_.GetRowForURL(row1.url(), NULL);
1324 ASSERT_TRUE(history_db_.SetKeywordSearchTermsForURL(url_id, 1, term));
1358 ASSERT_TRUE(history_db_.GetKeywordSearchTermRows(term, &rows));
1361 ASSERT_TRUE(history_db_.GetKeywordSearchTermRows(update_term, &rows));
1364 ASSERT_TRUE(history_db_.GetRowForURL(row1.url(), NULL));
1366 ASSERT_TRUE(history_db_.GetRowForURL(search_row.url(), NULL));
1413 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1415 &history_db_));
1417 new AndroidProviderBackend(android_cache_db_name_, &history_db_,
1427 URLID url_id = history_db_.GetRowForURL(row1.url(), NULL);
1429 ASSERT_TRUE(history_db_.SetKeywordSearchTermsForURL(url_id, 1, term));
1454 URLID url_id2 = history_db_.GetRowForURL(row2.url(), NULL);
1456 ASSERT_TRUE(history_db_.SetKeywordSearchTermsForURL(url_id2, 1, term2));
1480 ASSERT_TRUE(history_db_.GetKeywordSearchTermRows(term, &rows));
1520 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1522 &history_db_));
1524 new AndroidProviderBackend(android_cache_db_name_, &history_db_,
1575 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1577 &history_db_));
1579 new AndroidProviderBackend(android_cache_db_name_, &history_db_,
1601 EXPECT_FALSE(history_db_.GetRowForURL(row2.url(), NULL));
1604 ASSERT_TRUE(history_db_.GetRowForURL(row1.url(), &url_row));
1628 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1630 &history_db_));
1632 new AndroidProviderBackend(android_cache_db_name_, &history_db_,
1636 history_db_.BeginTransaction();
1637 history_db_.BeginTransaction();
1638 history_db_.BeginTransaction();
1641 int history_transaction = history_db_.transaction_nesting();
1654 EXPECT_EQ(history_transaction, history_db_.transaction_nesting());
1660 EXPECT_EQ(history_transaction, history_db_.transaction_nesting());
1672 EXPECT_EQ(history_transaction, history_db_.transaction_nesting());
1679 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1681 &history_db_));
1683 new AndroidProviderBackend(android_cache_db_name_, &history_db_,
1688 history_db_.AddURL(url_row);
1717 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1719 &history_db_));
1721 new AndroidProviderBackend(android_cache_db_name_, &history_db_,
1833 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1839 new AndroidProviderBackend(android_cache_db_name_, &history_db_, NULL,
1907 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1909 new AndroidProviderBackend(android_cache_db_name_, &history_db_, NULL,
1987 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
1989 new AndroidProviderBackend(android_cache_db_name_, &history_db_,
2052 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name_));
2054 new AndroidProviderBackend(android_cache_db_name_, &history_db_, NULL,